/*
Theme Name: GREMA Landing
Theme URI: https://grema.pl
Author: GREMA Professional Education
Author URI: https://grema.pl
Description: Motyw landing page dla GREMA - szkolenia UDT wózki widłowe. Zintegrowany z ACF Free i Contact Form 7.
Version: 1.0.37
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grema-landing
*/

/* ==========================================================================
   GREMA Landing - Custom Styles
   Wszystkie style w jednym pliku. Bootstrap 5 dla layoutu.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Kolory i motyw
   -------------------------------------------------------------------------- */
:root {
  --grema-bg: 210 20% 98%;
  --grema-fg: 215 30% 15%;
  --grema-primary: 210 65% 35%;
  --grema-primary-light: 210 60% 45%;
  --grema-primary-dark: 210 70% 25%;
  --grema-secondary: 210 15% 92%;
  --grema-accent: 32 95% 50%;
  --grema-accent-hover: 32 95% 45%;
  --grema-muted: 210 15% 95%;
  --grema-muted-fg: 215 15% 45%;
  --grema-industrial: 215 25% 25%;
  --grema-safety: 45 100% 50%;
  --grema-border: 210 20% 88%;
  --grema-radius: 0.5rem;
  --grema-shadow-cta: 0 8px 20px -4px hsla(32, 95%, 50%, 0.4);
  --grema-gradient-hero: linear-gradient(135deg, hsl(210, 70%, 20%) 0%, hsl(210, 65%, 35%) 100%);
  --grema-gradient-cta: linear-gradient(135deg, hsl(32, 95%, 50%) 0%, hsl(25, 95%, 45%) 100%);
  --grema-gradient-industrial: linear-gradient(180deg, hsl(210, 20%, 98%) 0%, hsl(210, 15%, 92%) 100%);
  --grema-radius-industrial: 0.25rem;
  --grema-industrial-card: hsl(215 22% 18%);
  --grema-industrial-border: hsl(215 25% 28%);
  --grema-navbar-height: 4rem;
}

@media (min-width: 768px) {
  :root {
    --grema-navbar-height: 5rem;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--grema-navbar-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--grema-bg));
  color: hsl(var(--grema-fg));
  line-height: 1.5;
  overflow-x: hidden;
  min-width: 0;
  /* Odstęp dla fixed navbar – treść zawsze poniżej paska (nie na landingach z hero full-bleed) */
  padding-top: var(--grema-navbar-height);
}

/* Landing: hero pod navbar – bez podwójnego odstępu (body + sekcja) */
body.grema-landing-page {
  padding-top: 0;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

* {
  box-sizing: border-box;
}

main {
  min-width: 0;
  overflow-x: hidden;
}

/* Offset – body ma już padding dla navbara, dodatkowy odstęp dla treści */
.grema-main-offset {
  padding-top: 1.5rem;
}

table, iframe, .wp-block-embed {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.grema-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (max-width: 359px) {
  .grema-container { padding-left: 0.75rem; padding-right: 0.75rem; }
}

@media (min-width: 768px) {
  .grema-container { padding-left: 2rem; padding-right: 2rem; }
}

/* Standardowy padding sekcji – ujednolicony na całej stronie */
.section-padding {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .section-padding { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (min-width: 768px) {
  .section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

@media (min-width: 992px) {
  .section-padding { padding-top: 4rem; padding-bottom: 4rem; }
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.grema-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--grema-border));
}

.grema-navbar > .grema-container {
  position: relative;
}

.grema-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--grema-navbar-height);
  height: var(--grema-navbar-height);
}

.grema-navbar .grema-nav-anchor {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.grema-nav-logo,
.grema-footer-logo {
  display: block;
  width: auto;
  max-width: none;
  height: 2.5rem;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}

@media (min-width: 768px) {
  .grema-nav-logo,
  .grema-footer-logo { height: 3rem; }
}

.grema-footer-logo {
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.grema-nav-links {
  display: none;
}

@media (min-width: 992px) {
  .grema-nav-links {
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    gap: 2rem;
  }
}

.grema-nav-links > .grema-nav-menu {
  margin: 0;
  padding: 0;
  align-items: center;
  align-self: center;
  height: 100%;
}

.grema-nav-menu > li {
  display: flex;
  align-items: center;
  margin: 0;
}

.grema-nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}

.grema-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--grema-fg) / 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.grema-nav-links a:hover {
  color: hsl(var(--grema-primary));
}

.grema-nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .grema-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.grema-nav-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--grema-fg) / 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.grema-nav-phone:hover {
  color: hsl(var(--grema-primary));
}

/* Przełącznik kraju (stub – docelowo wtyczka tłumaczeń) */
.grema-country-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.grema-country-switcher--navbar {
  margin-left: 0.15rem;
}

.grema-country-switcher--mobile {
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

.grema-country-switcher--row {
  flex-wrap: wrap;
}

.grema-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 1.55rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  font-size: 0;
  line-height: 0;
  color: transparent;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: none;
  overflow: hidden;
}

.grema-country-flag:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.grema-country-flag.is-active,
.grema-country-flag[aria-pressed="true"] {
  opacity: 1;
  border-color: hsl(var(--grema-accent));
  box-shadow: 0 0 0 1px hsl(var(--grema-accent) / 0.35);
}

.grema-country-flag__icon {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  border-radius: 0.125rem;
  overflow: hidden;
  box-shadow: 0 1px 3px hsl(var(--grema-fg) / 0.18);
}

.grema-country-flag__svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grema-country-switcher--mobile .grema-country-flag {
  width: 2.6rem;
  height: 1.7rem;
}

.grema-menu-toggle {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 992px) {
  .grema-menu-toggle { display: none; }
}

.grema-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.grema-mobile-menu {
  padding: 1.5rem 1rem 1.5rem;
  border-top: 1px solid hsl(var(--grema-border));
  text-align: center;
}

@media (max-width: 991.98px) {
  .grema-mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1051;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid hsl(var(--grema-border));
    box-shadow: 0 12px 24px hsl(215 30% 15% / 0.08);
    max-height: calc(100dvh - var(--grema-navbar-height));
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .grema-mobile-menu::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 992px) {
  .grema-mobile-menu { display: none !important; }
}

.grema-mobile-menu .grema-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.grema-mobile-menu .grema-nav-links li {
  width: 100%;
  max-width: 280px;
}

.grema-mobile-menu .grema-nav-links a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  text-align: center;
  min-height: 48px;
  line-height: 1.4;
  border-radius: 0.5rem;
}

.grema-mobile-menu .grema-nav-links a:hover {
  background: hsl(var(--grema-primary) / 0.06);
}

.grema-mobile-menu .pt-4 {
  align-items: center;
  gap: 1rem !important;
  padding-top: 0.5rem !important;
}

.grema-mobile-menu .grema-nav-phone {
  padding: 1rem 1.25rem;
  min-height: 48px;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.grema-mobile-menu .grema-nav-phone:hover {
  background: hsl(var(--grema-primary) / 0.06);
}

.grema-mobile-menu .grema-btn.grema-nav-anchor {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: 48px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.grema-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--grema-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 359px) {
  .grema-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}

.grema-btn:focus-visible {
  outline: 2px solid hsl(var(--grema-primary));
  outline-offset: 2px;
}

.grema-btn-primary {
  background: hsl(var(--grema-primary));
  color: white;
}

.grema-btn-primary:hover {
  background: hsl(var(--grema-primary-light));
}

.grema-btn-cta,
.grema-btn-hero {
  background: hsl(var(--grema-accent));
  color: white;
  font-weight: 700;
  box-shadow: var(--grema-shadow-cta);
}

.grema-btn-cta:hover,
.grema-btn-hero:hover {
  filter: brightness(1.05);
}

.grema-btn-outline {
  border: 2px solid hsl(var(--grema-primary));
  background: transparent;
  color: hsl(var(--grema-primary));
}

.grema-btn-outline:hover {
  background: hsl(var(--grema-primary));
  color: white;
}

.grema-btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}

.grema-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.grema-btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.grema-btn-xl {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
}

@media (min-width: 400px) {
  .grema-btn-xl {
    padding: 0 2.5rem;
    font-size: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.grema-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--grema-gradient-hero);
  overflow: visible;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 576px) {
  .grema-hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
}

.grema-hero-bg-blur {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grema-hero-bg-blur > div {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.grema-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero – layout 3/4 profesje + 1/4 content, content rozciagniety do fali */
.grema-hero .grema-hero-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2rem);
  overflow: visible;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .grema-hero .grema-hero-container {
    padding-bottom: 2rem;
  }
}

.grema-hero-professions {
  flex: 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: visible;
  margin-bottom: 0.5rem;
}

.grema-hero-content {
  flex: 1;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Hero CTA – dopasowany do rodzica, pełna szerokość */
.grema-hero-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 100%;
  padding: 1rem 1.5rem;
}
@media (min-width: 768px) {
  .grema-hero-cta-block {
    padding: 1.25rem 2rem;
  }
}

.grema-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}
.grema-hero-pills li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}
.grema-hero-pills strong {
  color: hsl(var(--grema-accent));
  font-weight: 600;
  font-size: 1em;
}
.grema-hero-pill-sublabel {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}
@media (min-width: 576px) {
  .grema-hero-pills {
    font-size: 0.95rem;
    gap: 0.5rem 2rem;
    margin-bottom: 1.25rem;
  }
}
@media (min-width: 768px) {
  .grema-hero-pills {
    font-size: 1rem;
    gap: 0.5rem 2.5rem;
    margin-bottom: 1.5rem;
  }
}

.grema-hero-action {
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .grema-hero-action { margin-bottom: 1.25rem; }
}
.grema-hero-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}
.grema-hero-price-old {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}
.grema-hero-price-now {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
@media (min-width: 576px) {
  .grema-hero-price-now { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .grema-hero-price-now { font-size: 2.5rem; }
}
.grema-hero-price-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--grema-accent));
  background: hsl(var(--grema-accent) / 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
}
@media (min-width: 768px) {
  .grema-hero-price-tag { font-size: 0.9rem; padding: 0.3rem 0.75rem; }
}
.grema-hero-price-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.875rem;
}
@media (min-width: 768px) {
  .grema-hero-price-note { font-size: 0.9rem; margin-bottom: 1rem; }
}

.grema-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--grema-primary-dark));
  background: hsl(var(--grema-accent));
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px -2px hsl(var(--grema-accent) / 0.45);
}
.grema-hero-btn:hover {
  background: hsl(var(--grema-accent-hover));
  color: hsl(var(--grema-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px hsl(var(--grema-accent) / 0.5);
}
.grema-hero-btn svg {
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .grema-hero-btn {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
}

.grema-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}
.grema-hero-proof-avatars {
  display: flex;
  margin-right: 0.35rem;
}
.grema-hero-proof-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  margin-left: -9px;
  object-fit: cover;
}
.grema-hero-proof-avatar:first-child { margin-left: 0; }
.grema-hero-proof-dot {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  font-size: 0.75em;
}
.grema-hero-proof-rating {
  color: hsl(var(--grema-accent));
  font-weight: 600;
}
@media (min-width: 768px) {
  .grema-hero-proof {
    font-size: 0.95rem;
    gap: 0.5rem 1rem;
  }
  .grema-hero-proof-avatar {
    width: 28px;
    height: 28px;
    margin-left: -10px;
  }
}

/* Hero – karty profesji (styl Diablo 2) */

.grema-hero-professions-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 400px) {
  .grema-hero-professions-title { font-size: 1.5rem; }
}

@media (min-width: 576px) {
  .grema-hero-professions-title { font-size: 1.75rem; }
}

@media (min-width: 768px) {
  .grema-hero-professions-title { font-size: 2rem; }
}

@media (min-width: 992px) {
  .grema-hero-professions-title { font-size: 2.25rem; }
}

.grema-hero-professions-title .text-accent {
  display: block;
  background: linear-gradient(135deg, hsl(var(--grema-accent)), hsl(var(--grema-accent-hover)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grema-hero-professions-scroll-wrap {
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.grema-hero-professions-cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.25rem 3.5rem 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-height: 0;
}

.grema-hero-professions-cards::-webkit-scrollbar {
  display: none;
}

.grema-hero-professions-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 3;
}

.grema-hero-professions-arrow:hover {
  background: hsl(var(--grema-accent) / 0.5);
  border-color: hsl(var(--grema-accent));
}

.grema-hero-professions-arrow-left {
  left: 0.5rem;
}

.grema-hero-professions-arrow-right {
  right: 0.5rem;
}

/* Diablo 2: hover = karta większa, reszta delikatnie ciemniejsza */
.grema-hero-professions-cards .grema-hero-profession-card {
  transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.grema-hero-professions-cards .grema-hero-profession-card:hover,
.grema-hero-professions-cards .grema-hero-profession-card:focus-visible {
  transform: scale(1.08);
  border-color: hsl(var(--grema-accent));
  box-shadow: 0 0 24px hsl(var(--grema-accent) / 0.5);
  z-index: 2;
}

.grema-hero-professions-cards:hover .grema-hero-profession-card:not(:hover):not(:focus-visible) {
  opacity: 0.4;
}

.grema-hero-profession-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 200px;
  align-self: stretch;
  padding: 0;
  padding-bottom: 0.5rem;
  border-radius: 0.875rem;
  border: 2px solid transparent;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
}

@media (min-width: 576px) {
  .grema-hero-profession-card { width: 220px; }
}

@media (min-width: 768px) {
  .grema-hero-profession-card { width: 260px; }
}

.grema-hero-profession-img-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: hsl(var(--grema-primary) / 0.3);
}

.grema-hero-profession-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.grema-hero-profession-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: hsl(var(--grema-primary) / 0.2);
  color: white;
}

.grema-hero-profession-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0.4rem 0.5rem 0;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .grema-hero-profession-name { font-size: 0.9rem; }
}

.grema-safety-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    hsl(var(--grema-safety)),
    hsl(var(--grema-safety)) 10px,
    hsl(var(--grema-industrial)) 10px,
    hsl(var(--grema-industrial)) 20px
  );
}

.grema-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.grema-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(32, 95%, 50%, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid hsla(32, 95%, 50%, 0.3);
}

.grema-hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--grema-accent));
}

.grema-hero h1 {
  font-size: 1.75rem;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 400px) {
  .grema-hero h1 { font-size: 2rem; }
}

@media (min-width: 576px) {
  .grema-hero h1 { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .grema-hero h1 { font-size: 3.75rem; }
}

@media (min-width: 992px) {
  .grema-hero h1 { font-size: 4.5rem; }
}

.grema-hero h1 .text-accent {
  display: block;
  background: linear-gradient(135deg, hsl(var(--grema-accent)), hsl(var(--grema-accent-hover)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grema-hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.25rem;
  word-wrap: break-word;
}

@media (min-width: 576px) {
  .grema-hero-desc { font-size: 1.125rem; }
}

@media (min-width: 768px) {
  .grema-hero-desc { font-size: 1.25rem; margin-bottom: 2rem; }
}

.grema-hero-price-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .grema-hero-price-box {
    padding: 1rem 1.5rem;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
  }
}

.grema-hero-price-old {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.grema-hero-price-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

@media (min-width: 576px) {
  .grema-hero-price-current { font-size: 2.25rem; }
}

.grema-hero-price-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .grema-hero-price-divider {
    display: none;
  }
}

.grema-hero-price-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--grema-accent));
}

.grema-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 400px) {
  .grema-hero-stats { gap: 1rem; }
}

@media (min-width: 768px) {
  .grema-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 56rem;
    gap: 1.25rem;
  }
}

/* Wszystkie breakpointy: ten sam układ kart – ikona po lewej, tekst po prawej (prostokąty poziome) */
.grema-hero-stats .grema-hero-stat-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 1rem;
  min-height: auto;
}

.grema-hero-stats .grema-hero-stat-card > div:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
  margin-bottom: 0;
  align-self: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.grema-hero-stats .grema-hero-stat-card > div:first-child .rounded-3 {
  flex-shrink: 0;
}

.grema-hero-stats .grema-hero-stat-card > .grema-hero-stat-text,
.grema-hero-stats .grema-hero-stat-card > div:not(:first-child) {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.grema-hero-stats .grema-hero-stat-card .grema-hero-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.grema-hero-stats .grema-hero-stat-card .grema-hero-stat-text .grema-hero-stat-value {
  margin-bottom: 0.125rem;
}

.grema-hero-stats .grema-hero-stat-card .grema-hero-stat-text h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.grema-hero-stats .grema-hero-stat-card > div.fw-bold.fs-4 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.grema-hero-stats .grema-hero-stat-card > div.fw-bold.fs-4 + div {
  margin-top: 0;
}

@media (max-width: 767px) {
  .grema-hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grema-hero-stats .grema-hero-stat-card {
    padding: 1rem 1.25rem;
  }

  .grema-hero-stats .grema-hero-stat-card .rounded-3 {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
}

@media (min-width: 768px) {
  .grema-hero-stats .grema-hero-stat-card {
    padding: 1.25rem;
  }

  .grema-hero-stats .grema-hero-stat-card .grema-hero-stat-text .grema-hero-stat-value {
    color: hsl(var(--grema-accent));
  }
}

.grema-hero-stat-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  padding: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  min-height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 576px) {
  .grema-hero-stat-card { padding: 1rem; }
}

.grema-hero-stat-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.grema-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.grema-hero-wave svg {
  width: 100%;
}

.grema-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.grema-social-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

@media (min-width: 576px) {
  .grema-social-proof {
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

.avatar-stack {
  display: flex;
}

.avatar-stack > *:not(:first-child) {
  margin-left: -0.5rem;
}

.grema-avatar-stack-lg > *:not(:first-child) {
  margin-left: -0.75rem;
}

.grema-avatar-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.grema-avatar-stack-lg .grema-avatar-img {
  width: 2.5rem;
  height: 2.5rem;
}

/* Opacity utilities */
.text-white-90 { color: rgba(255, 255, 255, 0.92) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-white-70 { color: rgba(255, 255, 255, 0.7) !important; }
.text-white-60 { color: rgba(255, 255, 255, 0.6) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-accent { color: hsl(var(--grema-accent)) !important; }
.bg-accent { background-color: hsl(var(--grema-accent)) !important; }
.bg-primary { background-color: hsl(var(--grema-primary)) !important; }
.bg-warning { background-color: hsl(var(--grema-accent)) !important; }
.text-primary { color: hsl(var(--grema-primary)) !important; }
.text-muted { color: hsl(var(--grema-muted-fg)) !important; }

/* --------------------------------------------------------------------------
   Bento / Features Section
   -------------------------------------------------------------------------- */
.grema-bento {
  background: hsl(var(--grema-bg));
  position: relative;
  overflow: hidden;
}

.grema-bento-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  pointer-events: none;
}

.grema-bento-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .grema-bento-header { margin-bottom: 4rem; }
}

.grema-bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--grema-primary) / 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--grema-primary));
}

.grema-bento h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 480px) {
  .grema-bento h2 { font-size: 1.875rem; }
}

@media (min-width: 768px) {
  .grema-bento h2 { font-size: 3rem; }
}

.grema-bento h2 .text-gradient {
  display: block;
  background: var(--grema-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grema-bento-trust {
  font-size: 0.9rem;
}
@media (min-width: 576px) {
  .grema-bento-trust { font-size: 0.95rem; }
}

.grema-bento-desc {
  color: hsl(var(--grema-muted-fg));
  font-size: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0.25rem;
}

@media (min-width: 576px) {
  .grema-bento-desc { font-size: 1.125rem; }
}

.grema-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grema-bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 992px) {
  .grema-bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.grema-bento-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid hsl(var(--grema-border));
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

@media (min-width: 576px) {
  .grema-bento-card { padding: 1.5rem; }
}

.grema-bento-card:hover {
  box-shadow: 0 8px 20px -4px rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
  border-color: hsl(var(--grema-primary) / 0.25);
}

.grema-bento-card.grema-bento-card-highlight {
  box-shadow: 0 0 0 2px hsl(var(--grema-accent)), 0 8px 24px -4px hsl(var(--grema-accent) / 0.2);
  border-color: hsl(var(--grema-accent));
  transform: translateY(-2px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

#oferta .grema-bento-card-dark.grema-bento-card-highlight {
  box-shadow: 0 0 0 2px hsl(var(--grema-accent)), 0 8px 24px -4px hsl(var(--grema-accent) / 0.3);
}

.grema-bento-card-dark {
  background: var(--grema-gradient-hero);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.grema-bento-card-dark h3 {
  color: white;
}

.grema-bento-card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.grema-bento-card-dark .grema-content p {
  color: rgba(255, 255, 255, 0.85);
}

.grema-bento-card-dark .bg-accent.bg-opacity-20 {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.grema-bento-card-accent {
  background: linear-gradient(135deg, hsl(var(--grema-accent) / 0.1), hsl(var(--grema-accent) / 0.05));
  border-color: hsl(var(--grema-accent) / 0.2);
}

/* Bento – karty z tłem (zdjęcia/wideo) */
.grema-bento-card-with-img .grema-bento-card-bg-img,
.grema-bento-card-with-media .grema-bento-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.grema-bento-card-with-img::before,
.grema-bento-card-with-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.grema-bento-media-card .grema-bento-card-img,
.grema-bento-media-card .grema-bento-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.grema-bento-media-card .grema-bento-card-img { opacity: 0.7; }
.grema-bento-media-card .grema-bento-card-video { opacity: 0.5; }
.grema-bento-media-card.grema-bento-card-accent .grema-bento-card-video { opacity: 0.45; }
.grema-bento-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.75) 100%);
  z-index: 1;
}
.grema-bento-media-card.grema-bento-card-accent::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.7) 100%);
}

/* Placeholder – gdy brak media w ACF */
.grema-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: hsl(var(--grema-muted) / 0.5);
  color: hsl(var(--grema-muted-fg));
  z-index: 0;
}
.grema-media-placeholder-bg {
  opacity: 0.6;
}
.grema-media-placeholder-video {
  background: hsl(var(--grema-primary) / 0.08);
}
.grema-media-placeholder-process {
  position: absolute;
  inset: 0;
}
.grema-media-placeholder-faq,
.grema-media-placeholder-cta {
  aspect-ratio: 16/10;
  min-height: 140px;
  position: relative;
  inset: auto;
}
.grema-media-placeholder-cta {
  aspect-ratio: 16/9;
  max-height: 220px;
}

/* Prosty proces – karty jako prostokąty poziome na mobile */
@media (max-width: 767px) {
  .grema-process-steps .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .grema-process-steps .grema-bento-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .grema-process-steps .grema-bento-card .rounded-3 {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .grema-process-steps .grema-bento-card h3 {
    margin-bottom: 0.25rem;
  }

  .grema-process-steps .grema-bento-card h3 + p {
    margin-bottom: 0;
  }
}

.grema-bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.grema-bento-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.grema-col-span-6 { grid-column: span 6; }
.grema-col-span-8 { grid-column: span 8; }
.grema-col-span-4 { grid-column: span 4; }

@media (max-width: 991px) {
  .grema-col-span-6,
  .grema-col-span-8,
  .grema-col-span-4 { grid-column: span 6; }
}

@media (max-width: 767px) {
  .grema-col-span-6,
  .grema-col-span-8,
  .grema-col-span-4 { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.grema-process {
  background: hsl(var(--grema-secondary) / 0.3);
  position: relative;
}

.grema-process-timeline {
  position: relative;
}

@media (min-width: 992px) {
  .grema-process-timeline::before {
    content: '';
    position: absolute;
    top: 6rem;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--grema-primary)), hsl(var(--grema-accent)), hsl(var(--grema-primary)));
    border-radius: 9999px;
    z-index: 0;
  }
  .grema-process-timeline .row {
    position: relative;
    z-index: 1;
  }
}

/* grema-process-steps z row – Bootstrap flex, bez nadpisywania grida */
.grema-process-steps.row {
  display: flex;
  flex-wrap: wrap;
}

.grema-process-step {
  background: white;
  border-radius: 1rem;
  border: 1px solid hsl(var(--grema-border));
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grema-process-step:hover {
  border-color: hsl(var(--grema-primary) / 0.25);
  box-shadow: 0 8px 20px -4px rgb(0 0 0 / 0.08);
}

.grema-process-number {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--grema-gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.grema-process-highlight {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--grema-accent) / 0.1);
  color: hsl(var(--grema-accent));
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.grema-process-step-with-media .grema-process-step-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}
.grema-process-step-with-media .grema-process-step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.85) 100%);
  z-index: 1;
}
.grema-process-step-with-media .position-relative.z-1 { z-index: 2; }

/* --------------------------------------------------------------------------
   Locations Section – Bento + Industrial
   -------------------------------------------------------------------------- */
.grema-locations {
  background: var(--grema-gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Industrial grid overlay */
.grema-locations::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.grema-locations-intro {
  padding-left: 0.75rem;
  border-left: 3px solid hsl(var(--grema-accent));
}

@media (min-width: 768px) {
  .grema-locations-intro {
    padding-left: 1rem;
  }
}

.grema-locations-label {
  letter-spacing: 0.12em;
}

.grema-locations-title {
  letter-spacing: -0.02em;
}

.grema-locations-intro .grema-btn {
  border-radius: var(--grema-radius-industrial);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.grema-szkolenie-cta .grema-cta-form-tile {
  background: hsl(var(--grema-bg));
  border-color: hsl(var(--grema-border) / 0.5);
}

/* Formularz CTA – karta ma białe tło, tekst musi być ciemny (sekcja ma color: white) */
.grema-szkolenie-cta .grema-contact-form,
.grema-szkolenie-cta .grema-contact-form .wpcf7,
.grema-szkolenie-cta .grema-contact-form .wpcf7-form,
.grema-szkolenie-cta .grema-contact-form label,
.grema-szkolenie-cta .grema-contact-form .wpcf7-list-item-label,
.grema-szkolenie-cta .grema-contact-form p {
  color: hsl(var(--grema-fg));
}

.grema-szkolenie-cta .grema-contact-form .wpcf7-form-control-wrap {
  color: inherit;
}

.grema-szkolenie-cta .grema-contact-form input[type="text"],
.grema-szkolenie-cta .grema-contact-form input[type="email"],
.grema-szkolenie-cta .grema-contact-form input[type="tel"],
.grema-szkolenie-cta .grema-contact-form textarea {
  color: hsl(var(--grema-fg));
  background-color: hsl(var(--grema-bg));
}

.grema-szkolenie-cta .grema-contact-form a {
  color: hsl(var(--grema-primary));
}

.grema-szkolenie-cta .grema-contact-form a:hover {
  color: hsl(var(--grema-primary-light));
}

/* Formularz w sekcji zapisz-sie – na wzór strony kontakt */
.grema-szkolenie-cta .grema-contact-form .wpcf7-form {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.grema-szkolenie-cta .grema-contact-form .wpcf7-form > p {
  margin-bottom: 1rem;
}

.grema-szkolenie-cta .grema-contact-form input[type="text"],
.grema-szkolenie-cta .grema-contact-form input[type="email"],
.grema-szkolenie-cta .grema-contact-form input[type="tel"],
.grema-szkolenie-cta .grema-contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid hsl(var(--grema-border));
  border-radius: var(--grema-radius);
  box-sizing: border-box;
}

.grema-szkolenie-cta .grema-contact-form .wpcf7-submit {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
}

@media (max-width: 575px) {
  .grema-szkolenie-cta .grema-contact-form .wpcf7-form {
    max-width: 100%;
  }
}

/* Filmy CTA – max 2, wypełniają kolumnę */
.grema-szkolenie-cta .col-lg-6:last-child {
  min-height: 0;
}

.grema-cta-videos-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.grema-cta-videos-stack.grema-cta-videos-single .grema-cta-video-slot {
  flex: 1;
}

.grema-cta-video-slot {
  flex: 1;
  min-height: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.grema-cta-video-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grema-cta-video-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.grema-cta-video-inner .wp-block-embed__wrapper,
.grema-cta-video-inner > div,
.grema-cta-video-inner figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.grema-cta-video-inner .wp-block-embed__wrapper iframe,
.grema-cta-video-inner > div iframe,
.grema-cta-video-inner figure iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Rząd 1: intro + baza główna obok siebie */
.grema-locations .row.g-4 > .col-lg-6:last-child {
  display: flex;
  align-items: stretch;
}

.grema-locations .row.g-4 > .col-lg-6:last-child > a {
  width: 100%;
  min-height: 200px;
}

@media (max-width: 991px) {
  .grema-locations .row.g-4 > .col-lg-6:last-child > a {
    min-height: 180px;
  }
}

/* Kafelki – rząd 2: lokalizacje */
.grema-locations-grid-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  min-width: 0;
}

.grema-location-card-tile {
  min-width: 0;
  width: 100%;
}

@media (min-width: 576px) {
  .grema-locations-grid-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (min-width: 992px) {
  .grema-locations-grid-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .grema-location-card-tile {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

/* Mobile – pełna szerokość, ikona obok tekstu */
@media (max-width: 575.98px) {
  .grema-location-card-tile {
    padding: 1rem 1.125rem;
  }

  .grema-location-card-tile .grema-location-card-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    align-items: start;
  }

  .grema-location-card-tile .grema-location-icon-wrap {
    grid-row: 1 / span 2;
    align-self: center;
    margin-bottom: 0;
    width: 2.35rem;
    height: 2.35rem;
  }

  .grema-location-card-tile .grema-location-icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .grema-location-card-tile .grema-location-city {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .grema-location-card-tile .grema-location-type {
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .grema-location-card-tile .grema-location-cta {
    font-size: 0.78rem;
    padding-top: 0.65rem;
    margin-top: 0.65rem;
    width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .grema-location-card-tile .grema-location-city {
    font-size: 0.95rem;
  }

  .grema-location-card-tile .grema-location-type {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

/* Industrial card – sharp corners, solid bg, strong border */
.grema-location-card {
  border-radius: var(--grema-radius-industrial);
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-width: 0;
  overflow: visible;
  color: inherit;
  border: 2px solid transparent;
  position: relative;
}

/* Kafelek – mniejszy, zwarty */
.grema-location-card-tile {
  padding: 1rem 1.25rem;
}

.grema-location-card-tile .grema-location-icon-wrap {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.35rem;
}

.grema-location-card-tile .grema-location-icon {
  width: 1rem;
  height: 1rem;
}

.grema-location-card-tile .grema-location-city {
  font-size: 0.9rem;
}

.grema-location-card-tile .grema-location-type {
  font-size: 0.7rem;
}

.grema-location-card-tile .grema-location-cta {
  font-size: 0.7rem;
  padding-top: 0.5rem;
}

.grema-location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.grema-location-card:focus-visible {
  outline: 2px solid hsl(var(--grema-primary-dark));
  outline-offset: 2px;
}

.grema-location-card-highlight:focus-visible {
  outline-color: hsl(var(--grema-primary-dark));
}

.grema-location-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Industrial icon – square, metallic */
.grema-location-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--grema-radius-industrial);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.5rem;
}

.grema-location-card-featured .grema-location-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.grema-location-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: inherit;
  opacity: 0.95;
}

.grema-location-card-featured .grema-location-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: inherit;
}

.grema-location-city {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.grema-location-card-featured .grema-location-city {
  font-size: 1.25rem;
}

.grema-location-card .grema-location-type {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.grema-location-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 400;
  width: 100%;
  text-align: left;
  text-wrap: balance;
  hyphens: auto;
  widows: 2;
  orphans: 2;
}

.grema-location-card-highlight .grema-location-desc {
  color: rgba(0, 0, 0, 0.8);
}

/* CTA – industrial divider */
.grema-location-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 2px solid;
  opacity: 0.95;
}

.grema-location-card:hover .grema-location-cta {
  opacity: 1;
}

.grema-location-card-featured .grema-location-cta {
  font-size: 0.85rem;
  padding-top: 1rem;
}

/* Featured – accent, industrial block, kontrast WCAG */
.grema-location-card-highlight {
  background: hsl(var(--grema-accent));
  color: hsl(var(--grema-primary-dark));
  border-color: hsl(var(--grema-accent-hover));
}

.grema-location-card-highlight .grema-location-icon-wrap {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
}

.grema-location-card-highlight .grema-location-icon {
  color: hsl(var(--grema-primary-dark));
  opacity: 1;
}

.grema-location-card-highlight .grema-location-city {
  color: hsl(var(--grema-primary-dark));
}

.grema-location-card-highlight .grema-location-type {
  color: hsl(210, 70%, 18%);
}

.grema-location-card-highlight .grema-location-desc {
  color: hsl(210, 60%, 22%);
}

.grema-location-card-highlight .grema-location-cta {
  border-top-color: rgba(0, 0, 0, 0.25);
  color: hsl(var(--grema-primary-dark));
}

/* Normal – solid industrial gray, no glassmorphism */
.grema-location-card-normal {
  background: var(--grema-industrial-card);
  border-color: var(--grema-industrial-border);
}

.grema-location-card-normal .grema-location-type {
  color: rgba(255, 255, 255, 0.6);
}

.grema-location-card-normal .grema-location-cta {
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.15);
}

.grema-location-card-normal:hover {
  border-color: hsl(215 30% 35%);
}

/* Badge – rectangular, industrial, dobrze widoczny */
.grema-location-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--grema-primary-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--grema-radius-industrial);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   FAQ Section – semantyczny HTML (details/summary), BEM, schema.org
   -------------------------------------------------------------------------- */
.grema-faq {
  background: var(--grema-gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  /* Izolacja warstwy GPU + containment – ogranicza migotanie przy rozwijaniu akordeonu */
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout;
}
.grema-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.grema-faq .grema-container {
  position: relative;
  z-index: 1;
}

/* Header – czytelność na ciemnym tle */
.grema-faq__header .grema-faq__title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.grema-faq__header .grema-faq__badge.text-accent {
  color: hsl(var(--grema-accent)) !important;
}
.grema-faq__header .grema-faq__title .text-accent {
  color: hsl(var(--grema-accent)) !important;
}
.grema-faq .grema-faq__desc.text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
}

/* Grid: pytania | sidebar (zdjęcie + CTA) */
.grema-faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .grema-faq__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2.5rem;
    align-items: start;
  }
}

.grema-faq__list {
  min-width: 0;
}

@media (min-width: 992px) {
  .grema-faq__list {
    max-height: min(72vh, 44rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .grema-faq__list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.grema-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* details/summary – akordeon z płynnym panelem */
.grema-faq__item {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: border-color 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-faq__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.grema-faq__item[open]:not(.grema-faq__item--closing) {
  border-color: hsl(var(--grema-accent) / 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.grema-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  color: hsl(var(--grema-fg));
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.grema-faq__trigger-text {
  flex: 1;
  min-width: 0;
}

.grema-faq__trigger::-webkit-details-marker,
.grema-faq__trigger::marker {
  display: none;
}

.grema-faq__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: hsl(var(--grema-primary) / 0.08);
  color: hsl(var(--grema-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s cubic-bezier(0.33, 1, 0.68, 1), color 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-faq__icon::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-faq__item[open]:not(.grema-faq__item--closing) .grema-faq__icon {
  background: hsl(var(--grema-accent) / 0.15);
  color: hsl(var(--grema-accent));
}

.grema-faq__item[open]:not(.grema-faq__item--closing) .grema-faq__icon::before {
  transform: rotate(-135deg) translateY(1px);
}

.grema-faq__trigger:hover {
  color: hsl(var(--grema-primary));
}

.grema-faq__trigger:hover .grema-faq__icon {
  background: hsl(var(--grema-primary) / 0.12);
}

.grema-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-faq__item[open]:not(.grema-faq__item--closing) .grema-faq__panel {
  grid-template-rows: 1fr;
}

.grema-faq__item.grema-faq__item--closing .grema-faq__panel {
  grid-template-rows: 0fr;
}

.grema-faq__answer {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem;
  color: hsl(var(--grema-muted-fg));
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-0.4rem);
  transition:
    opacity 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    padding 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-faq__item[open]:not(.grema-faq__item--closing) .grema-faq__answer {
  padding: 0 1.25rem 1.125rem;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s, 0.06s, 0.06s;
}

.grema-faq__item.grema-faq__item--closing .grema-faq__answer,
.grema-faq__item:not([open]) .grema-faq__answer {
  transition-delay: 0s, 0s, 0s;
}

.grema-faq__answer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .grema-faq__item,
  .grema-faq__panel,
  .grema-faq__answer,
  .grema-faq__icon,
  .grema-faq__icon::before {
    transition: none !important;
  }
}

/* Sidebar – sticky, stały rozmiar (nie rozciąga się z akordeonem) */
.grema-faq__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

@media (min-width: 992px) {
  .grema-faq__sidebar {
    position: sticky;
    top: calc(var(--grema-navbar-height) + 1.25rem);
  }
}

.grema-faq__media {
  margin: 0;
  background: white;
  overflow: hidden;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.grema-faq__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.grema-faq__cta {
  flex-shrink: 0;
}

/* CTA w FAQ – kompaktowa karta pod zdjęciem */
.grema-faq .grema-faq__cta.grema-bento-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: hsl(var(--grema-fg));
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.grema-faq .grema-faq__cta.grema-bento-card h3 {
  color: hsl(var(--grema-fg));
  width: 100%;
}
.grema-faq .grema-faq__cta.grema-bento-card .text-muted {
  color: hsl(var(--grema-muted-fg)) !important;
  width: 100%;
}
.grema-faq .grema-faq__cta.grema-bento-card .grema-btn {
  align-self: center;
}
.grema-faq .grema-faq__cta.grema-bento-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Zachowaj linki kontaktowe (jeśli występują) */
.grema-faq-contact-link {
  color: hsl(var(--grema-primary));
  transition: color 0.2s;
}
.grema-faq-contact-link:hover {
  color: hsl(var(--grema-accent));
}
.grema-faq-contact-link svg {
  flex-shrink: 0;
  color: hsl(var(--grema-accent));
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.grema-cta {
  position: relative;
  overflow: hidden;
}

/* CTA intro – czytelność i kontrast na ciemnym tle */
.grema-cta.grema-locations .grema-cta-title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.grema-cta.grema-locations .grema-cta-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.grema-cta-facts {
  margin-top: 1.5rem;
}
.grema-cta-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--grema-industrial-card);
  border: 1px solid var(--grema-industrial-border);
  border-radius: var(--grema-radius-industrial);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.grema-cta-fact svg {
  flex-shrink: 0;
  color: hsl(var(--grema-accent));
}

.grema-cta-media-bento {
  aspect-ratio: 16/9;
  max-height: 220px;
  background: hsl(var(--grema-muted) / 0.5);
}
.grema-cta-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grema-cta-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
}
.grema-cta-media-content {
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 767px) {
  #zapisz-sie .row.g-3.mb-4 .grema-bento-card > svg {
    display: none;
  }
}

/* Pricing card – bento + industrial */
.grema-cta-pricing-card {
  background: hsl(var(--grema-bg));
  border-radius: var(--grema-radius-industrial);
  border: 2px solid var(--grema-industrial-border);
  border-left: 4px solid hsl(var(--grema-accent));
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.grema-cta-pricing-header {
  background: var(--grema-industrial-card);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: white;
  border-bottom: 2px solid var(--grema-industrial-border);
}
.grema-cta-pricing-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.grema-cta-pricing-header .bg-accent.bg-opacity-20 {
  background-color: hsl(var(--grema-accent) / 0.2) !important;
  color: white !important;
  border-radius: var(--grema-radius-industrial);
  padding: 0.35rem 0.75rem;
}

.grema-cta-pricing-header .bg-accent.bg-opacity-20 svg,
.grema-cta-pricing-header .bg-accent.bg-opacity-20 span {
  color: white !important;
}

.grema-cta-pricing-body {
  padding: 1.5rem;
}

.grema-cta-price-old {
  font-size: 0.875rem;
  color: hsl(var(--grema-muted-fg));
  text-decoration: line-through;
}

.grema-cta-price-current {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--grema-fg));
}
.grema-cta-price-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--grema-muted-fg));
}

@media (min-width: 480px) {
  .grema-cta-price-current { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .grema-cta-price-current { font-size: 3rem; }
}

.grema-cta-savings {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--grema-radius-industrial);
  background: hsl(var(--grema-accent) / 0.15);
  color: hsl(var(--grema-primary-dark));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid hsl(var(--grema-accent) / 0.3);
}

/* Benefit list – industrial checkmark (accent color) */
#zapisz-sie .grema-cta-pricing-body ul li {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--grema-fg));
}

#zapisz-sie .grema-cta-pricing-body .grema-cta-benefit-icon {
  color: hsl(var(--grema-accent));
  stroke: hsl(var(--grema-accent));
  flex-shrink: 0;
}

/* Form card – bento + industrial, układ jak karta referencyjna */
.grema-cta-form-card {
  background: hsl(var(--grema-bg));
  border: 2px solid var(--grema-industrial-border);
  border-radius: var(--grema-radius-industrial);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-form,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cf7-fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.75rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--submit {
  margin-top: auto;
}

#zapisz-sie .grema-cta-form-card.grema-bento-card {
  border-radius: var(--grema-radius-industrial);
}

/* Karta boczna – wyrównanie do formularza */
.grema-cta-side-card {
  background: hsl(var(--grema-bg));
  border: 2px solid var(--grema-industrial-border);
  border-radius: var(--grema-radius-industrial);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
}

.grema-cta-side-card .grema-cta-side-card-title {
  color: hsl(var(--grema-fg));
  letter-spacing: 0.02em;
}

.grema-cta-side-card .grema-btn {
  border-radius: var(--grema-radius-industrial);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grema-cta-side-locations {
  flex: 1;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.grema-cta-contact-info--compact {
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
}

.grema-cta-side-locations--compact-top {
  margin-top: 0.5rem !important;
}

.grema-cta-side-locations .d-flex.flex-wrap,
.grema-cta-side-locations .grema-cta-city-tiles {
  flex: 1;
  min-height: 0;
  min-width: 0; /* pozwala na zawijanie w wąskim oknie */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 0.75rem;
  align-content: start;
  overflow: visible;
}

.grema-cta-side-card .grema-cta-side-locations {
  border-bottom: 2px solid hsl(var(--grema-border)) !important;
}

.grema-cta-side-locations--large {
  min-height: 12rem;
  padding-top: 1rem !important;
  padding-bottom: 2rem !important;
}

.grema-cta-side-locations .small.fw-semibold {
  font-size: 0.875rem !important;
  margin-bottom: 0.75rem !important;
}

.grema-cta-city-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: hsl(var(--grema-fg) / 0.08);
  color: hsl(var(--grema-fg));
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  min-width: 0;
  white-space: nowrap; /* nazwy miast w jednej linii – bez dzielenia słów */
}

.grema-cta-city-pill:hover {
  background: hsl(var(--grema-accent) / 0.2);
  color: hsl(var(--grema-primary));
}

#zapisz-sie .col-lg-5 .grema-cta-pricing-card {
  flex-shrink: 0;
}

/* min-width: 0 – umożliwia zawężanie w wąskim oknie (flex/grid) */
#zapisz-sie .row .col-lg-5,
#zapisz-sie .grema-cta-side-card,
#zapisz-sie .grema-cta-side-locations {
  min-width: 0;
}

/* Kolumny równo zakończone – ta sama wysokość */
#zapisz-sie .row.g-5 .col-lg-5,
#zapisz-sie .row.g-5 .col-lg-6 {
  display: flex;
  flex-direction: column;
}
#zapisz-sie .row.g-5 .col-lg-6 .grema-cta-form-card {
  flex: 1;
  min-height: 0;
}

/* Minimalne efekty hover w sekcji zapisz-sie */
#zapisz-sie .grema-cta-side-card.grema-bento-card:hover,
#zapisz-sie .grema-cta-form-card.grema-bento-card:hover {
  transform: none;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
  border-color: var(--grema-industrial-border);
}
#zapisz-sie .grema-cta-city-pill:hover {
  background: hsl(var(--grema-fg) / 0.12);
  color: hsl(var(--grema-fg));
}
#zapisz-sie .grema-cta-form-card.grema-cf7 {
  border-left: 4px solid hsl(var(--grema-accent));
  padding: 0;
  display: flex;
  flex-direction: column;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 7.25rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-header h3,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-header .grema-cta-pricing-subtitle {
  text-align: center;
  width: 100%;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1.25rem 1.5rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-header h3,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cta-pricing-header .grema-cta-pricing-subtitle {
  color: inherit;
}

#zapisz-sie .grema-cta-form-card h3 {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: hsl(var(--grema-fg));
}

#zapisz-sie .grema-cta-form-card .grema-cta-contact-address {
  color: hsl(var(--grema-muted-fg)) !important;
}

/* Informacje kontaktowe – industrial */
#zapisz-sie .grema-cta-contact-info {
  border-bottom: 2px solid hsl(var(--grema-border)) !important;
}

.grema-cta-contact-info .grema-cta-contact-link {
  color: hsl(var(--grema-primary));
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: break-word;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.grema-cta-contact-info .grema-cta-contact-link:hover {
  color: hsl(var(--grema-accent));
}
.grema-cta-contact-info .grema-cta-contact-link svg {
  flex-shrink: 0;
  color: hsl(var(--grema-accent));
}
.grema-cta-contact-address {
  line-height: 1.5;
  font-size: 0.875rem;
  overflow-wrap: break-word;
}

/* Formularz CF7 w sekcji zapisz-sie – pełne ostylowanie */
#zapisz-sie .grema-cta-form-card.grema-cf7,
#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-form,
#zapisz-sie .grema-cta-form-card.grema-cf7 p {
  color: hsl(var(--grema-fg));
}

/* Etykiety pól tekstowych – nie dotyczy checkboxów zgody */
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row label,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--textarea label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--grema-fg));
  margin-bottom: 0.25rem;
  background: none !important;
  background-color: transparent !important;
  padding: 0;
  border: none;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row label::before,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row label::after,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--textarea label::before,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--textarea label::after {
  display: none !important;
  content: none !important;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--select label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--grema-fg));
  margin-bottom: 0.25rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--select select.grema-input,
#zapisz-sie .grema-cta-form-card.grema-cf7 select.course-dates-select,
#zapisz-sie .grema-cta-form-card.grema-cf7 select.grema-course-branch-select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border-radius: var(--grema-radius-industrial);
  border: 2px solid hsl(var(--grema-border));
  background-color: hsl(var(--grema-bg));
  color: hsl(var(--grema-fg));
  font-size: 0.9375rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--select select:focus {
  outline: none;
  border-color: hsl(var(--grema-accent));
  box-shadow: 0 0 0 3px hsl(var(--grema-accent) / 0.2);
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--select {
  margin-bottom: 1rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group {
  margin-bottom: 0;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row:last-child,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group:last-child {
  margin-bottom: 0;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--submit {
  margin-top: 0.25rem;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--submit .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.2rem;
}
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-input,
#zapisz-sie .grema-cta-form-card.grema-cf7 input[type="text"],
#zapisz-sie .grema-cta-form-card.grema-cf7 input[type="email"],
#zapisz-sie .grema-cta-form-card.grema-cf7 input[type="tel"],
#zapisz-sie .grema-cta-form-card.grema-cf7 input[type="number"],
#zapisz-sie .grema-cta-form-card.grema-cf7 textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid hsl(var(--grema-fg) / 0.2);
  border-radius: var(--grema-radius-industrial);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: hsl(var(--grema-fg));
  transition: border-color 0.2s, box-shadow 0.2s;
  scroll-margin-top: calc(var(--grema-navbar-height) + 1rem);
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance label {
  scroll-margin-top: calc(var(--grema-navbar-height) + 1rem);
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-row--select select.wpcf7-not-valid,
#zapisz-sie .grema-cta-form-card.grema-cf7 select.grema-course-branch-select.wpcf7-not-valid,
#zapisz-sie .grema-cta-form-card.grema-cf7 select.course-dates-select.wpcf7-not-valid {
  border-color: hsl(0 72% 55%) !important;
  box-shadow: 0 0 0 1px hsl(0 72% 55% / 0.35);
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-branch-geo-hint {
  font-size: 0.8125rem;
  color: hsl(var(--grema-muted-fg));
  line-height: 1.4;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-cf7-schedule-tip,
#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: hsl(0 72% 48%);
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-response-output {
  scroll-margin-top: calc(var(--grema-navbar-height) + 1rem);
  margin: 0 0 1rem;
}

/* Sukces CF7 – komunikat w popupie zamiast inline */
.grema-cf7 .wpcf7-form.sent .wpcf7-response-output {
  display: none !important;
}

/* Popup sukcesu CF7 */
.grema-cf7-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.grema-cf7-modal[hidden] {
  display: none !important;
}

body.grema-cf7-modal-open {
  overflow: hidden;
}

.grema-cf7-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--grema-industrial) / 0.55);
  backdrop-filter: blur(6px);
  animation: grema-cf7-modal-fade-in 0.25s ease;
}

.grema-cf7-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  border: 1px solid hsl(var(--grema-border));
  box-shadow:
    0 24px 48px -12px hsla(215, 30%, 15%, 0.25),
    0 8px 16px -8px hsla(215, 30%, 15%, 0.12);
  animation: grema-cf7-modal-scale-in 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.grema-cf7-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: hsl(var(--grema-muted));
  color: hsl(var(--grema-muted-fg));
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.grema-cf7-modal__close:hover {
  background: hsl(var(--grema-secondary));
  color: hsl(var(--grema-fg));
}

.grema-cf7-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: hsl(var(--grema-accent) / 0.12);
  color: hsl(var(--grema-accent));
}

.grema-cf7-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--grema-fg));
}

.grema-cf7-modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--grema-muted-fg));
}

.grema-cf7-modal__btn {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
}

@keyframes grema-cf7-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grema-cf7-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grema-cf7-modal__backdrop,
  .grema-cf7-modal__dialog {
    animation: none;
  }
}

#zapisz-sie .grema-cta-form-card.grema-cf7 input:focus,
#zapisz-sie .grema-cta-form-card.grema-cf7 textarea:focus {
  outline: none;
  border-color: hsl(var(--grema-accent));
  border-width: 2px;
  box-shadow: 0 0 0 2px hsl(var(--grema-accent) / 0.2);
}
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-textarea,
#zapisz-sie .grema-cta-form-card.grema-cf7 textarea {
  min-height: 88px;
  resize: vertical;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-btn-submit,
#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grema-gradient-cta);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow:
    0 4px 14px -2px hsla(32, 95%, 40%, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-btn-submit:hover,
#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-submit:hover {
  filter: brightness(1.05);
  box-shadow:
    0 6px 20px -2px hsla(32, 95%, 40%, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-btn-submit:focus-visible,
#zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-submit:focus-visible {
  outline: 2px solid hsl(var(--grema-primary));
  outline-offset: 2px;
}
@media (max-width: 767px) {
  #zapisz-sie .grema-cta-form-card.grema-cf7 .grema-btn-submit,
  #zapisz-sie .grema-cta-form-card.grema-cf7 .wpcf7-submit {
    min-height: 56px;
    padding: 1.125rem 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    border-radius: 1rem;
    margin-top: 0.75rem;
    box-shadow:
      0 6px 20px -2px hsla(32, 95%, 40%, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance {
  margin-top: 0.5rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance > p {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance .wpcf7-form-control-wrap {
  margin: 0;
  display: block;
  width: 100%;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance .wpcf7-list-item,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance .wpcf7-acceptance {
  margin: 0;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0 !important;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: hsl(var(--grema-fg));
  cursor: pointer;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance .grema-checkbox,
#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  padding: 0;
  cursor: pointer;
  accent-color: hsl(var(--grema-primary));
  border-radius: 0.25rem;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance .wpcf7-list-item-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: hsl(var(--grema-fg));
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance a {
  color: hsl(var(--grema-primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#zapisz-sie .grema-cta-form-card.grema-cf7 .grema-field-group--acceptance a:hover {
  color: hsl(var(--grema-primary-light));
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.grema-footer {
  background: hsl(var(--grema-industrial));
  color: white;
}

.grema-footer-main {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .grema-footer-main {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.grema-footer-desc {
  max-width: 22rem;
}

.grema-footer-badges {
  display: flex;
  gap: 0.5rem;
}
.grema-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--grema-accent));
  letter-spacing: 0.05em;
}

.grema-footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.grema-footer-menu li,
.grema-footer-contact li {
  margin-bottom: 0.75rem;
}
.grema-footer-menu li:last-child,
.grema-footer-contact li:last-child {
  margin-bottom: 0;
}

.grema-footer-menu a,
.grema-footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}
.grema-footer-menu a:hover,
.grema-footer-contact a:hover {
  color: hsl(var(--grema-accent));
}

.grema-footer-address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.grema-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.grema-footer a:hover {
  color: hsl(var(--grema-accent));
}

.grema-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.grema-footer-bottom .grema-footer-legal a:hover {
  color: hsl(var(--grema-accent)) !important;
}

/* --------------------------------------------------------------------------
   Contact Form 7 - Custom styling
   -------------------------------------------------------------------------- */
.grema-cf7 .wpcf7,
.grema-contact-form .wpcf7 {
  position: relative;
}

/* Elementy systemowe CF7 – niewidoczne wizualnie, zostają dla JS / czytników ekranu */
.grema-cf7 .screen-reader-response,
.grema-cf7 .hidden-fields-container,
.wpcf7 .screen-reader-response,
.wpcf7 .hidden-fields-container {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Na dole wrappera CF7 – focus nie przewija strony na samą górę */
.grema-cf7 .screen-reader-response,
.wpcf7 .screen-reader-response {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.grema-cf7 .hidden-fields-container,
.wpcf7 .hidden-fields-container {
  display: none !important;
}

.grema-cf7 input[name="grema-course"],
.grema-cf7 input[name="grema-page-url"],
.grema-cf7 input[name="grema-source-url"],
.wpcf7 input[name="grema-course"],
.wpcf7 input[name="grema-page-url"],
.wpcf7 input[name="grema-source-url"] {
  display: none !important;
}

/* Usuń niechciane tło z etykiet (np. z autouzupełniania lub przeglądarki) */
.grema-cf7 label,
.grema-cf7 .wpcf7-list-item-label,
.grema-contact-form label,
.grema-contact-form .wpcf7-list-item-label,
.grema-szkolenie-cta .grema-contact-form label,
.grema-szkolenie-cta .grema-contact-form .wpcf7-list-item-label {
  background: none !important;
  background-color: transparent !important;
  color: inherit;
}

.grema-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem;
}

.grema-cf7 input[type="text"],
.grema-cf7 input[type="email"],
.grema-cf7 input[type="tel"],
.grema-cf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--grema-border));
  border-radius: var(--grema-radius);
  font-size: 1rem;
  font-family: inherit;
}

/* Usuń niebieskie/żółte tło z autouzupełniania przeglądarki */
.grema-cf7 input:-webkit-autofill,
.grema-cf7 input:-webkit-autofill:hover,
.grema-cf7 input:-webkit-autofill:focus,
.grema-contact-form input:-webkit-autofill,
.grema-contact-form input:-webkit-autofill:hover,
.grema-contact-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px hsl(var(--grema-bg)) inset !important;
  box-shadow: 0 0 0 30px hsl(var(--grema-bg)) inset !important;
}

.grema-cf7 input:focus,
.grema-cf7 textarea:focus {
  outline: 2px solid hsl(var(--grema-primary));
  outline-offset: 2px;
}

.grema-cf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: hsl(var(--grema-accent));
  color: white;
  border: none;
  border-radius: var(--grema-radius);
  cursor: pointer;
  box-shadow: var(--grema-shadow-cta);
  transition: all 0.2s;
}

.grema-cf7 .wpcf7-submit:hover {
  filter: brightness(1.1);
}

/* Pola zgody – checkbox obok tekstu, jeden pod drugim */
.grema-cf7 .grema-field-group--acceptance,
.grema-cf7 p:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
  width: 100%;
}

.grema-cf7 .grema-field-group--acceptance > p {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.grema-cf7 .grema-field-group--acceptance .wpcf7-form-control-wrap,
.grema-cf7 p:has(input[type="checkbox"]) .wpcf7-form-control-wrap {
  margin: 0;
  display: block;
  width: 100%;
}

.grema-cf7 .grema-field-group--acceptance label,
.grema-cf7 p:has(input[type="checkbox"]) label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0 !important;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.grema-cf7 .grema-field-group--acceptance input[type="checkbox"],
.grema-cf7 p:has(input[type="checkbox"]) input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  padding: 0;
  cursor: pointer;
  accent-color: hsl(var(--grema-primary));
  border-radius: 0.25rem;
}

.grema-cf7 .grema-field-group--acceptance .wpcf7-list-item-label,
.grema-cf7 p:has(input[type="checkbox"]) .wpcf7-list-item-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.grema-cf7 .grema-field-group--acceptance a,
.grema-cf7 p:has(input[type="checkbox"]) a,
.grema-cf7 .wpcf7-form-control-wrap[data-name*="acceptance"] a {
  color: hsl(var(--grema-primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grema-cf7 .grema-field-group--acceptance a:hover,
.grema-cf7 p:has(input[type="checkbox"]) a:hover,
.grema-cf7 .wpcf7-form-control-wrap[data-name*="acceptance"] a:hover {
  color: hsl(var(--grema-primary-light));
}

/* Układ formularza w sekcji zapisz-sie: imię/email/temat | wiadomość, przycisk obok zgód */
.grema-cta-form-tile {
  min-width: 0;
}

.grema-cta-form-tile .grema-cf7 {
  min-width: 0;
  overflow: hidden;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: stretch;
  min-width: 0;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(textarea) {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(textarea) textarea {
  min-height: 10rem;
  height: 100%;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form > p:not(:has(textarea)):not(:has(input[type="checkbox"])):not(:has(input[type="submit"])) {
  grid-column: 1;
}

/* Wiersz zgód + przycisk – symetryczne wyrównanie */
.grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(input[type="checkbox"]) {
  grid-column: 1;
  grid-row: 4;
  align-self: center;
  margin-bottom: 0;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(input[type="submit"]) {
  grid-column: 2;
  grid-row: 4;
  align-self: center;
  justify-self: end;
  margin-bottom: 0;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-submit {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1.0625rem;
}

/* Równe odstępy między polami formularza */
.grema-cta-form-tile .grema-cf7 .wpcf7-form > p {
  margin-bottom: 0;
}

.grema-cta-form-tile .grema-cf7 .wpcf7-form > p + p {
  margin-top: 0;
}

@media (max-width: 767px) {
  .grema-cta-form-tile .grema-cf7 .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .grema-cta-form-tile .grema-cf7 .wpcf7-form > p {
    width: 100%;
    min-width: 0;
  }

  .grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(textarea) textarea {
    min-height: 8rem;
    height: auto;
  }

  .grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(input[type="checkbox"]) {
    flex-wrap: wrap;
  }

  .grema-cta-form-tile .grema-cf7 .wpcf7-form > p:has(.wpcf7-form-control-wrap:nth-of-type(2)) .wpcf7-form-control-wrap:nth-of-type(2) {
    flex-basis: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--grema-border) / 0.5);
  }

  .grema-cta-form-tile .grema-cf7 .wpcf7-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Formularz kontaktowy – węższe pola (80%), wyśrodkowany */
.grema-contact-form .wpcf7-form {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.grema-contact-form .wpcf7-form > p {
  margin-bottom: 1rem;
}

.grema-contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.grema-contact-form input[type="text"],
.grema-contact-form input[type="email"],
.grema-contact-form input[type="tel"],
.grema-contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.grema-contact-form .wpcf7-submit {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
}

.grema-contact-form p:has(input[type="checkbox"]) {
  margin-bottom: 0.75rem;
}

@media (max-width: 575px) {
  .grema-contact-form .wpcf7-form {
    max-width: 100%;
  }
}

/* Ukryj pasek między zgodami na stronie kontaktu */
.grema-contact-form p:has(.wpcf7-form-control-wrap:nth-of-type(2)) .wpcf7-form-control-wrap:nth-of-type(2) {
  border-top: none;
  padding-top: 0.25rem;
}

.grema-contact-section {
  padding-top: 1.5rem !important;
}

@media (min-width: 768px) {
  .grema-contact-section {
    padding-top: 2rem !important;
  }
}

@media (min-width: 992px) {
  .grema-contact-section {
    padding-top: 2.5rem !important;
  }
}

/* Sekcja „Zrób więcej” – spójna z zapisz-sie (industrial, ciemne tło) */
.grema-benefits-grid.grema-locations {
  color: white;
}

.grema-benefits-grid-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: white;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.grema-benefits-grid-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: hsl(var(--grema-bg));
  border: 2px solid var(--grema-industrial-border);
  border-radius: var(--grema-radius-industrial);
  overflow: hidden;
  min-height: 320px;
  height: 320px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 992px) {
  .grema-benefits-grid-card {
    height: 340px;
    min-height: 340px;
  }
}

.grema-benefits-grid-card:hover {
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  border-color: hsl(var(--grema-primary) / 0.4);
}

/* Jednolita przestrzeń na media – stała szerokość i wysokość (zgodna z wysokością karty) */
.grema-benefits-grid-card-media {
  flex: 0 0 140px;
  width: 140px;
  min-width: 140px;
  overflow: hidden;
}

.grema-benefits-grid-card-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.grema-benefits-grid-card-icon {
  flex: 0 0 140px;
  width: 140px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--grema-accent) / 0.1);
  border-right: 2px solid hsl(var(--grema-border));
}

@media (min-width: 992px) {
  .grema-benefits-grid-card-media {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
  }
  .grema-benefits-grid-card-icon {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
  }
}

.grema-benefits-grid-card-icon svg {
  width: 3rem !important;
  height: 3rem !important;
  color: hsl(var(--grema-accent));
}

/* Jednolita przestrzeń na treść – flex: 1, stały padding */
.grema-benefits-grid-card-body {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grema-benefits-grid-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: hsl(var(--grema-fg));
  margin: 0;
  line-height: 1.3;
}

.grema-benefits-grid-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(var(--grema-muted-fg));
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grema-benefits-grid-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--grema-primary));
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.grema-benefits-grid-card-link:hover {
  color: hsl(var(--grema-accent));
}

@media (max-width: 991.98px) {
  .grema-benefits-grid-title {
    margin-bottom: 2rem !important;
  }

  .grema-benefits-grid-card {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .grema-benefits-grid-card-media {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    position: relative;
  }

  .grema-benefits-grid-card-icon {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 7rem;
    max-height: none;
    aspect-ratio: auto;
    border-right: none;
    border-bottom: 2px solid hsl(var(--grema-border));
  }

  .grema-benefits-grid-card-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }

  .grema-benefits-grid-card-media .grema-benefits-grid-card-img {
    position: absolute;
    inset: 0;
  }

  .grema-benefits-grid-card-body {
    padding: 1.125rem 1.25rem 1.25rem;
  }

  .grema-benefits-grid-card-title {
    font-size: 1.05rem;
  }

  .grema-benefits-grid-card-desc {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    font-size: 0.9rem;
  }
}

/* Strona Referencje – opinie (mniejszy padding, marquee) */
.grema-testimonials-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grema-testimonials-marquee {
  overflow: hidden;
  mask-image: linear-gradient( to right, transparent, black 5%, black 95%, transparent );
  -webkit-mask-image: linear-gradient( to right, transparent, black 5%, black 95%, transparent );
}

.grema-testimonials-track {
  display: flex;
  width: max-content;
  animation: grema-testimonials-scroll 45s linear infinite;
}

.grema-testimonials-track-reverse {
  animation: grema-testimonials-scroll-reverse 45s linear infinite;
}

.grema-testimonials-track {
  gap: 1.25rem;
}

.grema-testimonial-card {
  flex: 0 0 auto;
  width: 340px;
  aspect-ratio: 6 / 3;
  min-height: 0;
}

.grema-testimonial-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid hsl(var(--grema-border));
  box-shadow: 0 2px 12px -4px rgb(0 0 0 / 0.06);
}

.grema-testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  color: #eab308;
}

.grema-testimonial-quote {
  font-size: 0.95rem;
  color: hsl(var(--grema-muted-fg));
  line-height: 1.4;
  margin: 0 0 0.5rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.grema-testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.grema-testimonial-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: hsl(var(--grema-fg));
}

.grema-testimonial-role {
  font-size: 0.8rem;
  color: hsl(var(--grema-muted-fg));
}

@media (min-width: 576px) {
  .grema-testimonial-card {
    width: 420px;
  }

  .grema-testimonial-card-inner {
    padding: 1.25rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grema-testimonials-track,
  .grema-testimonials-track-reverse {
    animation: none;
  }

  .grema-testimonials-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@keyframes grema-testimonials-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes grema-testimonials-scroll-reverse {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.grema-courses-section {
  padding-top: 1.5rem !important;
}

/* Strona O nas – mniejsze paddingi między sekcjami */
.grema-about-page .section-padding {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
  .grema-about-page .section-padding {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (min-width: 992px) {
  .grema-about-page .section-padding {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

.grema-about-page .grema-hero-section-subpage {
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .grema-about-page .grema-hero-section-subpage {
    padding-bottom: 2rem;
  }
}

/* Strona O nas – sekcja Misja (bento) */
.grema-about-mission.grema-bento {
  background: hsl(var(--grema-bg));
}

.grema-about-mission-bento {
  align-items: stretch;
}

.grema-about-mission-bento .grema-col-span-4 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grema-about-mission-bento .grema-about-fact-card {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

.grema-about-fact-card .grema-about-fact-text {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--grema-accent));
  line-height: 1.4;
}

@media (min-width: 768px) {
  .grema-about-fact-card .grema-about-fact-text {
    font-size: 1.05rem;
  }
}

.grema-about-stat-card .grema-about-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--grema-accent));
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.grema-about-stat-card .grema-about-stat-label {
  font-size: 0.85rem;
  color: hsl(var(--grema-muted-fg));
  line-height: 1.4;
  margin-top: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .grema-about-stat-card .grema-about-stat-value {
    font-size: 1.75rem;
  }

  .grema-about-stat-card .grema-about-stat-label {
    font-size: 0.9rem;
  }
}

/* Strona O nas – wartości (siatka 2×2 z kartami i lewą krawędzią) */
.grema-about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grema-about-value-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: hsl(var(--grema-bg));
  border-left: 4px solid hsl(var(--grema-accent));
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px hsl(var(--grema-border) / 0.5);
}

.grema-about-value-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: hsl(var(--grema-fg));
}

.grema-about-value-card-desc {
  font-size: 0.9rem;
  color: hsl(var(--grema-muted-fg));
  line-height: 1.5;
}

@media (min-width: 576px) {
  .grema-about-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .grema-about-values-grid {
    gap: 1.5rem;
  }

  .grema-about-value-card {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  }

  .grema-about-value-card-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .grema-courses-section {
    padding-top: 2rem !important;
  }
}

@media (min-width: 992px) {
  .grema-courses-section {
    padding-top: 2.5rem !important;
  }
}

/* Blok dodatkowy w prawej kolumnie kontaktu */
.grema-contact-sidebar-extra a {
  color: hsl(var(--grema-primary));
  font-weight: 600;
  text-decoration: none;
}

.grema-contact-sidebar-extra a:hover {
  text-decoration: underline;
}

.grema-contact-sidebar-fact {
  background: hsl(var(--grema-primary) / 0.05);
  border-radius: var(--grema-radius);
  padding: 1rem;
}

/* Kontakt – mobile: kolejność (dane najpierw), poprawne wyświetlanie */
@media (max-width: 991px) {
  .grema-contact-row .grema-contact-form,
  .grema-contact-row .grema-contact-sidebar {
    height: auto !important;
  }

  .grema-contact-sidebar {
    padding: 1.25rem !important;
  }

  .grema-contact-sidebar .d-flex {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .grema-contact-sidebar .d-flex .rounded-3 {
    flex-shrink: 0;
  }

  .grema-contact-sidebar .d-flex > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
  }

  .grema-contact-sidebar-extra,
  .grema-contact-sidebar-fact {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Podstrony - Hero (body ma już padding-top dla navbara)
   -------------------------------------------------------------------------- */
.grema-hero-section-subpage {
  padding-top: 2.5rem;
  background: hsl(var(--grema-bg));
}

@media (max-width: 767px) {
  .grema-hero-section-subpage {
    padding-top: calc(2rem + env(safe-area-inset-top, 0px));
    overflow-x: hidden;
  }

  .grema-hero-section-subpage .grema-container {
    padding-left: 1rem;
    padding-right: 1rem;
    min-width: 0;
  }

  .grema-hero-section-subpage .grema-breadcrumbs {
    min-width: 0;
    overflow: visible;
    margin-bottom: 1.25rem;
    display: block !important;
  }

  .grema-hero-section-subpage .grema-breadcrumbs-list {
    gap: 0.2rem 0.4rem;
    display: flex !important;
  }

  .grema-hero-section-subpage .grema-breadcrumbs-item {
    max-width: 100%;
  }

  .grema-hero-section-subpage .grema-breadcrumbs-item a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

.grema-course-jump {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}
.grema-course-jump-select {
  border-radius: var(--grema-radius);
  border-color: hsl(var(--grema-border));
  font-weight: 500;
}
.grema-course-jump-select:focus {
  border-color: hsl(var(--grema-primary) / 0.5);
  box-shadow: 0 0 0 0.2rem hsl(var(--grema-primary) / 0.15);
}

/* --------------------------------------------------------------------------
   Breadcrumbs – widoczne na mobile i desktop
   -------------------------------------------------------------------------- */
.grema-breadcrumbs {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  padding: 0.25rem 0;
}

.grema-breadcrumbs-list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.grema-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.grema-breadcrumbs-item a {
  color: hsl(var(--grema-primary));
  text-decoration: none;
  transition: color 0.15s ease;
}

.grema-breadcrumbs-item a:hover {
  color: hsl(var(--grema-primary-light));
  text-decoration: underline;
}

.grema-breadcrumbs-current {
  color: hsl(var(--grema-fg));
  font-weight: 600;
}

.grema-breadcrumbs-sep {
  color: hsl(var(--grema-muted-fg));
  opacity: 0.7;
  user-select: none;
  padding: 0 0.35rem;
}

.grema-breadcrumbs-sep::before {
  content: '/';
}

/* --------------------------------------------------------------------------
   Treść artykułów
   -------------------------------------------------------------------------- */
.grema-content p {
  margin-bottom: 1rem;
}

.grema-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.grema-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.grema-content ul,
.grema-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.grema-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--grema-radius);
}

/* --------------------------------------------------------------------------
   Pojedynczy wpis blogowy – desktop i mobile
   -------------------------------------------------------------------------- */
.grema-single-post-article {
  padding-bottom: 0;
}

/* Hero – mobile */
.grema-single-post-hero {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.grema-single-post-hero-inner {
  max-width: 100%;
}

.grema-single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.grema-single-post-back {
  flex-shrink: 0;
}

.grema-single-post-date {
  flex-shrink: 0;
}

.grema-single-post-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.grema-single-post-thumb {
  margin: 0 0 1.5rem;
  border-radius: var(--grema-radius);
  overflow: hidden;
}

.grema-single-post-thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Treść – mobile */
.grema-single-post-content {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.grema-single-post-content-inner {
  max-width: 100%;
}

.grema-single-post-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--grema-border));
}

/* Hero + treść – desktop */
@media (min-width: 768px) {
  .grema-single-post-hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .grema-single-post-hero-inner,
  .grema-single-post-content-inner {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }

  .grema-single-post-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .grema-single-post-thumb {
    margin-bottom: 2rem;
    border-radius: 1rem;
  }

  .grema-single-post-content {
    padding-bottom: 3.5rem;
  }

  .grema-single-post-footer {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}

@media (min-width: 992px) {
  .grema-single-post-hero {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .grema-single-post-hero-inner,
  .grema-single-post-content-inner {
    max-width: 64rem;
  }

  .grema-single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
  }

  .grema-single-post-thumb {
    margin-bottom: 2.5rem;
  }

  .grema-single-post-content {
    padding-bottom: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Obrazki w blogu
   -------------------------------------------------------------------------- */
.object-fit-cover {
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Archiwum bloga – siatka wpisów
   -------------------------------------------------------------------------- */
.grema-blog-archive.section-padding {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
  .grema-blog-archive.section-padding {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (min-width: 992px) {
  .grema-blog-archive.section-padding {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

.grema-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.grema-blog-card {
  min-width: 0;
}

.grema-blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  border: 1px solid hsl(var(--grema-border));
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.grema-blog-card-link:hover {
  box-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
  border-color: hsl(var(--grema-primary) / 0.3);
}

.grema-blog-card-link:hover .grema-blog-card-title {
  color: hsl(var(--grema-primary));
}

.grema-blog-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: hsl(var(--grema-muted) / 0.5);
}

.grema-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grema-blog-card-link:hover .grema-blog-card-img {
  transform: scale(1.03);
}

.grema-blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--grema-muted-fg) / 0.6);
}

.grema-blog-card-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: hsl(var(--grema-accent));
  color: white;
  border-radius: 0.375rem;
}

.grema-blog-card-body {
  padding: 1rem 1.25rem;
}

.grema-blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: hsl(var(--grema-muted-fg));
  margin-bottom: 0.5rem;
}

.grema-blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.grema-blog-card-excerpt {
  font-size: 0.875rem;
  color: hsl(var(--grema-muted-fg));
  line-height: 1.5;
  margin: 0;
}

/* Siatka – 2 kolumny od 576px */
@media (min-width: 576px) {
  .grema-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* 3 kolumny od 768px */
@media (min-width: 768px) {
  .grema-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .grema-blog-card-body {
    padding: 1.25rem 1.5rem;
  }

  .grema-blog-card-title {
    font-size: 1.05rem;
  }
}

/* 4 kolumny od 1200px */
@media (min-width: 1200px) {
  .grema-blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Paginacja bloga */
.grema-blog-pagination {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--grema-border));
}

.grema-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.grema-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--grema-fg));
  background: white;
  border: 1px solid hsl(var(--grema-border));
  border-radius: 0.5rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.grema-blog-pagination .page-numbers:hover,
.grema-blog-pagination .page-numbers.current {
  color: white;
  background: hsl(var(--grema-primary));
  border-color: hsl(var(--grema-primary));
}

.grema-blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
}

.grema-blog-pagination .page-numbers.dots:hover {
  color: inherit;
  background: transparent;
}

.grema-blog-pagination .prev,
.grema-blog-pagination .next {
  font-size: 0.85rem;
}

/* CTA na stronie bloga – mniejsze paddingi */
.grema-blog-cta.section-padding {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
  .grema-blog-cta.section-padding {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* --------------------------------------------------------------------------
   Strona Szkolenia – karty kursów (styl bento: miękkie, zaokrąglone)
   -------------------------------------------------------------------------- */
.grema-course-card {
  border-radius: 1.25rem !important;
  border: 1px solid hsl(var(--grema-border) / 0.8);
  box-shadow: 0 2px 12px -4px rgb(0 0 0 / 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.grema-course-card:hover {
  box-shadow: 0 6px 24px -6px rgb(0 0 0 / 0.06);
  transform: translateY(-1px);
  border-color: hsl(var(--grema-border));
}

.grema-course-card .col-lg-5,
.grema-course-card .col-lg-3 {
  padding: 1rem 1.25rem !important;
}

@media (min-width: 992px) {
  .grema-course-card .col-lg-5,
  .grema-course-card .col-lg-3 {
    padding: 1.25rem 1.5rem !important;
  }
}

.grema-course-card .grema-course-bento-image,
.grema-course-card .grema-course-bento-placeholder {
  border-radius: 1.125rem 0 0 1.125rem;
}

@media (max-width: 991px) {
  .grema-course-card .grema-course-bento-image,
  .grema-course-card .grema-course-bento-placeholder {
    border-radius: 1.125rem 1.125rem 0 0;
  }
}

.grema-course-card .grema-course-bento-badge {
  border-radius: 0.625rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
}

/* Zdjęcie wyróżniające – styl bento */
.grema-course-bento-image {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.grema-course-bento-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grema-course-bento-image:hover img {
  transform: scale(1.03);
}

.grema-course-bento-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: hsl(var(--grema-accent) / 0.95);
  color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.grema-course-bento-placeholder {
  position: relative;
  min-height: 200px;
  background: linear-gradient(135deg, hsl(var(--grema-primary) / 0.08), hsl(var(--grema-primary) / 0.04));
  border-radius: 0;
}

.grema-course-bento-placeholder svg {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Sekcja "Dla kogo" – ikony wycentrowane, bez zniekształceń
   -------------------------------------------------------------------------- */
.grema-for-who-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.grema-for-who-icon-wrapper svg {
  flex-shrink: 0;
  display: block;
}

.grema-for-who-icon-primary {
  background: hsl(var(--grema-primary) / 0.1);
  color: hsl(var(--grema-primary));
}

.grema-for-who-icon-primary svg {
  stroke: currentColor;
}

.grema-for-who-icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

.grema-for-who-icon-orange svg {
  stroke: currentColor;
}

.grema-for-who-icon-green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.grema-for-who-icon-green svg {
  stroke: currentColor;
}

.grema-for-who-icon-purple {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
}

.grema-for-who-icon-purple svg {
  stroke: currentColor;
}

.grema-for-who-card:hover .grema-for-who-icon-wrapper {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Single szkolenie – Korzyści, Wymagania, Galeria
   -------------------------------------------------------------------------- */
.grema-szkolenie-benefits,
.grema-szkolenie-description,
.grema-szkolenie-requirements,
.grema-szkolenie-gallery {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .grema-szkolenie-benefits,
  .grema-szkolenie-description,
  .grema-szkolenie-requirements,
  .grema-szkolenie-gallery {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 992px) {
  .grema-szkolenie-benefits,
  .grema-szkolenie-description,
  .grema-szkolenie-requirements,
  .grema-szkolenie-gallery {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.grema-szkolenie-requirements {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
  .grema-szkolenie-requirements {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (min-width: 992px) {
  .grema-szkolenie-requirements {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

.grema-szkolenie-benefits {
  background: hsl(var(--grema-secondary) / 0.5);
}

/* Bento: lewa – 2 kolumny korzyści, prawa – film dopasowany wysokością do lewej */
.grema-benefits-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.grema-benefits-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(72px, auto);
  gap: 0.875rem 1rem;
  grid-auto-flow: dense;
}

.grema-benefits-video-slot {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.grema-benefits-video,
.grema-benefits-video-fill {
  flex: 1;
  min-height: 200px;
  position: relative;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.15);
}

.grema-benefits-video-placeholder {
  flex: 1;
  min-height: 200px;
  background: hsl(var(--grema-primary) / 0.08);
}

.grema-benefits-video-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grema-benefits-video-inner iframe,
.grema-benefits-video-inner .wp-block-embed__wrapper iframe,
.grema-benefits-video-inner figure iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.grema-benefits-video-inner .wp-block-embed__wrapper,
.grema-benefits-video-inner figure {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.grema-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--grema-bg));
  border: 1px solid hsl(var(--grema-border));
  border-radius: var(--grema-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 0;
}

.grema-benefit-item:hover {
  border-color: hsl(var(--grema-accent) / 0.3);
  box-shadow: 0 2px 8px -2px hsl(var(--grema-accent) / 0.15);
}

.grema-benefit-icon {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--grema-accent) / 0.12);
  color: hsl(var(--grema-accent));
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.grema-benefit-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.grema-benefit-text {
  flex: 1;
  line-height: 1.4;
  font-size: 0.9375rem;
  padding-top: 0.1rem;
}

.grema-benefits-empty-placeholder {
  grid-column: 1 / -1;
  padding: 2rem;
  background: hsl(var(--grema-bg));
  border: 1px dashed hsl(var(--grema-border));
  border-radius: var(--grema-radius);
  text-align: center;
}

@media (max-width: 991.98px) {
  .grema-benefits-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .grema-benefits-video-slot {
    order: -1;
  }

  .grema-benefits-video,
  .grema-benefits-video-fill {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .grema-benefits-video-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .grema-benefit-item {
    padding: 0.875rem 1rem;
  }

  .grema-benefit-text {
    font-size: 1rem;
  }
}

.grema-szkolenie-requirements {
  background: hsl(var(--grema-bg));
}

.grema-requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.grema-requirement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: hsl(var(--grema-secondary) / 0.6);
  border: 1px solid hsl(var(--grema-border));
  border-radius: var(--grema-radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.grema-requirement-item:hover {
  border-color: hsl(var(--grema-primary) / 0.3);
  box-shadow: 0 4px 12px -4px hsl(var(--grema-primary) / 0.15);
}

.grema-requirement-item svg {
  color: hsl(var(--grema-primary));
  flex-shrink: 0;
}

.grema-szkolenie-gallery {
  background: hsl(var(--grema-secondary) / 0.4);
}

/* Galeria zdjęć – grid z hover zoom */
.grema-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .grema-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }
}

.grema-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grema-gallery-item:hover {
  transform: scale(1.02);
}

.grema-gallery-item:focus-visible {
  outline: 2px solid hsl(var(--grema-primary));
  outline-offset: 2px;
}

.grema-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grema-gallery-item:hover .grema-gallery-img {
  transform: scale(1.08);
}

.grema-gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 0% / 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.grema-gallery-item:hover .grema-gallery-zoom {
  opacity: 1;
}

.grema-gallery-zoom svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Filmy – grid responsywny */
.grema-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grema-videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.grema-video-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px hsl(var(--grema-fg) / 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grema-video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px hsl(var(--grema-fg) / 0.2);
}

.grema-video-embed iframe {
  border-radius: 0.75rem;
}

/* Lightbox (native dialog) */
.grema-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.grema-lightbox::backdrop {
  background: hsl(0 0% 0% / 0.7);
  backdrop-filter: blur(4px);
}

.grema-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

.grema-lightbox-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.grema-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}

.grema-lightbox-caption {
  color: white;
  text-align: center;
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.grema-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: white;
  background: hsl(0 0% 0% / 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.grema-lightbox-close:hover {
  background: hsl(0 0% 0% / 0.7);
  transform: scale(1.05);
}

/* Landing hero – styl Netflix: pełnoekranowe tło, czytelna treść */
.grema-landing-hero-netflix {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  padding-top: var(--grema-navbar-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grema-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grema-hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.grema-hero-bg-embed {
  min-width: 100%;
  min-height: 100%;
  border: none;
  pointer-events: none;
}

.grema-hero-bg-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background:
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 0.55) 70%,
      hsl(210, 70%, 20%) 100%);
  z-index: 1;
}

.grema-hero-bg-fallback .grema-hero-bg-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(
    135deg,
    hsl(var(--grema-primary) / 0.95) 0%,
    hsl(var(--grema-secondary) / 0.9) 100%
  );
}

.grema-hero-bg-fallback {
  background: var(--grema-gradient-hero);
}

.grema-hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grema-hero-inner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grema-landing-hero-netflix .grema-hero-inner {
  max-width: 44rem;
}

.grema-hero-badge-netflix {
  color: hsl(var(--grema-accent));
  letter-spacing: 0.08em;
}

.grema-hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.grema-hero-subline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin: 0;
}

.grema-hero-cta-prompt {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

.grema-hero-cta-btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.grema-hero-secondary-btn {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.grema-hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
  color: white;
}

.grema-hero-trust {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Netflix – cena i punkty na ciemnym tle */
.grema-landing-hero-netflix .grema-hero-price-preview {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  justify-content: center;
}

.grema-landing-hero-netflix .grema-hero-price-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.grema-landing-hero-netflix .grema-hero-price-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.grema-landing-hero-netflix .grema-hero-price-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.grema-landing-hero-netflix .grema-hero-price-note {
  font-size: 0.85rem;
  color: hsl(var(--grema-accent));
  font-weight: 600;
}

.grema-landing-hero-netflix .grema-hero-points {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
}

.grema-landing-hero-netflix .grema-hero-points .grema-hero-point-icon {
  color: hsl(var(--grema-accent));
}

/* Fallback gdy brak tła – ciemny gradient */
.grema-landing-hero:not(.grema-landing-hero-netflix) {
  background: linear-gradient(180deg, hsl(var(--grema-bg)) 0%, hsl(var(--grema-secondary) / 0.4) 100%);
  position: relative;
}

.grema-hero-badge {
  letter-spacing: 0.05em;
}
.grema-hero-badge svg {
  flex-shrink: 0;
  color: hsl(var(--grema-accent));
}

.grema-hero-title {
  color: hsl(var(--grema-fg));
  line-height: 1.2;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .grema-hero-title { font-size: 2.5rem; }
}
@media (min-width: 992px) {
  .grema-hero-title { font-size: 2.75rem; }
}

.grema-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: hsl(var(--grema-muted-fg));
}

.grema-hero-points {
  color: hsl(var(--grema-fg));
  font-size: 0.95rem;
}
.grema-hero-point-icon {
  flex-shrink: 0;
  color: hsl(var(--grema-accent));
}

.grema-hero-price-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.grema-hero-price-label {
  font-size: 0.9rem;
  color: hsl(var(--grema-muted-fg));
}
.grema-hero-price-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: hsl(var(--grema-fg));
}
.grema-hero-price-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--grema-muted-fg));
}
.grema-hero-price-note {
  font-size: 0.85rem;
  color: hsl(var(--grema-accent));
  font-weight: 600;
  margin-left: 0.25rem;
}

.grema-hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s;
}
.grema-hero-secondary-link:hover {
  color: hsl(var(--grema-primary)) !important;
}
.grema-hero-secondary-link svg {
  flex-shrink: 0;
}

.grema-hero-trust {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.grema-hero-visual {
  position: relative;
}

/* Hero media – zdjęcie / wideo – organiczny kształt, wtapianie */
.grema-hero-media-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  border-radius: 1.5rem 1.5rem 2rem 1.5rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.06),
    0 12px 24px -8px rgb(0 0 0 / 0.12),
    0 0 0 1px hsl(var(--grema-border) / 0.5);
  background: hsl(var(--grema-muted) / 0.5);
}

.grema-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.grema-hero-video,
.grema-hero-embed {
  min-width: 100%;
  min-height: 100%;
}

.grema-hero-embed {
  border: none;
  pointer-events: none;
}

/* Hero placeholder – gdy brak zdjęcia kursu */
.grema-hero-placeholder {
  position: relative;
  min-height: 320px;
  border-radius: 1.5rem 1.5rem 2rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--grema-primary) / 0.08) 0%, hsl(var(--grema-muted)) 50%, hsl(var(--grema-secondary)) 100%);
  border: 1px solid hsl(var(--grema-border) / 0.6);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.04),
    0 0 0 1px hsl(var(--grema-border) / 0.3);
}
.grema-hero-placeholder-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, hsl(var(--grema-accent) / 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, hsl(var(--grema-primary) / 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.grema-hero-placeholder-content {
  min-height: 320px;
}
.grema-hero-placeholder-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--grema-accent) / 0.12);
  border-radius: 1rem;
}
.grema-hero-placeholder-icon svg {
  width: 2.5rem !important;
  height: 2.5rem !important;
  color: hsl(var(--grema-accent)) !important;
}
.grema-hero-placeholder-title {
  font-size: 1.1rem;
  color: hsl(var(--grema-fg));
  margin: 0;
}
.grema-hero-placeholder-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  background: hsl(var(--grema-primary) / 0.1);
  color: hsl(var(--grema-primary));
  border-radius: 0.5rem;
}

/* Wynik płatności – /dziekujemy/ i /odrzucone-zamowienie/ */
.grema-checkout-result-page {
  background: linear-gradient(180deg, hsl(var(--grema-industrial) / 0.04) 0%, #fff 40%);
}
.grema-checkout-result-card {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.grema-checkout-result-icon {
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grema-checkout-result-icon.is-success {
  background: hsl(142 60% 45% / 0.12);
  color: hsl(142 55% 38%);
}
.grema-checkout-result-icon.is-failed {
  background: hsl(0 72% 55% / 0.1);
  color: hsl(0 72% 48%);
}
.grema-checkout-result-meta {
  background: hsl(var(--grema-industrial) / 0.04);
  border: 1px solid hsl(var(--grema-fg) / 0.08);
}
.grema-checkout-result-order {
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--grema-fg) / 0.08);
}
.grema-checkout-result-order__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--grema-fg) / 0.55);
  margin-bottom: 0.35rem;
}
.grema-checkout-result-order__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
  color: hsl(var(--grema-primary));
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px dashed hsl(var(--grema-primary) / 0.35);
  border-radius: 0.75rem;
}
.grema-checkout-result-details__label {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(var(--grema-fg) / 0.55);
  margin-bottom: 0.25rem;
}
.grema-checkout-result-details__value {
  font-weight: 600;
  color: hsl(var(--grema-fg));
}
