/* ==========================================================================
   OSP Kłaj — style witryny (Hello Elementor + darmowy Elementor)
   Tylko to, czego Elementor nie ustawi natywnie. Kolory/typografia widgetów
   są w Elementorze. Nadpisania klas: wp-admin → Dodatki od Claude.
   ========================================================================== */
:root {
  --osp-red: #C8102E; --osp-red-700: #A40D24; --osp-red-800: #7E0A1B; --osp-red-400: #E55B5E; --osp-red-50: #FEF2F2;
  --osp-g900: #14161B; --osp-g800: #23262D; --osp-g700: #353A43; --osp-g500: #6B7280; --osp-g400: #99A1AD;
  --osp-g300: #C3C9D2; --osp-g200: #DDE1E7; --osp-g100: #EDEFF2; --osp-g50: #F6F7F9;
  --osp-amber-50: #FFF7EB; --osp-amber-500: #F0A019; --osp-amber-700: #A86405;
  --osp-fd: 'Barlow Condensed', 'Arial Narrow', sans-serif; --osp-fb: 'Barlow', system-ui, sans-serif;
  --osp-fe: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  --osp-shadow-sm: 0 1px 3px rgba(20,22,27,.08), 0 1px 2px rgba(20,22,27,.06);
  --osp-shadow-md: 0 4px 12px rgba(20,22,27,.08), 0 2px 4px rgba(20,22,27,.05);
  --osp-shadow-lg: 0 12px 28px rgba(20,22,27,.12), 0 4px 10px rgba(20,22,27,.06);
  --osp-shadow-red: 0 10px 24px rgba(200,16,46,.26);
  --osp-ease: cubic-bezier(.22,1,.36,1); --osp-dur: 220ms;
  --osp-hazard: repeating-linear-gradient(-45deg, #C8102E 0 18px, #14161B 18px 36px);
  --osp-topbar-h: 44px;
}

/* ---------- baza ---------- */
body.osp-site { font-family: var(--osp-fb); font-size: 17px; line-height: 1.65; color: var(--osp-g700); background: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.osp-site a { color: var(--osp-red-700); }
body.osp-site a:hover { color: var(--osp-red-800); }
body.osp-site ::selection { background: var(--osp-red); color: #fff; }
body.osp-site :focus-visible { outline: 3px solid rgba(200,16,46,.55); outline-offset: 2px; border-radius: 3px; }
body.osp-site .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body.osp-site .elementor-heading-title { text-wrap-style: balance; }
body.osp-site .skip-link:focus { z-index: 1000; }

/* ---------- nagłówek ---------- */
.osp-site-header { position: relative; z-index: 100; }
.osp-site-header.is-sticky { position: sticky; top: calc(var(--osp-topbar-h) * -1); }
body.admin-bar .osp-site-header.is-sticky { top: calc(32px - var(--osp-topbar-h)); }
@media (max-width: 782px) { body.admin-bar .osp-site-header.is-sticky { top: calc(46px - var(--osp-topbar-h)); } }
@media (max-width: 600px) { body.admin-bar .osp-site-header.is-sticky { top: calc(var(--osp-topbar-h) * -1); } }
.osp-header-main { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow var(--osp-dur); }
html.osp-scrolled .osp-header-main { box-shadow: var(--osp-shadow-sm); }
.osp-topbar a { text-decoration: none; }
.osp-logo { text-decoration: none !important; }
.osp-logo img, .osp-site-footer .e-con img { display: block; height: auto; }
.osp-logo-img img { filter: drop-shadow(0 2px 4px rgba(20,22,27,.18)); }
.osp-logo .elementor-heading-title { white-space: nowrap; }

/* menu (Essential Addons — Simple Menu) */
.osp-menu .eael-simple-menu-container { background: transparent !important; box-shadow: none !important; min-height: 0 !important; }
.osp-menu .eael-simple-menu-container .eael-simple-menu { justify-content: center; }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li > a {
  position: relative; font-family: var(--osp-fe) !important; font-weight: 600 !important; font-size: 15px !important;
  letter-spacing: .03em !important; text-transform: uppercase !important; line-height: 1.2 !important;
  color: var(--osp-g900) !important; background: transparent !important; padding: 10px 14px !important;
  border-radius: 5px; transition: color var(--osp-dur), background var(--osp-dur); text-decoration: none !important; }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--osp-red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--osp-dur) var(--osp-ease); }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li > a:hover { background: var(--osp-g50) !important; }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li.current-menu-item > a,
.osp-menu .eael-simple-menu-container .eael-simple-menu > li.osp-active > a { color: var(--osp-red) !important; }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li.current-menu-item > a::after,
.osp-menu .eael-simple-menu-container .eael-simple-menu > li.osp-active > a::after { transform: scaleX(1); }
.osp-menu .eael-simple-menu-container .eael-simple-menu > li > a:hover { background: var(--osp-g50) !important; }
.osp-menu .eael-simple-menu-container .eael-simple-menu-toggle {
  width: 48px !important; height: 48px !important; padding: 0 !important; display: none; align-items: center; justify-content: center;
  background: #fff !important; color: var(--osp-g900) !important; border: 1px solid var(--osp-g300) !important; border-radius: 8px !important;
  position: relative !important; top: auto !important; right: auto !important; transform: none !important; margin-left: auto; }
.osp-menu .eael-simple-menu-container .eael-simple-menu-toggle i,
.osp-menu .eael-simple-menu-container .eael-simple-menu-toggle svg { color: var(--osp-g900) !important; fill: var(--osp-g900) !important; width: 20px !important; height: 20px !important; font-size: 20px; }
.osp-menu .eael-simple-menu-container .eael-simple-menu-toggle-text { display: none !important; }
@media (max-width: 1024px) {
  .osp-menu .eael-simple-menu-container { display: flex; justify-content: flex-end; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu-toggle { display: inline-flex !important; }
  .osp-menu .eael-simple-menu-container .eael-nav-menu-wrapper { top: 100%; margin-top: 15px; z-index: 200; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive {
    background: #fff !important; padding: 12px !important; box-shadow: 0 24px 56px rgba(20,22,27,.18) !important;
    border-top: 1px solid var(--osp-g200); }
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive > li { width: 100%; border: 0 !important; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive > li > a {
    display: flex !important; justify-content: space-between; align-items: center; width: 100%;
    font-family: var(--osp-fd) !important; font-weight: 700 !important; font-size: 22px !important; letter-spacing: 0 !important;
    padding: 16px !important; border-radius: 8px; border: 0 !important; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive > li > a::after {
    content: "›"; position: static; height: auto; width: auto; background: none; transform: none; color: var(--osp-g400);
    font-family: var(--osp-fb); font-size: 26px; line-height: 1; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive > li.current-menu-item > a,
  .osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive > li.osp-active > a { background: var(--osp-red-50) !important; }
  .osp-header-main > .e-con-inner { position: relative; }
}

/* ---------- elementy wspólne ---------- */
.osp-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; }
.osp-eyebrow .elementor-heading-title::before { content: ""; width: 28px; height: 3px; background: var(--osp-red); display: inline-block; flex: none; }
.osp-sh .elementor-widget-heading.osp-eyebrow { margin-bottom: 0; }
.osp-hazard, .osp-hazard-bar { background: var(--osp-hazard) !important; min-height: 6px; height: 6px; padding: 0 !important; flex: none; }
.osp-btn .elementor-button { line-height: 1; transition: transform 140ms var(--osp-ease), background-color var(--osp-dur) var(--osp-ease), border-color var(--osp-dur), box-shadow var(--osp-dur); }
.osp-btn .elementor-button:active { transform: translateY(1px); }
.osp-btn .elementor-button .elementor-button-icon { font-size: 1.05em; }
.osp-btn .elementor-button .elementor-button-icon svg { width: 1em; height: 1em; }
.osp-pill .elementor-icon-list-item { line-height: 1.2; }

/* nagłówek podstron */
.osp-page-header .osp-crumbs a, .osp-crumbs a { color: inherit !important; text-decoration: none; transition: color var(--osp-dur); }
.osp-crumbs a:hover { color: #fff !important; }
.osp-crumbs__current { color: var(--osp-red-400); }
.osp-crumbs__sep { color: rgba(255,255,255,.4); margin: 0 4px; }
.osp-crumbs p { margin: 0; }

/* hero */
.osp-hero-stat { width: auto !important; --width: auto; flex: none !important; }
.osp-hero .osp-stat .elementor-counter-number-wrapper { justify-content: flex-start; }
.osp-stat .elementor-counter { align-items: flex-start; }
.osp-stat .elementor-counter-number-wrapper { line-height: .95; }

/* alert */
.osp-alert > .elementor-widget-icon { flex: none; }
.osp-alert .elementor-icon { display: flex; }

/* O jednostce */
.osp-about-media { position: relative; overflow: visible !important; }
.osp-badge-year { width: auto !important; --width: auto; max-width: none; }
.osp-emblem-shadow img { filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); max-height: 330px; width: auto !important; }
.osp-point .elementor-icon { border-radius: 8px; }
.osp-img-shadow img { box-shadow: var(--osp-shadow-lg); display: block; }

/* statystyki */
.osp-stat-card .osp-stat, .osp-stat-card .elementor-widget-counter { width: 100%; }

/* oś czasu */
.osp-tl-item > .e-con:first-child { flex: none; }
.osp-tl-body { position: relative; }
.osp-tl-body::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; box-sizing: border-box;
  border-radius: 50%; background: var(--osp-red); border: 3px solid var(--osp-g50); }

/* kontakt */
.osp-info-row .elementor-icon-box-wrapper { align-items: center; }
.osp-info-row .elementor-icon { border-radius: 5px; }
.osp-info-row .elementor-icon-box-description { margin: 0; }
.osp-info-row a { color: inherit !important; text-decoration: none; }
.osp-map iframe { border-radius: 12px; display: block; }
.osp-map .elementor-custom-embed { line-height: 0; }

/* formularz CF7 */
.osp-cf7 .wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.osp-cf7 .wpcf7 form > p { margin: 0; }
.osp-cf7 .osp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.osp-cf7 .osp-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.osp-cf7 .osp-label { font-family: var(--osp-fe); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--osp-g900); }
.osp-cf7 .osp-label em { color: var(--osp-red); font-style: normal; }
.osp-cf7 .wpcf7-form-control-wrap { display: block; }
.osp-cf7 input[type=text], .osp-cf7 input[type=email], .osp-cf7 input[type=tel], .osp-cf7 textarea {
  width: 100%; height: 52px; padding: 0 16px; font-family: var(--osp-fb); font-size: 16px; color: var(--osp-g900);
  background: #fff; border: 1px solid var(--osp-g300); border-radius: 8px; outline: none; box-shadow: none;
  transition: border-color var(--osp-dur) var(--osp-ease), box-shadow var(--osp-dur) var(--osp-ease); }
.osp-cf7 textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.osp-cf7 input:focus, .osp-cf7 textarea:focus { border-color: var(--osp-red); box-shadow: 0 0 0 3px rgba(200,16,46,.35); }
.osp-cf7 ::placeholder { color: var(--osp-g400); }
.osp-cf7 .wpcf7-submit, .osp-cf7 .osp-submit {
  display: flex; width: 100%; align-items: center; justify-content: center; height: 56px; padding: 0 30px; cursor: pointer;
  font-family: var(--osp-fe); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: #fff; background: var(--osp-red); border: 1px solid transparent; border-radius: 8px; box-shadow: var(--osp-shadow-red);
  transition: background var(--osp-dur), transform 140ms; }
.osp-cf7 .wpcf7-submit:hover { background: var(--osp-red-700); }
.osp-cf7 .wpcf7-submit:active { transform: translateY(1px); background: var(--osp-red-800); }
.osp-cf7 .wpcf7-spinner { margin: 8px auto 0; display: block; }
.osp-cf7 .osp-form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--osp-g500); }
.osp-cf7 .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; color: var(--osp-red-700); }
.osp-cf7 .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; border-radius: 8px; font-size: 15px; }
@media (max-width: 767px) { .osp-cf7 .osp-form-grid { grid-template-columns: 1fr; } }

/* ---------- galeria (Essential Addons — Filterable Gallery) ---------- */
.osp-gallery .eael-filter-gallery-control { margin-bottom: 40px; }
.osp-gallery .eael-filter-gallery-control ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; padding: 0; margin: 0; }
.osp-gallery .eael-filter-gallery-control ul li.control {
  margin: 0 !important; padding: 10px 18px !important; border-radius: 999px !important; border: 1px solid var(--osp-g300) !important;
  background: #fff !important; color: var(--osp-g700) !important; font-family: var(--osp-fe) !important; font-weight: 600 !important;
  font-size: 14px !important; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2 !important; cursor: pointer;
  transition: all var(--osp-dur); box-shadow: none !important; }
.osp-gallery .eael-filter-gallery-control ul li.control:hover { border-color: var(--osp-g900) !important; }
.osp-gallery .eael-filter-gallery-control ul li.control.active {
  background: var(--osp-red) !important; border-color: var(--osp-red) !important; color: #fff !important; }
.osp-gallery .eael-filterable-gallery-item-wrap { padding: 8px !important; }
.osp-gallery .eael-filter-gallery-container { margin: -8px; }
.osp-gallery .eael-gallery-grid-item { border-radius: 8px; overflow: hidden; box-shadow: var(--osp-shadow-sm); position: relative; background: var(--osp-g100); }
.osp-gallery .gallery-item-thumbnail-wrap { aspect-ratio: 1 / 1; height: auto !important; overflow: hidden; }
.osp-gallery .gallery-item-thumbnail-wrap img { width: 100%; height: 100% !important; object-fit: cover; display: block;
  transition: transform 380ms var(--osp-ease) !important; }
.osp-gallery .eael-gallery-grid-item:hover .gallery-item-thumbnail-wrap img { transform: scale(1.07); }
.osp-gallery .gallery-item-caption-wrap.caption-style-hoverer { background: transparent !important; }
.osp-gallery .gallery-item-hoverer-bg {
  background: linear-gradient(180deg, rgba(10,11,13,.15) 0%, rgba(10,11,13,.55) 55%, rgba(10,11,13,.86) 100%) !important; opacity: 1 !important; }
.osp-gallery .gallery-item-caption-over { display: flex !important; flex-direction: column; justify-content: flex-end !important;
  align-items: flex-start !important; text-align: left !important; padding: 14px !important; height: 100%; }
.osp-gallery .fg-item-title { color: #fff !important; font-family: var(--osp-fe) !important; font-weight: 600 !important;
  font-size: 13.5px !important; letter-spacing: .04em; line-height: 1.3 !important; margin: 0 !important; text-align: left !important; }
.osp-gallery .fg-item-content, .osp-gallery .gallery-item-buttons { display: none !important; }

/* ---------- karty aktualności (shortcode [osp_aktualnosci]) ---------- */
.osp-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
@media (max-width: 400px) { .osp-news-grid { grid-template-columns: 1fr; } }
.osp-news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--osp-g200); border-radius: 12px; overflow: hidden;
  box-shadow: var(--osp-shadow-sm); position: relative; transition: box-shadow var(--osp-dur) var(--osp-ease), transform var(--osp-dur) var(--osp-ease); }
.osp-news-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--osp-red); z-index: 2;
  transform: scaleX(0); transform-origin: left; transition: transform var(--osp-dur) var(--osp-ease); }
.osp-news-card:hover { box-shadow: var(--osp-shadow-lg); transform: translateY(-4px); }
.osp-news-card:hover::before { transform: scaleX(1); }
.osp-news-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--osp-g100); }
.osp-news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 380ms var(--osp-ease); }
.osp-news-card:hover .osp-news-card__media img { transform: scale(1.05); }
.osp-news-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #23262D 0%, #14161B 75%); }
.osp-news-card__ph img { width: auto !important; height: 58% !important; object-fit: contain; opacity: .9; }
.osp-news-card__date { position: absolute; top: 12px; left: 12px; background: var(--osp-red); color: #fff; border-radius: 5px; padding: 6px 10px 5px;
  text-align: center; line-height: 1; box-shadow: var(--osp-shadow-md); font-family: var(--osp-fd); display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.osp-news-card__day { font-size: 22px; font-weight: 700; }
.osp-news-card__mon { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.osp-news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.osp-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--osp-fe); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 6px 11px; border-radius: 999px; background: var(--osp-red); color: #fff; white-space: nowrap; }
.osp-news-card__title { margin: 0; font-family: var(--osp-fd); font-weight: 700; font-size: 22px; line-height: 1.08; text-transform: uppercase; color: var(--osp-g900); }
.osp-news-card__title a { color: inherit !important; text-decoration: none; }
.osp-news-card__title a:hover { color: var(--osp-red-700) !important; }
.osp-news-card__excerpt { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--osp-g700); flex: 1; }
.osp-news-card__more { margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-family: var(--osp-fe);
  font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--osp-red) !important; text-decoration: none; }
.osp-news-card__more svg { transition: transform var(--osp-dur) var(--osp-ease); }
.osp-news-card__more:hover svg { transform: translateX(3px); }
.osp-empty { color: var(--osp-g500); }

.osp-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.osp-pagination .page-numbers { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  border: 1px solid var(--osp-g300); background: #fff; color: var(--osp-g900) !important; font-family: var(--osp-fd); font-weight: 700; font-size: 18px;
  text-decoration: none; transition: background var(--osp-dur), color var(--osp-dur), border-color var(--osp-dur); }
.osp-pagination a.page-numbers:hover { border-color: var(--osp-g900); }
.osp-pagination .page-numbers.current { background: var(--osp-red); border-color: var(--osp-red); color: #fff !important; }
.osp-pagination .page-numbers.dots { border: 0; background: none; width: auto; }

/* ---------- widoki wpisu / archiwum (szablony PHP) ---------- */
.osp-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); box-sizing: border-box; }
.osp-container--narrow { max-width: 856px; }
.osp-section { padding: clamp(56px, 7vw, 100px) 0; background: #fff; }
.osp-section--muted { background: var(--osp-g50); }
.osp-ph { position: relative; background-color: var(--osp-g900); overflow: hidden; }
.osp-ph::before { content: ""; position: absolute; inset: 0; background: var(--osp-ph-bg) center / cover no-repeat; opacity: .5; }
.osp-ph__inner { position: relative; padding-top: 54px; padding-bottom: 48px; }
.osp-ph__crumbs { font-family: var(--osp-fe); font-weight: 500; font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.osp-ph__title { margin: 0; color: #fff; font-family: var(--osp-fd); font-weight: 700; font-size: clamp(34px, 5.4vw, 60px); line-height: 1;
  letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; max-width: 22ch; }
.osp-ph .osp-hazard-bar { position: relative; }
.osp-eyebrow-html { font-family: var(--osp-fe); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--osp-red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.osp-eyebrow-html::before { content: ""; width: 28px; height: 3px; background: var(--osp-red); display: inline-block; }
.osp-eyebrow-html--light { color: var(--osp-red-400); }
.osp-sh-html { margin-bottom: 32px; }
.osp-sh-html h2 { margin: 0; font-family: var(--osp-fd); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -.01em; color: var(--osp-g900); }
.osp-article { max-width: 820px; margin: 0 auto; }
.osp-article__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.osp-meta-item { display: inline-flex; align-items: center; gap: 7px; color: var(--osp-g500); font-size: 15px; }
.osp-article__image { margin: 0 0 32px; }
.osp-article__image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: var(--osp-shadow-md); display: block; }
.osp-article__lead { font-size: 19px; line-height: 1.5; color: var(--osp-g900); font-weight: 500; margin: 0 0 24px; }
.osp-prose { font-size: 17px; line-height: 1.7; color: var(--osp-g700); }
.osp-prose > * + * { margin-top: 18px; }
.osp-prose p { margin: 0; }
.osp-prose h2, .osp-prose h3, .osp-prose h4 { font-family: var(--osp-fd); font-weight: 700; text-transform: uppercase; color: var(--osp-g900); line-height: 1.1; margin: 32px 0 0; }
.osp-prose h2 { font-size: 32px; } .osp-prose h3 { font-size: 26px; } .osp-prose h4 { font-size: 21px; }
.osp-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.osp-prose .alignleft { float: left; margin: 6px 24px 12px 0; } .osp-prose .alignright { float: right; margin: 6px 0 12px 24px; }
.osp-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.osp-prose::after { content: ""; display: table; clear: both; }
.osp-prose blockquote { margin: 8px 0; padding: 18px 24px; border-left: 4px solid var(--osp-red); background: var(--osp-red-50); border-radius: 5px;
  font-size: 19px; font-style: italic; color: var(--osp-g900); }
.osp-prose ul, .osp-prose ol { padding-left: 1.3em; }
.osp-prose a { text-underline-offset: 3px; }
.osp-prose .wp-block-gallery, .osp-prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.osp-prose .gallery br { display: none; }
.osp-prose .gallery-item { margin: 0 !important; width: auto !important; }
.osp-prose .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; }
.osp-prose iframe { max-width: 100%; }
.osp-article__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--osp-g200); }
.osp-share { display: flex; gap: 10px; align-items: center; }
.osp-share__label { font-size: 14px; color: var(--osp-g500); font-family: var(--osp-fe); letter-spacing: .06em; text-transform: uppercase; }
.osp-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff;
  color: var(--osp-g900) !important; border: 1px solid var(--osp-g300); cursor: pointer; padding: 0; transition: background var(--osp-dur); }
.osp-iconbtn:hover { background: var(--osp-g50); }
.osp-iconbtn.is-copied { border-color: var(--osp-red); color: var(--osp-red) !important; }
.osp-btn-html { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; font-family: var(--osp-fe);
  font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; border-radius: 8px; text-decoration: none;
  background: var(--osp-red); color: #fff !important; border: 1px solid transparent; box-shadow: var(--osp-shadow-red); transition: background var(--osp-dur), transform 140ms; }
.osp-btn-html:hover { background: var(--osp-red-700); }
.osp-btn-html:active { transform: translateY(1px); }
.osp-btn-html--ghost { background: transparent; color: var(--osp-red) !important; box-shadow: none; }
.osp-btn-html--ghost:hover { background: var(--osp-red-50); }
.osp-btn-html--secondary { background: #fff; color: var(--osp-g900) !important; border-color: var(--osp-g300); box-shadow: 0 1px 2px rgba(20,22,27,.06); }
.osp-btn-html--secondary:hover { background: #fff; border-color: var(--osp-g900); }

/* ---------- stopka ---------- */
.osp-footer a { text-decoration: none; }
.osp-footer-links .elementor-icon-list-icon { display: none; }

/* ---------- przenoszone z motywu Sydney (klasy ze starszych stron) ---------- */
.red_small_heading { position: relative; display: inline-block; margin: 0 0 22px; padding-left: 35px; font-family: var(--osp-fe); font-size: 15px;
  font-weight: 600; line-height: 1.2; letter-spacing: .24em; text-transform: uppercase; }
.red_small_heading::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 3px; background-color: var(--osp-red) !important; transform: translateY(-50%); }
.divider_container { width: 100% !important; height: 6px !important; min-height: 6px !important; padding: 0 !important; margin: 0 !important; background: var(--osp-hazard) !important; }

/* ---------- dostępność / ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  body.osp-site *, body.osp-site *::before, body.osp-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- poprawki po weryfikacji ---------- */
.osp-menu .eael-simple-menu-toggle > * { pointer-events: none; }
.osp-menu .eael-simple-menu-container .eael-simple-menu.eael-simple-menu-responsive { top: 0 !important; }
.osp-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .osp-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 680px) { .osp-news-grid { grid-template-columns: 1fr; } }
.osp-gallery .eael-filter-gallery-wrapper { background: transparent !important; }
.osp-gallery .eael-gallery-grid-item { margin: 0 !important; }
.osp-gallery .gallery-item-caption-wrap { padding: 0 !important; }
.osp-topbar .elementor-icon-list-text { white-space: nowrap; }
@media (max-width: 767px) { .osp-topbar .elementor-icon-list-text { font-size: 13px !important; } .osp-topbar .elementor-icon-list-icon svg { width: 13px; } }
.osp-gallery .eael-filter-gallery-control { text-align: left !important; }
.osp-gallery .eael-filter-gallery-control ul { justify-content: flex-start !important; }
.osp-cf7 .wpcf7 input.wpcf7-submit { height: 56px !important; padding: 0 30px !important; width: 100% !important; background: var(--osp-red) !important;
  color: #fff !important; border: 1px solid transparent !important; border-radius: 8px !important; font-family: var(--osp-fe) !important;
  font-weight: 600 !important; font-size: 17px !important; letter-spacing: .06em !important; text-transform: uppercase !important; line-height: 1 !important; }
.osp-cf7 .wpcf7 input.wpcf7-submit:hover { background: var(--osp-red-700) !important; }
@media (max-width: 767px) {
  .osp-hero .e-con:has(> .osp-hero-stat) { flex-wrap: nowrap !important; --flex-wrap: nowrap; gap: 14px !important; }
  .osp-hero .osp-hero-stat:not(:first-child) { padding-left: 14px !important; }
  .osp-hero .osp-stat .elementor-counter-number-wrapper { font-size: 36px !important; }
  .osp-hero .osp-stat .elementor-counter-title { font-size: 11px !important; letter-spacing: .06em !important; }
}
/* ---------- galeria wg designu: kafelek 1:1, zaokrąglenie 8px, cień, podpis na gradiencie po najechaniu ---------- */
.osp-gallery .eael-filterable-gallery-item-wrap .eael-gallery-grid-item { border-radius: 8px !important; overflow: hidden !important;
  box-shadow: var(--osp-shadow-sm) !important; background: var(--osp-g100) !important; transform: translateZ(0); }
.osp-gallery .eael-gallery-grid-item a { display: block; color: #fff !important; text-decoration: none; }
.osp-gallery .gallery-item-thumbnail-wrap, .osp-gallery .gallery-item-thumbnail-wrap img { border-radius: 0 !important; }
.osp-gallery .gallery-item-caption-wrap.caption-style-hoverer { padding: 0 !important; align-items: flex-end !important; border-radius: 8px;
  transition: opacity var(--osp-dur) var(--osp-ease), visibility var(--osp-dur) !important; transform: none !important; }
.osp-gallery .gallery-item-hoverer-bg { position: absolute; inset: 0; border-radius: 8px; }
.osp-gallery .gallery-item-caption-over { position: relative; z-index: 1; width: 100%; height: auto !important; padding: 14px !important; }
.osp-gallery .gallery-item-caption-over .fg-item-title { transform: none !important; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
/* telefony i ekrany dotykowe: podpis widoczny cały czas */
@media (hover: none), (max-width: 767px) {
  .osp-gallery .gallery-item-caption-wrap.caption-style-hoverer { opacity: 1 !important; visibility: visible !important; }
  .osp-gallery .gallery-item-hoverer-bg { background: linear-gradient(180deg, rgba(10,11,13,0) 45%, rgba(10,11,13,.82) 100%) !important; }
  .osp-gallery .gallery-item-caption-over { padding: 10px 12px !important; }
  .osp-gallery .fg-item-title { font-size: 12.5px !important; }
}
/* ---------- menu: układ niezależny od plików CSS wtyczki EA (gdy ładują się z opóźnieniem lub są regenerowane) ---------- */
.osp-menu .eael-simple-menu-container ul.eael-simple-menu { list-style: none !important; margin: 0 !important; padding: 0; align-items: center; }
.osp-menu .eael-simple-menu-container ul.eael-simple-menu > li { list-style: none !important; margin: 0 !important; position: relative; float: none !important; }
.osp-menu .eael-simple-menu-container ul.eael-simple-menu > li::marker { content: none; }
@media (min-width: 1025px) {
  .osp-menu .eael-simple-menu-container .eael-nav-menu-wrapper { position: static !important; width: auto !important; left: auto !important; }
  .osp-menu .eael-simple-menu-container ul.eael-simple-menu { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    justify-content: center; gap: 4px; position: static !important; height: auto !important; overflow: visible !important; box-shadow: none !important;
    background: transparent !important; border: 0 !important; }
  .osp-menu .eael-simple-menu-container ul.eael-simple-menu > li > a { display: block !important; white-space: nowrap; }
  .osp-menu .eael-simple-menu-container .eael-simple-menu-toggle { display: none !important; }
}
@media (max-width: 1024px) {
  .osp-menu .eael-simple-menu-container ul.eael-simple-menu:not([style*="block"]) { display: none !important; }
  .osp-menu .eael-simple-menu-container ul.eael-simple-menu { flex-direction: column; width: 100%; }
}
/* ---------- menu mobilne: panel wysuwany z prawej ---------- */
@media (max-width: 1024px) { .osp-menu .eael-simple-menu-container ul.eael-simple-menu { display: none !important; } }
.osp-mnav { position: fixed; inset: 0; z-index: 9999; visibility: hidden; pointer-events: none; }
.osp-mnav.is-open { visibility: visible; pointer-events: auto; }
.osp-mnav__overlay { position: absolute; inset: 0; background: rgba(10,11,13,.5); opacity: 0; transition: opacity var(--osp-dur) var(--osp-ease); }
.osp-mnav.is-open .osp-mnav__overlay { opacity: 1; }
.osp-mnav__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 85vw); background: #fff; box-shadow: 0 24px 56px rgba(20,22,27,.18);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 320ms var(--osp-ease); overflow-y: auto; }
.osp-mnav.is-open .osp-mnav__panel { transform: none; }
.osp-mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--osp-g200); }
.osp-mnav__logo { display: inline-flex; line-height: 0; }
.osp-mnav__logo img { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(20,22,27,.18)); }
.osp-mnav__close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: #fff; color: var(--osp-g900); border: 1px solid var(--osp-g300); border-radius: 8px; transition: background var(--osp-dur); }
.osp-mnav__close:hover, .osp-mnav__close:focus { background: var(--osp-g50); color: var(--osp-g900); }
.osp-mnav__nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
body.osp-site .osp-mnav__link { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 8px; text-decoration: none;
  font-family: var(--osp-fd); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--osp-g900);
  transition: background var(--osp-dur), color var(--osp-dur); }
.osp-mnav__link svg { color: var(--osp-g400); flex: none; }
body.osp-site .osp-mnav__link:hover { background: var(--osp-g50); color: var(--osp-g900); }
body.osp-site .osp-mnav__link.is-active { color: var(--osp-red); background: var(--osp-red-50); }
html.osp-mnav-open, html.osp-mnav-open body { overflow: hidden; }
.osp-alert a { color: inherit !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.osp-info-row, .osp-info-row * { cursor: pointer; }
.osp-info-row:has(a) .elementor-widget-container { transition: border-color var(--osp-dur), box-shadow var(--osp-dur); }
.osp-info-row[data-eael-wrapper-link]:hover { box-shadow: var(--osp-shadow-md); }
