/* Zespół RATUJ MNIE — dodatkowy układ podstrony „O nas” */
.team-layout {
  overflow: hidden;
}

.team-layout .page-frame {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.team-layout__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 0.6rem clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.75rem);
}

.team-layout__heading .eyebrow {
  grid-column: 1;
  margin-bottom: 0.15rem;
}

.team-layout__heading h2 {
  grid-column: 1;
  max-width: 14ch;
  margin: 0;
}

.team-layout__heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 35rem;
  margin: 0;
  color: #3e3933;
  font-size: 1rem;
  line-height: 1.75;
}

.team-layout__list {
  display: grid;
  gap: 1.35rem;
}

.team-layout__person {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  min-height: 19.5rem;
  overflow: hidden;
  background: #f6f4f0;
}

.team-layout__person--founder {
  background: #24231f;
  color: #fff;
}

.team-layout__photo-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.15rem;
  overflow: hidden;
  background-color: #d8d2c7;
  background-image:
    linear-gradient(45deg, rgba(36, 35, 31, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(36, 35, 31, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(36, 35, 31, 0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(36, 35, 31, 0.12) 75%);
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
}

.team-layout__photo-placeholder::after {
  position: absolute;
  inset: clamp(1.15rem, 2.5vw, 1.7rem);
  border: 1px solid rgba(36, 35, 31, 0.38);
  content: "";
  pointer-events: none;
}

.team-layout__photo-number,
.team-layout__photo-label {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  background: #24231f;
  color: #f6f4f0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
}

.team-layout__photo-number {
  padding: 0.58rem 0.68rem;
}

.team-layout__photo-label {
  align-self: end;
  padding: 0.7rem 0.78rem;
}

.team-layout__person-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.75rem, 5vw, 5.5rem);
}

.team-layout__role {
  margin: 0 0 1rem;
  color: #e8392b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
}

.team-layout h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.35rem);
  line-height: 0.98;
}

.team-layout__position {
  margin: 0.95rem 0 0;
  color: #615a52;
  font-size: 0.94rem;
  line-height: 1.55;
}

.team-layout__person--founder .team-layout__position {
  color: #d0cbc1;
}

.team-layout__bio {
  max-width: 44rem;
  margin-top: 1.4rem;
}

.team-layout__bio p {
  margin: 0;
  color: #d0cbc1;
  font-size: 0.98rem;
  line-height: 1.7;
}

.team-layout__bio p + p {
  margin-top: 0.85rem;
}

.team-layout__empty-copy {
  display: flex;
  align-items: center;
  min-height: 6.25rem;
  max-width: 44rem;
  margin-top: 1.45rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(36, 35, 31, 0.42);
  color: #665f57;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .team-layout__heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .team-layout__heading .eyebrow,
  .team-layout__heading h2,
  .team-layout__heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .team-layout__person {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  }

  .team-layout__person-copy {
    padding: 2rem 1.65rem;
  }
}

@media (max-width: 560px) {
  .team-layout__person {
    grid-template-columns: 1fr;
  }

  .team-layout__photo-placeholder {
    min-height: 16rem;
  }

  .team-layout__person-copy {
    padding: 2rem 1.35rem 2.25rem;
  }
}

/* Kotwice sekcji oferty */
.offer-anchor-target {
  scroll-margin-top: 5.75rem;
}

/* Wyrównanie górnych sekcji „O nas” i „Kontakt” */
@media (min-width: 761px) {
  .editorial-hero--inset-content .editorial-hero__content {
    padding-left: clamp(4rem, 10vw, 9rem);
  }

  .editorial-hero--inset-content .editorial-hero__content::before {
    left: clamp(2.5rem, 6vw, 5.5rem);
  }

  .editorial-hero--inset-content .editorial-hero__content::after {
    left: calc(clamp(2.5rem, 6vw, 5.5rem) - 5px);
  }
}

/* Odświeżenie strony głównej — wyróżniki, dynamika i ścieżka do kontaktu */
.proof-bar {
  position: relative;
  overflow: hidden;
  background: #171719;
  color: #fff;
}

.proof-bar::before,
.proof-bar::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.proof-bar::before {
  top: -12rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(238, 52, 37, 0.44);
  box-shadow: 0 0 0 2.5rem rgba(238, 52, 37, 0.07), 0 0 0 5rem rgba(238, 52, 37, 0.04);
}

.proof-bar::after {
  bottom: -9rem;
  left: 26%;
  width: 15rem;
  height: 15rem;
  background: rgba(238, 52, 37, 0.12);
  filter: blur(4px);
}

.proof-bar__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.75fr) auto;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  min-height: 12rem;
  padding-top: 2.15rem;
  padding-bottom: 2.15rem;
}

.proof-bar__lead {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1rem, 3vw, 3rem);
  border-right: 1px solid rgba(255, 255, 255, 0.21);
}

.proof-bar__eyebrow {
  margin: 0 0 0.75rem;
  color: #ee3425;
  letter-spacing: 0.11em;
  font-size: 0.67rem;
  font-weight: 800;
}

.proof-bar__lead > p:last-child {
  max-width: 22rem;
  margin: 0;
  color: #f6f4f0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.48;
}

.proof-bar__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.proof-bar__point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  padding: 0.3rem clamp(0.8rem, 2vw, 1.65rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.proof-bar__point:first-child {
  padding-left: 0;
}

.proof-bar__point:last-child {
  border-right: 0;
}

.proof-bar__point > span {
  color: #ee3425;
  letter-spacing: 0.08em;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}

.proof-bar__point strong,
.proof-bar__point small {
  display: block;
}

.proof-bar__point strong {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
}

.proof-bar__point small {
  margin-top: 0.35rem;
  color: #cfc9c0;
  font-size: 0.73rem;
  line-height: 1.35;
}

.proof-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: #ee3425;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.proof-bar__cta b {
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .proof-bar__cta:hover {
    background: #ff4b3b;
    box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.26);
    transform: translateY(-2px);
  }

  .proof-bar__cta:hover b {
    transform: translateX(3px);
  }

  .home-offer .offer-card {
    transition: box-shadow 220ms ease, transform 220ms ease;
  }

  .home-offer .offer-card .offer-card__media img {
    transition: transform 420ms ease;
  }

  .home-offer .offer-card:hover {
    box-shadow: 0 1.15rem 2.8rem rgba(29, 28, 26, 0.16);
    transform: translateY(-7px);
  }

  .home-offer .offer-card:hover .offer-card__media img {
    transform: scale(1.055);
  }

  .recommendation {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .recommendation:hover {
    box-shadow: 0 1rem 2.4rem rgba(29, 28, 26, 0.12);
    transform: translateY(-5px);
  }
}

.home-offer {
  position: relative;
  isolation: isolate;
}

.home-offer::before {
  position: absolute;
  z-index: -1;
  top: 4.75rem;
  right: 0;
  width: min(28vw, 24rem);
  height: 14rem;
  background: linear-gradient(135deg, rgba(238, 52, 37, 0.1), transparent 72%);
  content: "";
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.75, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .proof-bar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
  }

  .proof-bar__lead {
    padding-right: 0;
    border-right: 0;
  }

  .proof-bar__points {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .proof-bar__inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .proof-bar__points {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .proof-bar__point,
  .proof-bar__point:first-child {
    padding: 0 0 0 0.9rem;
    border-right: 0;
    border-left: 2px solid rgba(238, 52, 37, 0.72);
  }

  .proof-bar__cta {
    width: 100%;
  }

  .home-offer::before {
    top: 2rem;
    width: 16rem;
    height: 11rem;
  }
}

/* Wyraźniejszy redesign strony głównej */
.cinema-hero {
  isolation: isolate;
}

.cinema-hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(51%, 44rem);
  background: linear-gradient(115deg, transparent 12%, rgba(238, 52, 37, 0.2) 100%);
  content: "";
  pointer-events: none;
}

.hero-signal {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: clamp(3.75rem, 9vw, 7.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.7rem;
  width: min(18rem, 29vw);
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-left: 4px solid #ee3425;
  background: rgba(15, 15, 16, 0.76);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.2);
  color: #fff;
  backdrop-filter: blur(7px);
}

.hero-signal__pulse {
  grid-row: 1 / span 2;
  align-self: center;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #ee3425;
  box-shadow: 0 0 0 0.35rem rgba(238, 52, 37, 0.24);
}

.hero-signal__label {
  color: #f0d7d3;
  letter-spacing: 0.095em;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-signal strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.home-offer {
  background-image: linear-gradient(180deg, #fbfaf7 0%, #f0ece5 100%);
}

.home-offer .offer-grid {
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.home-offer .offer-card {
  overflow: hidden;
  border: 1px solid #d9d2c8;
  background: #fffdfa;
}

.home-offer .offer-card--featured {
  border-color: #272523;
  background: #20201f;
  color: #fff;
}

.home-offer .offer-card__media {
  overflow: hidden;
}

.home-offer .offer-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(15, 15, 16, 0.32));
  content: "";
  pointer-events: none;
}

.home-offer .offer-card__media span {
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: #ee3425;
  color: #fff;
}

.home-offer .offer-card__body {
  position: relative;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.home-offer .offer-card__body::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: #ee3425;
  content: "";
}

.home-offer .offer-card--featured .offer-card__body p {
  color: #ddd7ce;
}

.home-process {
  position: relative;
  overflow: hidden;
  background: #111113;
  color: #fff;
}

.home-process::before {
  position: absolute;
  top: -8rem;
  left: -8rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(238, 52, 37, 0.44);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(238, 52, 37, 0.08), 0 0 0 5rem rgba(238, 52, 37, 0.04);
  content: "";
}

.home-process__frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  align-items: center;
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.home-process__intro h2 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 4.7vw, 5.2rem);
  line-height: 0.94;
}

.home-process__intro > p:not(.eyebrow) {
  max-width: 28rem;
  margin: 1.4rem 0 0;
  color: #d4cec5;
  font-size: 1rem;
  line-height: 1.7;
}

.home-process__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #ee3425;
  color: #fff;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.home-process__cta b {
  color: #ee3425;
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.home-process__steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.home-process__steps li {
  display: grid;
  grid-template-columns: clamp(3.4rem, 7vw, 6rem) minmax(0, 1fr);
  gap: 1.2rem;
  padding: clamp(1.35rem, 2.3vw, 2rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  transition: padding-left 190ms ease, background-color 190ms ease;
}

.home-process__steps li > span {
  color: #ee3425;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1;
}

.home-process__steps strong {
  display: block;
  color: #fff;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.2;
}

.home-process__steps p {
  max-width: 27rem;
  margin: 0.5rem 0 0;
  color: #cfc8bf;
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .home-process__cta:hover b {
    transform: translateX(4px);
  }

  .home-process__steps li:hover {
    padding-left: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-signal__pulse {
    animation: signal-pulse 2.1s ease-in-out infinite;
  }

  @keyframes signal-pulse {
    0%, 100% { box-shadow: 0 0 0 0.35rem rgba(238, 52, 37, 0.24); }
    50% { box-shadow: 0 0 0 0.68rem rgba(238, 52, 37, 0.08); }
  }
}

@media (max-width: 760px) {
  .cinema-hero::before {
    width: 100%;
    background: linear-gradient(180deg, transparent 20%, rgba(11, 11, 12, 0.34) 100%);
  }

  .hero-signal {
    right: 1rem;
    bottom: 1.3rem;
    width: min(16rem, calc(100% - 2rem));
  }

  .home-process__frame {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
}

@media (max-width: 520px) {
  .hero-signal {
    display: none;
  }

  .home-process__steps li {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.9rem;
  }
}

/* Ujednolicenie kluczowych podstron z kierunkiem redesignu */
.contact-main-grid .demo-form {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  border: 1px solid #d9d2c8;
  border-top: 4px solid #ee3425;
  background: #fffdfa;
  box-shadow: 0 1.1rem 2.8rem rgba(29, 28, 26, 0.1);
}

.contact-main-grid .demo-form::before {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(238, 52, 37, 0.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-main-grid .demo-form > * {
  position: relative;
  z-index: 1;
}

.team-layout__person {
  border: 1px solid #d9d2c8;
  box-shadow: 0 0.75rem 2rem rgba(29, 28, 26, 0.055);
}

.team-layout__person--founder {
  border-color: #24231f;
  box-shadow: 0 1.2rem 2.8rem rgba(29, 28, 26, 0.16);
}

.certificate-gallery figure {
  overflow: hidden;
  background: #171719;
}

.certificate-gallery figure img {
  transition: transform 480ms cubic-bezier(0.2, 0.75, 0.3, 1), opacity 260ms ease;
}

@media (hover: hover) {
  .certificate-gallery figure:hover img {
    opacity: 0.92;
    transform: scale(1.035);
  }
}

/* Globalny system redesignu — wspólne elementy całego serwisu */
.site-header {
  box-shadow: 0 0.55rem 1.8rem rgba(0, 0, 0, 0.18);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ee3425 20%, #ee3425 72%, transparent 100%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.site-footer {
  background-color: #101012;
  background-image:
    radial-gradient(circle at 8% 15%, rgba(238, 52, 37, 0.17), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.site-footer::before {
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(238, 52, 37, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(238, 52, 37, 0.045);
  content: "";
  pointer-events: none;
}

.site-footer__grid,
.site-footer__bottom,
.site-footer__pulse {
  position: relative;
  z-index: 1;
}

.button--red {
  box-shadow: 0 0.65rem 1.45rem rgba(238, 52, 37, 0.24);
}

.button--red:hover {
  box-shadow: 0 0.95rem 2rem rgba(238, 52, 37, 0.32);
  transform: translateY(-2px);
}

.text-link {
  position: relative;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: #ee3425;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.text-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.contact-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #d92318 0%, #ee3425 62%, #ff5a49 100%);
  box-shadow: 0 1.2rem 3rem rgba(29, 28, 26, 0.13);
}

.contact-strip::before,
.contact-strip::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-strip::before {
  top: -13rem;
  right: -4rem;
  width: 24rem;
  height: 24rem;
}

.contact-strip::after {
  bottom: -9rem;
  left: 38%;
  width: 16rem;
  height: 16rem;
}

.contact-strip__copy,
.contact-strip__actions {
  position: relative;
  z-index: 1;
}

.faq-item {
  transition: background-color 180ms ease, padding 180ms ease;
}

.faq-item--open {
  padding: 0 1rem;
  background: #f4f0e9;
}

@media (hover: hover) {
  .faq-item:not(.faq-item--open):hover {
    padding: 0 0.75rem;
    background: rgba(238, 52, 37, 0.045);
  }
}

@media (max-width: 700px) {
  .faq-item--open,
  .faq-item:not(.faq-item--open):hover {
    padding: 0 0.65rem;
  }
}

/* Oferta i podstrony szkoleń */
.offer-film-hero {
  position: relative;
  overflow: hidden;
  background: #101012;
}

.offer-film-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(238, 52, 37, 0.33);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(238, 52, 37, 0.055), 0 0 0 6rem rgba(238, 52, 37, 0.03);
  content: "";
  pointer-events: none;
}

.offer-film-hero__copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.1rem, 2.8vw, 2.7rem);
}

.offer-film-hero__copy::before {
  position: absolute;
  top: 0.7rem;
  bottom: 0.2rem;
  left: 0;
  width: 3px;
  background: #ee3425;
  content: "";
}

.offer-film-hero__collage {
  position: relative;
  z-index: 1;
  filter: saturate(1.06) contrast(1.04);
}

.offer-film-hero__main,
.offer-film-hero__detail {
  box-shadow: 1rem 1rem 0 rgba(238, 52, 37, 0.16), 0 1.4rem 3rem rgba(0, 0, 0, 0.28);
}

.offer-catalog {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, #f8f6f1 0%, #eee8df 100%);
}

.offer-catalog::before {
  position: absolute;
  top: 5rem;
  left: -7rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(238, 52, 37, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.offer-catalog .page-frame {
  position: relative;
  z-index: 1;
}

.course-audience-grid {
  overflow: hidden;
  border-top: 4px solid #ee3425;
  box-shadow: 1.05rem 1.05rem 0 rgba(238, 52, 37, 0.11), 0 1.3rem 2.8rem rgba(29, 28, 26, 0.09);
}

.course-audience-card {
  isolation: isolate;
  transition: color 210ms ease, background-color 210ms ease, transform 210ms ease, box-shadow 210ms ease;
}

.course-audience-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #ee3425;
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: opacity 210ms ease, transform 210ms ease;
}

.course-audience-card__number {
  text-shadow: 0.18rem 0.18rem 0 rgba(238, 52, 37, 0.11);
}

@media (hover: hover) {
  .course-audience-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 1rem 1.8rem rgba(29, 28, 26, 0.18);
    transform: translateY(-5px);
  }

  .course-audience-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
  }
}

.offer-process {
  position: relative;
  overflow: hidden;
  background-color: #1c1b19;
  background-image: linear-gradient(135deg, rgba(238, 52, 37, 0.1) 1px, transparent 1px), linear-gradient(45deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
}

.offer-process::after {
  position: absolute;
  right: 6%;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(238, 52, 37, 0.4);
  border-radius: 50%;
  content: "";
}

.offer-process .page-frame {
  position: relative;
  z-index: 1;
}

.service-editorial,
.service-photo-note {
  position: relative;
  overflow: hidden;
}

.service-editorial::after {
  position: absolute;
  top: -11rem;
  right: -9rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(238, 52, 37, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(238, 52, 37, 0.035);
  content: "";
  pointer-events: none;
}

.service-editorial .page-frame,
.service-photo-note .page-frame,
.service-next .page-frame {
  position: relative;
  z-index: 1;
}

.service-fact-list {
  border-top-color: #ee3425;
  box-shadow: 0 1.05rem 2.4rem rgba(29, 28, 26, 0.07);
}

.service-fact-list > div {
  transition: background-color 180ms ease, padding-inline 180ms ease;
}

@media (hover: hover) {
  .service-fact-list > div:hover {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    background: rgba(238, 52, 37, 0.055);
  }
}

.service-photo-note {
  background-image: linear-gradient(115deg, rgba(238, 52, 37, 0.055), transparent 42%);
}

.service-next {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(120deg, #111113 0%, #1e1d1b 62%, #2a211e 100%);
}

.service-next::after {
  position: absolute;
  right: -8rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(238, 52, 37, 0.46);
  border-radius: 50%;
  content: "";
}

/* O nas i Kontakt — spójny, wyrazisty styl */
.team-layout {
  position: relative;
  background-image: linear-gradient(135deg, rgba(238, 52, 37, 0.07), transparent 32%);
}

.team-layout::before {
  position: absolute;
  top: 4rem;
  right: -8rem;
  width: 21rem;
  height: 21rem;
  border: 1px solid rgba(238, 52, 37, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.team-layout .page-frame {
  position: relative;
  z-index: 1;
}

.team-layout__heading h2 {
  text-wrap: balance;
}

.team-layout__person {
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.team-layout__person .team-layout__photo-placeholder {
  background-blend-mode: multiply;
}

.team-layout__person:not(.team-layout__person--founder) .team-layout__person-copy {
  position: relative;
}

.team-layout__person:not(.team-layout__person--founder) .team-layout__person-copy::after {
  position: absolute;
  right: clamp(1.1rem, 3vw, 2rem);
  bottom: clamp(1.1rem, 3vw, 2rem);
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(238, 52, 37, 0.58);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.45rem #f6f4f0;
  content: "";
}

@media (hover: hover) {
  .team-layout__person:hover {
    box-shadow: 0 1.2rem 2.8rem rgba(29, 28, 26, 0.15);
    transform: translateY(-4px);
  }
}

.contact-main-grid {
  position: relative;
}

.contact-main-grid__intro {
  position: relative;
  padding-left: clamp(1.15rem, 2.4vw, 2.2rem);
}

.contact-main-grid__intro::before {
  position: absolute;
  top: 0.15rem;
  bottom: 0.25rem;
  left: 0;
  width: 3px;
  background: #ee3425;
  content: "";
}

.section--contact-map {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #f8f6f2 0%, #eee8df 100%);
}

.section--contact-map::before {
  position: absolute;
  top: -9rem;
  right: -7rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(238, 52, 37, 0.19);
  border-radius: 50%;
  content: "";
}

.section--contact-map .page-frame {
  position: relative;
  z-index: 1;
}

.area-map {
  overflow: hidden;
  border: 1px solid #d6d0c7;
  border-top: 4px solid #ee3425;
  box-shadow: 0 1.2rem 2.8rem rgba(29, 28, 26, 0.1);
}

.social-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  box-shadow: 0 1.1rem 2.5rem rgba(0, 0, 0, 0.18);
}

.social-panel::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(238, 52, 37, 0.55);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.social-panel > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .contact-main-grid__intro {
    padding-left: 1.15rem;
  }
}

/* Banery „O nas” i „Kontakt” — układ analogiczny do strony Oferta */
.editorial-hero--offer-layout {
  min-height: 660px;
  color: #fff;
  background: #111113;
}

.editorial-hero--offer-layout::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 88%, rgba(238, 52, 37, 0.18), transparent 24rem);
  content: "";
  pointer-events: none;
}

.editorial-hero--offer-layout .editorial-hero__image-wrap {
  z-index: 1;
  top: 5.5rem;
  right: max(1rem, calc((100% - 1320px) / 2));
  bottom: 3.8rem;
  width: min(51%, 42rem);
  background: #25231f;
  box-shadow: 1.1rem 1.1rem 0 rgba(238, 52, 37, 0.14), 0 1.5rem 3rem rgba(0, 0, 0, 0.32);
}

.editorial-hero--offer-layout .editorial-hero__image-wrap::after {
  background: linear-gradient(90deg, rgba(17, 17, 19, 0.16) 0%, rgba(17, 17, 19, 0.03) 42%, rgba(17, 17, 19, 0.28) 100%);
}

.editorial-hero--offer-layout .editorial-hero__image {
  filter: saturate(0.93) contrast(1.08);
}

.editorial-hero--offer-layout .editorial-hero__content {
  z-index: 4;
  width: min(56%, 42rem);
  margin-left: max(0px, calc((100% - 1320px) / 2));
  padding-top: 6.5rem;
  padding-bottom: 5rem;
  padding-left: clamp(2rem, 4.5vw, 4.5rem);
}

.editorial-hero--offer-layout .editorial-hero__content::before {
  top: 6.6rem;
  bottom: 4.8rem;
  left: 0;
  background: #ee3425;
}

.editorial-hero--offer-layout .editorial-hero__content::after {
  top: 48%;
  left: -5px;
  border-color: #111113;
  background: #ee3425;
}

.editorial-hero--offer-layout .editorial-hero__eyebrow {
  color: #d6d0c7;
}

.editorial-hero--offer-layout h1 {
  max-width: 9.2ch;
  color: #fff;
  font-size: clamp(3.7rem, 5.85vw, 6.4rem);
  line-height: 0.88;
}

.editorial-hero--offer-layout .editorial-hero__description {
  max-width: 28rem;
  color: #d9d3ca;
}

.editorial-hero--offer-layout .editorial-hero__caption {
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
}

.editorial-hero__collage {
  position: absolute;
  z-index: 5;
  right: max(0.1rem, calc((100% - 1320px) / 2 - 1.9rem));
  bottom: 1.8rem;
  width: min(11.5rem, 18vw);
  margin: 0;
}

.editorial-hero__collage-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: #282622;
  box-shadow: 0 0.85rem 1.8rem rgba(0, 0, 0, 0.24);
}

.editorial-hero__collage-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.editorial-hero__collage-card--top {
  width: 66%;
  margin: 0 0 -1rem -2.1rem;
  transform: rotate(-2.5deg);
}

.editorial-hero__collage-card--bottom {
  position: relative;
  z-index: 1;
  transform: rotate(1.8deg);
}

.editorial-hero__collage p {
  position: relative;
  z-index: 2;
  margin: -0.6rem -1.25rem 0 0.7rem;
  padding: 0.62rem 0.72rem;
  background: #ee3425;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .editorial-hero--offer-layout .editorial-hero__content {
    width: min(60%, 35rem);
  }

  .editorial-hero--offer-layout .editorial-hero__image-wrap {
    width: 52%;
  }

  .editorial-hero__collage {
    width: 9.5rem;
  }
}

@media (max-width: 720px) {
  .editorial-hero--offer-layout {
    min-height: 690px;
  }

  .editorial-hero--offer-layout .editorial-hero__image-wrap {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 47%;
    box-shadow: none;
  }

  .editorial-hero--offer-layout .editorial-hero__image-wrap::after {
    background: linear-gradient(180deg, rgba(17, 17, 19, 0.1) 0%, rgba(17, 17, 19, 0.5) 100%);
  }

  .editorial-hero--offer-layout .editorial-hero__content {
    z-index: 3;
    justify-content: flex-end;
    width: 100%;
    min-height: 690px;
    margin-left: 0;
    padding: 18rem 1.25rem 2.75rem 2.25rem;
  }

  .editorial-hero--offer-layout .editorial-hero__content::before {
    top: auto;
    bottom: 2.8rem;
  }

  .editorial-hero--offer-layout .editorial-hero__content::after {
    top: auto;
    bottom: 45%;
  }

  .editorial-hero--offer-layout h1 {
    max-width: 10.5ch;
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .editorial-hero--offer-layout .editorial-hero__description {
    font-size: 0.95rem;
  }

  .editorial-hero__collage {
    right: 1rem;
    bottom: auto;
    top: 1.3rem;
    width: 7rem;
  }

  .editorial-hero__collage-card--top {
    display: none;
  }

  .editorial-hero__collage p {
    display: none;
  }

  .editorial-hero--offer-layout .editorial-hero__caption {
    right: 1rem;
    bottom: calc(53% + 0.7rem);
  }
}

.editorial-hero--offer-layout .button--outline-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
}

.editorial-hero--offer-layout .button--outline-dark:hover {
  color: #111113;
  background: #fff;
  border-color: #fff;
}

/* Usunięcie zbędnego oznacznika „PROTOKÓŁ →” nad sekcjami */
.protocol-section .page-frame:first-child::before {
  display: none !important;
  content: none !important;
}
