.page-hero,
.inner-hero {
  position: relative;
  padding: calc(var(--site-header-height) + 90px) 0 clamp(70px, 9vw, 130px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(var(--site-primary-rgb), 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 50%,
      rgba(var(--site-secondary-rgb), 0.13),
      transparent 35%
    ),
    var(--site-bg-soft);
}

.page-hero::before,
.inner-hero::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 500px;
  height: 500px;
  content: "";
  border: 1px solid rgba(var(--site-primary-rgb), 0.08);
  border-radius: var(--site-radius-circle);
  pointer-events: none;
}

.page-hero::after,
.inner-hero::after {
  position: absolute;
  bottom: -260px;
  left: -170px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(var(--site-secondary-rgb), 0.1);
  border-radius: var(--site-radius-circle);
  pointer-events: none;
}

.page-hero__inner,
.inner-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumbs,
.inner-hero__breadcrumbs {
  margin-bottom: 28px;
}

.page-hero__eyebrow,
.inner-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 10px;
  color: var(--site-primary);
  font-family: var(--site-font-label);
  font-size: 11px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero__eyebrow::before,
.inner-hero__eyebrow::before {
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  content: "";
  background: currentColor;
}

.page-hero__title,
.inner-hero__title {
  max-width: 980px;
  margin-bottom: 22px;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-hero__description,
.inner-hero__description {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--site-muted-light);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  text-wrap: pretty;
}

/*
|--------------------------------------------------------------------------
| Hero z obrazem
|--------------------------------------------------------------------------
*/

.page-hero--image,
.inner-hero--image {
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  background: var(--site-bg);
}

.page-hero__media,
.inner-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__image,
.inner-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay,
.inner-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 9, 13, 0.96) 0%,
      rgba(5, 9, 13, 0.74) 48%,
      rgba(5, 9, 13, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 9, 13, 0.3) 0%,
      rgba(5, 9, 13, 0.12) 48%,
      rgba(5, 9, 13, 0.88) 100%
    );
}

/*
|--------------------------------------------------------------------------
| Główny obszar treści
|--------------------------------------------------------------------------
*/

.page-content,
.inner-content {
  position: relative;
  padding-block: clamp(72px, 8vw, 128px);
}

.page-content--soft,
.inner-content--soft {
  background: var(--site-bg-soft);
}

.page-content--compact,
.inner-content--compact {
  padding-block: clamp(52px, 6vw, 86px);
}

/*
|--------------------------------------------------------------------------
| Układ kolumnowy treści
|--------------------------------------------------------------------------
*/

.content-layout,
.page-content__layout,
.inner-content__layout {
  display: grid;
  min-width: 0;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, 340px);
  align-items: start;
  gap: clamp(40px, 6vw, 86px);
}

.content-layout--wide-sidebar {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 400px);
}

.content-layout--left-sidebar {
  grid-template-columns:
    minmax(260px, 340px)
    minmax(0, 1fr);
}

.content-layout--left-sidebar .content-layout__main {
  order: 2;
}

.content-layout--left-sidebar .content-layout__sidebar {
  order: 1;
}

.content-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.content-layout__main,
.content-layout__sidebar,
.page-content__main,
.page-content__sidebar,
.inner-content__main,
.inner-content__sidebar {
  min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Boczne panele
|--------------------------------------------------------------------------
*/

.content-sidebar,
.content-layout__sidebar,
.page-content__sidebar,
.inner-content__sidebar {
  display: grid;
  gap: 20px;
}

.content-sidebar__panel,
.content-aside-card {
  padding: 24px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: linear-gradient(
    145deg,
    var(--site-surface-strong),
    var(--site-surface-soft)
  );
  box-shadow: var(--site-shadow-small);
}

.content-sidebar__title,
.content-aside-card__title {
  margin-bottom: 18px;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: 19px;
  font-weight: var(--site-font-weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.content-sidebar__text,
.content-aside-card__text {
  margin-bottom: 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.7;
}

.content-sidebar__list,
.content-aside-card__list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.content-sidebar__list a,
.content-aside-card__list a {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: var(--site-radius-small);
  color: var(--site-text-soft);
  background: var(--site-surface-soft);
  font-family: var(--site-font-label);
  font-size: 12px;
  font-weight: var(--site-font-weight-semibold);
  line-height: 1.4;
  transition:
    color var(--site-transition),
    border-color var(--site-transition),
    background-color var(--site-transition),
    transform var(--site-transition);
}

.content-sidebar__list a:hover,
.content-sidebar__list a.is-active,
.content-aside-card__list a:hover,
.content-aside-card__list a.is-active {
  color: var(--site-primary);
  border-color: var(--site-border-primary);
  background: var(--site-primary-soft);
  transform: translateX(2px);
}

.content-sidebar__list i,
.content-aside-card__list i {
  flex: 0 0 auto;
  color: var(--site-primary);
  font-size: 9px;
}

/*
|--------------------------------------------------------------------------
| Przyklejony sidebar
|--------------------------------------------------------------------------
*/

.content-sidebar--sticky,
.content-layout__sidebar--sticky {
  position: sticky;
  top: calc(var(--site-header-height) + 24px);
}

/*
|--------------------------------------------------------------------------
| Nagłówek artykułu lub szczegółów
|--------------------------------------------------------------------------
*/

.content-header,
.article-header,
.detail-header {
  margin-bottom: clamp(34px, 5vw, 62px);
}

.content-header__eyebrow,
.article-header__eyebrow,
.detail-header__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 9px;
  color: var(--site-primary);
  font-family: var(--site-font-label);
  font-size: 10px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.content-header__title,
.article-header__title,
.detail-header__title {
  max-width: 980px;
  margin-bottom: 20px;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: var(--site-font-weight-bold);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.content-header__description,
.article-header__description,
.detail-header__description {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--site-muted-light);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| Metadane artykułu
|--------------------------------------------------------------------------
*/

.article-meta,
.content-meta,
.detail-meta {
  display: flex;
  margin: 0 0 28px;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  color: var(--site-muted);
  font-family: var(--site-font-label);
  font-size: 11px;
  line-height: 1.5;
}

.article-meta__item,
.content-meta__item,
.detail-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta__item i,
.content-meta__item i,
.detail-meta__item i {
  color: var(--site-primary);
  font-size: 10px;
}

.article-meta__link,
.content-meta__link,
.detail-meta__link {
  color: var(--site-muted-light);
  transition: color var(--site-transition);
}

.article-meta__link:hover,
.content-meta__link:hover,
.detail-meta__link:hover {
  color: var(--site-primary);
}

/*
|--------------------------------------------------------------------------
| Główny obraz treści
|--------------------------------------------------------------------------
*/

.content-cover,
.article-cover,
.detail-cover {
  position: relative;
  margin-bottom: clamp(38px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-large);
  background: var(--site-bg-card);
  box-shadow: var(--site-shadow);
}

.content-cover img,
.article-cover img,
.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.content-cover__caption,
.article-cover__caption,
.detail-cover__caption {
  padding: 12px 16px;
  color: var(--site-muted);
  background: var(--site-bg-elevated);
  font-size: 11px;
  line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Treść z CKEditor
|--------------------------------------------------------------------------
*/

.site-content,
.editor-content,
.static-content,
.article-content,
.detail-content {
  max-width: 100%;
  color: var(--site-text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.site-content > *:first-child,
.editor-content > *:first-child,
.static-content > *:first-child,
.article-content > *:first-child,
.detail-content > *:first-child {
  margin-top: 0;
}

.site-content > *:last-child,
.editor-content > *:last-child,
.static-content > *:last-child,
.article-content > *:last-child,
.detail-content > *:last-child {
  margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Akapity
|--------------------------------------------------------------------------
*/

.site-content p,
.editor-content p,
.static-content p,
.article-content p,
.detail-content p {
  margin-bottom: 1.45em;
  color: var(--site-text-soft);
}

.site-content p:empty,
.editor-content p:empty,
.static-content p:empty,
.article-content p:empty,
.detail-content p:empty {
  display: none;
}

.site-content .lead,
.editor-content .lead,
.static-content .lead,
.article-content .lead,
.detail-content .lead {
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: var(--site-font-weight-medium);
  letter-spacing: -0.025em;
  line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Nagłówki treści
|--------------------------------------------------------------------------
*/

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6,
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6,
.static-content h1,
.static-content h2,
.static-content h3,
.static-content h4,
.static-content h5,
.static-content h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
  margin-top: 1.65em;
  margin-bottom: 0.68em;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-weight: var(--site-font-weight-semibold);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.site-content h1,
.editor-content h1,
.static-content h1,
.article-content h1,
.detail-content h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.site-content h2,
.editor-content h2,
.static-content h2,
.article-content h2,
.detail-content h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.site-content h3,
.editor-content h3,
.static-content h3,
.article-content h3,
.detail-content h3 {
  font-size: clamp(24px, 3vw, 36px);
}

.site-content h4,
.editor-content h4,
.static-content h4,
.article-content h4,
.detail-content h4 {
  font-size: clamp(20px, 2.4vw, 29px);
}

.site-content h5,
.editor-content h5,
.static-content h5,
.article-content h5,
.detail-content h5 {
  font-size: 20px;
}

.site-content h6,
.editor-content h6,
.static-content h6,
.article-content h6,
.detail-content h6 {
  font-size: 17px;
}

/*
|--------------------------------------------------------------------------
| Linki w treści
|--------------------------------------------------------------------------
*/

.site-content a,
.editor-content a,
.static-content a,
.article-content a,
.detail-content a {
  color: var(--site-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--site-primary-rgb), 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color var(--site-transition),
    text-decoration-color var(--site-transition);
}

.site-content a:hover,
.editor-content a:hover,
.static-content a:hover,
.article-content a:hover,
.detail-content a:hover {
  color: var(--site-text);
  text-decoration-color: var(--site-primary);
}

/*
|--------------------------------------------------------------------------
| Listy w treści
|--------------------------------------------------------------------------
*/

.site-content ul,
.site-content ol,
.editor-content ul,
.editor-content ol,
.static-content ul,
.static-content ol,
.article-content ul,
.article-content ol,
.detail-content ul,
.detail-content ol {
  margin-bottom: 1.55em;
  padding-left: 1.45em;
}

.site-content li,
.editor-content li,
.static-content li,
.article-content li,
.detail-content li {
  margin-bottom: 0.55em;
  color: var(--site-text-soft);
}

.site-content li:last-child,
.editor-content li:last-child,
.static-content li:last-child,
.article-content li:last-child,
.detail-content li:last-child {
  margin-bottom: 0;
}

.site-content ul > li::marker,
.editor-content ul > li::marker,
.static-content ul > li::marker,
.article-content ul > li::marker,
.detail-content ul > li::marker {
  color: var(--site-primary);
}

.site-content ol > li::marker,
.editor-content ol > li::marker,
.static-content ol > li::marker,
.article-content ol > li::marker,
.detail-content ol > li::marker {
  color: var(--site-primary);
  font-family: var(--site-font-heading);
  font-weight: var(--site-font-weight-bold);
}

/*
|--------------------------------------------------------------------------
| Listy z ikonami
|--------------------------------------------------------------------------
*/

.content-icon-list,
.site-content .icon-list,
.editor-content .icon-list,
.static-content .icon-list,
.article-content .icon-list,
.detail-content .icon-list {
  display: grid;
  margin: 28px 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.content-icon-list li,
.site-content .icon-list li,
.editor-content .icon-list li,
.static-content .icon-list li,
.article-content .icon-list li,
.detail-content .icon-list li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}

.content-icon-list li::before,
.site-content .icon-list li::before,
.editor-content .icon-list li::before,
.static-content .icon-list li::before,
.article-content .icon-list li::before,
.detail-content .icon-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: var(--site-radius-circle);
  background: var(--site-primary);
  box-shadow: 0 0 0 5px rgba(var(--site-primary-rgb), 0.09);
}

/*
|--------------------------------------------------------------------------
| Cytaty
|--------------------------------------------------------------------------
*/

.site-content blockquote,
.editor-content blockquote,
.static-content blockquote,
.article-content blockquote,
.detail-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 24px 28px 24px 30px;
  overflow: hidden;
  border: 1px solid var(--site-border-primary);
  border-left: 3px solid var(--site-primary);
  border-radius: 0 var(--site-radius) var(--site-radius) 0;
  color: var(--site-text);
  background: linear-gradient(
    135deg,
    rgba(var(--site-primary-rgb), 0.1),
    rgba(var(--site-secondary-rgb), 0.05)
  );
  font-family: var(--site-font-heading);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: var(--site-font-weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.65;
}

.site-content blockquote::before,
.editor-content blockquote::before,
.static-content blockquote::before,
.article-content blockquote::before,
.detail-content blockquote::before {
  position: absolute;
  top: 12px;
  right: 20px;
  content: "\201C";
  color: rgba(var(--site-primary-rgb), 0.13);
  font-family: Georgia, serif;
  font-size: 92px;
  line-height: 1;
  pointer-events: none;
}

.site-content blockquote p,
.editor-content blockquote p,
.static-content blockquote p,
.article-content blockquote p,
.detail-content blockquote p {
  position: relative;
  z-index: 1;
  margin-bottom: 0.7em;
  color: inherit;
}

.site-content blockquote p:last-child,
.editor-content blockquote p:last-child,
.static-content blockquote p:last-child,
.article-content blockquote p:last-child,
.detail-content blockquote p:last-child {
  margin-bottom: 0;
}

.site-content blockquote cite,
.editor-content blockquote cite,
.static-content blockquote cite,
.article-content blockquote cite,
.detail-content blockquote cite {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  color: var(--site-muted-light);
  font-family: var(--site-font-label);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--site-font-weight-semibold);
}

/*
|--------------------------------------------------------------------------
| Obrazy w treści
|--------------------------------------------------------------------------
*/

.site-content img,
.editor-content img,
.static-content img,
.article-content img,
.detail-content img {
  max-width: 100%;
  margin-block: 32px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow-small);
}

.site-content figure,
.editor-content figure,
.static-content figure,
.article-content figure,
.detail-content figure {
  max-width: 100%;
  margin: 36px 0;
}

.site-content figure img,
.editor-content figure img,
.static-content figure img,
.article-content figure img,
.detail-content figure img {
  margin: 0;
}

.site-content figcaption,
.editor-content figcaption,
.static-content figcaption,
.article-content figcaption,
.detail-content figcaption {
  margin-top: 11px;
  color: var(--site-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/*
|--------------------------------------------------------------------------
| Wyrównania obrazów z CKEditor
|--------------------------------------------------------------------------
*/

.site-content .image-style-align-left,
.editor-content .image-style-align-left,
.static-content .image-style-align-left,
.article-content .image-style-align-left,
.detail-content .image-style-align-left,
.site-content img.alignleft,
.editor-content img.alignleft,
.static-content img.alignleft,
.article-content img.alignleft,
.detail-content img.alignleft {
  max-width: 48%;
  margin: 8px 28px 22px 0;
  float: left;
}

.site-content .image-style-align-right,
.editor-content .image-style-align-right,
.static-content .image-style-align-right,
.article-content .image-style-align-right,
.detail-content .image-style-align-right,
.site-content img.alignright,
.editor-content img.alignright,
.static-content img.alignright,
.article-content img.alignright,
.detail-content img.alignright {
  max-width: 48%;
  margin: 8px 0 22px 28px;
  float: right;
}

.site-content .image-style-align-center,
.editor-content .image-style-align-center,
.static-content .image-style-align-center,
.article-content .image-style-align-center,
.detail-content .image-style-align-center,
.site-content img.aligncenter,
.editor-content img.aligncenter,
.static-content img.aligncenter,
.article-content img.aligncenter,
.detail-content img.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

/*
|--------------------------------------------------------------------------
| Galerie treści
|--------------------------------------------------------------------------
*/

.content-gallery,
.site-content .gallery,
.editor-content .gallery,
.static-content .gallery,
.article-content .gallery,
.detail-content .gallery {
  display: grid;
  margin: 38px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-gallery--three,
.site-content .gallery-columns-3,
.editor-content .gallery-columns-3,
.static-content .gallery-columns-3,
.article-content .gallery-columns-3,
.detail-content .gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-gallery__item,
.site-content .gallery-item,
.editor-content .gallery-item,
.static-content .gallery-item,
.article-content .gallery-item,
.detail-content .gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-bg-card);
}

.content-gallery__item img,
.site-content .gallery-item img,
.editor-content .gallery-item img,
.static-content .gallery-item img,
.article-content .gallery-item img,
.detail-content .gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  transition: transform var(--site-transition-image);
}

.content-gallery__item:hover img,
.site-content .gallery-item:hover img,
.editor-content .gallery-item:hover img,
.static-content .gallery-item:hover img,
.article-content .gallery-item:hover img,
.detail-content .gallery-item:hover img {
  transform: scale(1.04);
}

/*
|--------------------------------------------------------------------------
| Tabele w treści
|--------------------------------------------------------------------------
*/

.site-content table,
.editor-content table,
.static-content table,
.article-content table,
.detail-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--site-border);
  color: var(--site-text-soft);
  background: var(--site-bg-card);
}

.site-content .table,
.editor-content .table,
.static-content .table,
.article-content .table,
.detail-content .table {
  max-width: 100%;
  margin-block: 34px;
  overflow-x: auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-bg-card);
}

.site-content .table table,
.editor-content .table table,
.static-content .table table,
.article-content .table table,
.detail-content .table table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.site-content > table,
.editor-content > table,
.static-content > table,
.article-content > table,
.detail-content > table {
  display: block;
  max-width: 100%;
  margin-block: 34px;
  overflow-x: auto;
}

.site-content th,
.site-content td,
.editor-content th,
.editor-content td,
.static-content th,
.static-content td,
.article-content th,
.article-content td,
.detail-content th,
.detail-content td {
  padding: 14px 16px;
  border: 1px solid var(--site-border);
  text-align: left;
  vertical-align: top;
}

.site-content th,
.editor-content th,
.static-content th,
.article-content th,
.detail-content th {
  color: var(--site-text);
  background: var(--site-surface-strong);
  font-family: var(--site-font-label);
  font-size: 11px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-content td,
.editor-content td,
.static-content td,
.article-content td,
.detail-content td {
  font-size: 13px;
  line-height: 1.65;
}

.site-content tbody tr:nth-child(even) td,
.editor-content tbody tr:nth-child(even) td,
.static-content tbody tr:nth-child(even) td,
.article-content tbody tr:nth-child(even) td,
.detail-content tbody tr:nth-child(even) td {
  background: var(--site-surface-soft);
}

/*
|--------------------------------------------------------------------------
| Pozioma linia treści
|--------------------------------------------------------------------------
*/

.site-content hr,
.editor-content hr,
.static-content hr,
.article-content hr,
.detail-content hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--site-border-strong),
    transparent
  );
}

/*
|--------------------------------------------------------------------------
| Kod w treści
|--------------------------------------------------------------------------
*/

.site-content pre,
.editor-content pre,
.static-content pre,
.article-content pre,
.detail-content pre {
  margin: 34px 0;
}

.site-content code,
.editor-content code,
.static-content code,
.article-content code,
.detail-content code {
  color: var(--site-primary);
}

/*
|--------------------------------------------------------------------------
| Osadzone media
|--------------------------------------------------------------------------
*/

.content-embed,
.site-content .media,
.editor-content .media,
.static-content .media,
.article-content .media,
.detail-content .media,
.site-content .video,
.editor-content .video,
.static-content .video,
.article-content .video,
.detail-content .video {
  position: relative;
  width: 100%;
  margin: 36px 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-bg-deep);
  box-shadow: var(--site-shadow-small);
}

.content-embed iframe,
.site-content .media iframe,
.editor-content .media iframe,
.static-content .media iframe,
.article-content .media iframe,
.detail-content .media iframe,
.site-content .video iframe,
.editor-content .video iframe,
.static-content .video iframe,
.article-content .video iframe,
.detail-content .video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/*
|--------------------------------------------------------------------------
| Pliki do pobrania
|--------------------------------------------------------------------------
*/

.content-file-list,
.site-content .file-list,
.editor-content .file-list,
.static-content .file-list,
.article-content .file-list,
.detail-content .file-list {
  display: grid;
  margin: 32px 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.content-file,
.content-file-list a,
.site-content .file-list a,
.editor-content .file-list a,
.static-content .file-list a,
.article-content .file-list a,
.detail-content .file-list a {
  display: flex;
  min-height: 58px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-small);
  color: var(--site-text-soft);
  background: var(--site-surface-soft);
  font-family: var(--site-font-label);
  font-size: 12px;
  font-weight: var(--site-font-weight-semibold);
  text-decoration: none;
  transition:
    color var(--site-transition),
    border-color var(--site-transition),
    background-color var(--site-transition),
    transform var(--site-transition);
}

.content-file:hover,
.content-file-list a:hover,
.site-content .file-list a:hover,
.editor-content .file-list a:hover,
.static-content .file-list a:hover,
.article-content .file-list a:hover,
.detail-content .file-list a:hover {
  color: var(--site-primary);
  border-color: var(--site-border-primary);
  background: var(--site-primary-soft);
  transform: translateX(2px);
}

/*
|--------------------------------------------------------------------------
| Informacyjne bloki treści
|--------------------------------------------------------------------------
*/

.content-note,
.content-box,
.site-content .content-box,
.editor-content .content-box,
.static-content .content-box,
.article-content .content-box,
.detail-content .content-box {
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  color: var(--site-text-soft);
  background: var(--site-surface);
}

.content-note--primary,
.content-box--primary {
  border-color: var(--site-border-primary);
  background: var(--site-primary-soft);
}

.content-note--success,
.content-box--success {
  border-color: var(--site-success-border);
  background: var(--site-success-soft);
}

.content-note--warning,
.content-box--warning {
  border-color: var(--site-warning-border);
  background: var(--site-warning-soft);
}

.content-note--danger,
.content-box--danger {
  border-color: var(--site-danger-border);
  background: var(--site-danger-soft);
}

.content-note__title,
.content-box__title {
  margin-bottom: 8px;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: 18px;
  font-weight: var(--site-font-weight-semibold);
  letter-spacing: -0.025em;
}

/*
|--------------------------------------------------------------------------
| Szczegóły usługi lub realizacji
|--------------------------------------------------------------------------
*/

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.detail-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface-soft);
}

.detail-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--site-primary);
  font-family: var(--site-font-label);
  font-size: 9px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-card__value {
  margin: 0;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: 18px;
  font-weight: var(--site-font-weight-semibold);
  line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Cena usługi
|--------------------------------------------------------------------------
*/

.detail-price,
.service-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-price__value,
.service-price__value {
  color: var(--site-primary);
  font-family: var(--site-font-heading);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: var(--site-font-weight-bold);
  letter-spacing: -0.05em;
  line-height: 1;
}

.detail-price__suffix,
.service-price__suffix {
  color: var(--site-muted);
  font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Kategorie i tagi
|--------------------------------------------------------------------------
*/

.content-taxonomy,
.article-tags,
.detail-tags {
  display: flex;
  margin: 36px 0 0;
  padding: 24px 0 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid var(--site-border);
}

.content-taxonomy__label,
.article-tags__label,
.detail-tags__label {
  margin-right: 5px;
  color: var(--site-muted);
  font-family: var(--site-font-label);
  font-size: 10px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-taxonomy__link,
.article-tags__link,
.detail-tags__link {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 11px;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-pill);
  color: var(--site-text-soft);
  background: var(--site-surface-soft);
  font-family: var(--site-font-label);
  font-size: 10px;
  font-weight: var(--site-font-weight-semibold);
  transition:
    color var(--site-transition),
    border-color var(--site-transition),
    background-color var(--site-transition);
}

.content-taxonomy__link:hover,
.article-tags__link:hover,
.detail-tags__link:hover {
  color: var(--site-primary);
  border-color: var(--site-border-primary);
  background: var(--site-primary-soft);
}

/*
|--------------------------------------------------------------------------
| Nawigacja poprzedni / następny
|--------------------------------------------------------------------------
*/

.content-navigation,
.article-navigation,
.detail-navigation {
  display: grid;
  margin-top: clamp(48px, 6vw, 82px);
  padding-top: clamp(30px, 4vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--site-border);
}

.content-navigation__item,
.article-navigation__item,
.detail-navigation__item {
  display: flex;
  min-height: 110px;
  padding: 20px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface-soft);
  transition:
    border-color var(--site-transition),
    background-color var(--site-transition),
    transform var(--site-transition);
}

.content-navigation__item:hover,
.article-navigation__item:hover,
.detail-navigation__item:hover {
  border-color: var(--site-border-primary);
  background: var(--site-primary-soft);
  transform: translateY(-3px);
}

.content-navigation__item--next,
.article-navigation__item--next,
.detail-navigation__item--next {
  text-align: right;
}

.content-navigation__icon,
.article-navigation__icon,
.detail-navigation__icon {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border: 1px solid var(--site-border-primary);
  border-radius: var(--site-radius-circle);
  color: var(--site-primary);
  background: var(--site-primary-soft);
}

.content-navigation__item--next .content-navigation__icon,
.article-navigation__item--next .article-navigation__icon,
.detail-navigation__item--next .detail-navigation__icon {
  order: 2;
}

.content-navigation__copy,
.article-navigation__copy,
.detail-navigation__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.content-navigation__label,
.article-navigation__label,
.detail-navigation__label {
  margin-bottom: 4px;
  color: var(--site-muted);
  font-family: var(--site-font-label);
  font-size: 9px;
  font-weight: var(--site-font-weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-navigation__title,
.article-navigation__title,
.detail-navigation__title {
  overflow: hidden;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: 14px;
  font-weight: var(--site-font-weight-semibold);
  line-height: 1.45;
  text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Powiązane treści
|--------------------------------------------------------------------------
*/

.related-content {
  position: relative;
  padding-block: clamp(70px, 8vw, 118px);
  background: var(--site-bg-soft);
}

.related-content__header {
  display: flex;
  margin-bottom: 38px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.related-content__title {
  margin: 0;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: var(--site-font-weight-bold);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.related-content__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/*
|--------------------------------------------------------------------------
| Pusta treść
|--------------------------------------------------------------------------
*/

.content-empty {
  display: flex;
  min-height: 360px;
  padding: clamp(38px, 7vw, 80px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  border: 1px dashed var(--site-border-strong);
  border-radius: var(--site-radius);
  background: var(--site-surface-soft);
  text-align: center;
}

.content-empty__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--site-border-primary);
  border-radius: var(--site-radius-circle);
  color: var(--site-primary);
  background: var(--site-primary-soft);
  font-size: 24px;
}

.content-empty__title {
  margin: 0;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: var(--site-font-weight-semibold);
  letter-spacing: -0.04em;
}

.content-empty__description {
  max-width: 560px;
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Czyszczenie elementów pływających
|--------------------------------------------------------------------------
*/

.site-content::after,
.editor-content::after,
.static-content::after,
.article-content::after,
.detail-content::after {
  display: table;
  clear: both;
  content: "";
}

/*
|--------------------------------------------------------------------------
| Druk
|--------------------------------------------------------------------------
*/

@media print {
  .page-hero,
  .inner-hero {
    min-height: 0;
    padding: 35px 0;
    color: #111111;
    background: #ffffff;
  }

  .page-hero::before,
  .page-hero::after,
  .inner-hero::before,
  .inner-hero::after,
  .page-hero__media,
  .inner-hero__media {
    display: none !important;
  }

  .page-hero__title,
  .inner-hero__title,
  .content-header__title,
  .article-header__title,
  .detail-header__title,
  .site-content h1,
  .site-content h2,
  .site-content h3,
  .site-content h4,
  .editor-content h1,
  .editor-content h2,
  .editor-content h3,
  .editor-content h4,
  .static-content h1,
  .static-content h2,
  .static-content h3,
  .static-content h4,
  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .detail-content h1,
  .detail-content h2,
  .detail-content h3,
  .detail-content h4 {
    color: #111111;
  }

  .page-hero__description,
  .inner-hero__description,
  .site-content,
  .editor-content,
  .static-content,
  .article-content,
  .detail-content {
    color: #333333;
  }

  .content-layout,
  .page-content__layout,
  .inner-content__layout {
    display: block;
  }

  .content-layout__sidebar,
  .page-content__sidebar,
  .inner-content__sidebar,
  .related-content,
  .content-navigation,
  .article-navigation,
  .detail-navigation {
    display: none !important;
  }

  .content-cover,
  .article-cover,
  .detail-cover,
  .site-content img,
  .editor-content img,
  .static-content img,
  .article-content img,
  .detail-content img {
    box-shadow: none;
  }

  .site-content a,
  .editor-content a,
  .static-content a,
  .article-content a,
  .detail-content a {
    color: #111111;
  }

  .site-content table,
  .editor-content table,
  .static-content table,
  .article-content table,
  .detail-content table {
    min-width: 0;
    color: #111111;
    background: #ffffff;
  }
}
