/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.88) saturate(0.95) contrast(1.05);
  image-rendering: auto;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(6, 10, 18, 0.5) 0%,
      rgba(6, 10, 18, 0.18) 40%,
      rgba(6, 10, 18, 0.18) 60%,
      rgba(6, 10, 18, 0.55) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 10, 18, 0.55) 0%,
      rgba(6, 10, 18, 0.28) 50%,
      rgba(6, 10, 18, 0.55) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
  max-width: 836px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.65;
}

.hero__lead--mobile {
  display: none;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.hero__trust-sep {
  color: var(--color-text-subtle);
}

.hero__text {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .hero .hero__content {
    width: 90%;
    max-width: 90%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .hero__trust {
    flex-direction: column;
    gap: 6px;
  }

  .hero__trust-sep {
    display: none;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* Brand strip */
.brand-strip {
  background: #c4a357;
  padding: 40px 0;
}

.brand-strip__inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.brand-strip__bar {
  flex: 0 0 6px;
  background: #000;
}

.brand-strip__text {
  flex: 1;
  margin: 0;
  text-align: left;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-bg);
}

@media (max-width: 600px) {
  .brand-strip {
    padding: 28px 0;
  }
}

/* Section separator */
.section-separator {
  padding: 56px 0;
  background: var(--color-bg-elevated);
}

.section-separator__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.section-separator__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.85) 100%
  );
}

.section-separator__line:last-child {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
}

.section-separator__mark {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 600px) {
  .section-separator {
    padding: 32px 0;
  }

  .section-separator__inner {
    gap: 12px;
  }

  .section-separator__mark {
    height: 32px;
  }
}

/* About */
.split--about {
  align-items: stretch;
}

.about__content p + p {
  margin-top: 16px;
}

.about__media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 88% 82% at 50% 50%,
    transparent 42%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.88) saturate(0.85);
  -webkit-mask-image: radial-gradient(
    ellipse 88% 82% at 50% 50%,
    #000 42%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 88% 82% at 50% 50%,
    #000 42%,
    transparent 100%
  );
}

@media (max-width: 900px) {
  .about__media {
    min-height: 280px;
  }
}

/* Services - układ naprzemienny z mockiem */
.service-showcase {
  display: flex;
  flex-direction: column;
  gap: 85px;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-block--reverse .service-block__content {
  order: 2;
}

.service-block--reverse .service-block__media {
  order: 1;
}

.service-block__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 20px;
}

.service-block__content p + p {
  margin-top: 16px;
}

.service-block__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.service-block__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) saturate(0.9);
}

@media (max-width: 900px) {
  .service-showcase {
    gap: 85px;
  }

  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
  }

  .service-block--reverse .service-block__content,
  .service-block--reverse .service-block__media {
    order: unset;
  }

  .service-block__media img {
    min-height: 220px;
  }
}

/* Why */
.why .card {
  text-align: left;
}

/* Approach */
.approach .grid {
  gap: 16px;
}

/* CTA box */
.cta-box {
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    rgba(74, 124, 255, 0.12) 50%,
    var(--color-surface) 100%
  );
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    var(--color-accent-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-box__title {
  margin-bottom: 16px;
  position: relative;
}

.cta-box__text {
  max-width: 560px;
  margin: 0 auto 12px;
  position: relative;
}

.cta-box__text:last-of-type {
  margin-bottom: 32px;
}

.cta-box .btn {
  position: relative;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact__info-title {
  margin-bottom: 16px;
}

.contact__info p {
  margin-bottom: 12px;
}

.contact__email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

.contact__email:hover {
  color: var(--color-accent-hover);
}

.contact__privacy {
  margin-top: 20px;
  font-size: calc(1em - 4pt);
  line-height: 1.65;
  color: var(--color-text-subtle);
}

.contact__note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.55) 0%,
        rgba(6, 10, 18, 0.35) 40%,
        rgba(6, 10, 18, 0.75) 100%
      );
  }

  .hero__content {
    padding: 56px 0 72px;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__image {
    object-position: 62% center;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-box {
    padding: 48px 24px;
  }
}

@media (max-width: 600px) {
  .grid--6 {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 40px 0 56px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__lead--desktop {
    display: none;
  }

  .hero__lead--mobile {
    display: block;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 14px 18px;
  }

  .hero__cta .btn--shift .btn__text-clip {
    height: auto;
    overflow: visible;
  }

  .hero__cta .btn--shift .btn__text-clip::after {
    display: none;
  }

  .hero__cta .btn--shift .btn__text-row {
    white-space: normal;
    height: auto;
    line-height: 1.35;
    justify-content: center;
    text-align: center;
  }

  .hero__cta .btn--shift .btn__text-row[aria-hidden="true"] {
    display: none;
  }

  .hero__cta .btn--shift:hover .btn__text-slider {
    transform: none;
  }

  .about__media {
    min-height: 220px;
  }
}
