/* Za Kulisami Filmów – page-owned styles */

.zk-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--color-graphite);
  overflow: hidden;
}

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

.zk-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zk-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.zk-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin-inline: 0;
  padding-block: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.zk-hero__title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  font-weight: var(--weight-display);
  color: var(--color-cream);
  margin-block-end: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.zk-hero__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-cream-muted);
  margin-block-end: 0;
  max-width: 55ch;
}

.zk-hero__cta {
  margin-block-start: var(--space-2xs);
}

.zk-section-title {
  position: relative;
  padding-block-start: var(--space-2xs);
  margin-block-end: var(--space-md);
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  font-weight: var(--weight-h2);
  color: var(--color-cream);
}

.zk-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--color-burgundy);
}

.zk-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.zk-featured-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: 0;
  overflow: hidden;
  background-color: var(--color-graphite-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-subtle);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.zk-featured-card:hover {
  box-shadow: var(--shadow-lifted);
  border-color: var(--color-burgundy);
  transform: translateY(-2px);
}

.zk-featured-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-graphite);
}

.zk-featured-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zk-featured-card__body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.zk-featured-card__title {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-h3);
  color: var(--color-cream);
  margin-block-end: 0;
}

.zk-featured-card__text {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-cream-muted);
  margin-block-end: 0;
}

.zk-articles__intro {
  max-width: 700px;
  margin-block-end: var(--space-md);
  color: var(--color-cream-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.zk-articles__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.zk-article-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding: var(--space-2xs) 0;
  border-block-end: 1px solid var(--color-border);
}

.zk-article-item:last-child {
  border-block-end: none;
}

.zk-article-item__title {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-h3);
  color: var(--color-cream);
  margin-block-end: 0;
}

.zk-article-item__text {
  max-width: 700px;
  color: var(--color-cream-muted);
  margin-block-end: 0;
}

.zk-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.zk-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-sm);
  background-color: var(--color-graphite-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  text-align: center;
}

.zk-stat__number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: var(--weight-display);
  color: var(--color-burgundy-light);
}

.zk-stat__label {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-cream-muted);
}

.zk-interview__layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-md);
  align-items: start;
}

.zk-interview__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.zk-interview__quote {
  margin: 0;
  padding: var(--space-sm);
  background-color: var(--color-graphite-light);
  border-inline-start: 3px solid var(--color-burgundy);
  border-radius: var(--radius-medium);
  color: var(--color-cream);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
}

.zk-interview__quote p {
  margin-block-end: var(--space-2xs);
}

.zk-interview__cite {
  display: block;
  font-style: normal;
  font-size: var(--text-caption);
  color: var(--color-cream-muted);
  margin-block-start: var(--space-3xs);
}

.zk-interview__text {
  color: var(--color-cream-muted);
  margin-block-end: 0;
}

.zk-interview__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background-color: var(--color-graphite-light);
}

.zk-interview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zk-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.zk-gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.zk-gallery-item__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background-color: var(--color-graphite-light);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.zk-gallery-item__link:hover {
  border-color: var(--color-burgundy);
  box-shadow: var(--shadow-lifted);
}

.zk-gallery-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zk-gallery-item__caption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-cream-muted);
  margin-block-start: 0;
}

.zk-trivia__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.zk-trivia__item {
  position: relative;
  padding-inline-start: var(--space-sm);
  color: var(--color-cream-muted);
  max-width: 700px;
}

.zk-trivia__item::before {
  content: "♠";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-burgundy-light);
  font-size: 1.25rem;
  line-height: 1.4;
}

.zk-quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.zk-quote-card {
  margin: 0;
  padding: var(--space-sm);
  background-color: var(--color-graphite-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-subtle);
  color: var(--color-cream);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.zk-quote-card p {
  margin-block-end: 0;
}

.zk-quote-card__cite {
  display: block;
  font-style: normal;
  font-size: var(--text-caption);
  color: var(--color-cream-muted);
}

.zk-newsletter {
  background-color: var(--color-burgundy);
}

.zk-newsletter .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.zk-newsletter__title {
  color: var(--color-cream);
  margin-block-end: var(--space-2xs);
}

.zk-newsletter__title::before {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-cream);
}

.zk-newsletter__text {
  max-width: 500px;
  color: var(--color-cream-muted);
  margin-block-end: var(--space-sm);
}

.zk-newsletter__form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  align-items: center;
}

.zk-newsletter__input {
  width: 100%;
  padding: var(--space-3xs) var(--space-2xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background-color: var(--color-cream);
  color: var(--color-graphite);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.zk-newsletter__input::placeholder {
  color: rgba(54, 69, 79, 0.6);
}

.zk-newsletter__input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.zk-newsletter__button {
  width: 100%;
}

.zk-newsletter__consent {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-cream-muted);
  margin-block-end: 0;
}

.zk-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.zk-explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-sm);
  background-color: var(--color-graphite-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  text-align: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.zk-explore-card:hover {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy-light);
  transform: translateY(-2px);
  text-decoration: none;
}

.zk-explore-card__title {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-h3);
  color: var(--color-cream);
  margin-block-end: 0;
}

.zk-explore-card__text {
  color: var(--color-cream-muted);
  margin-block-end: 0;
}

/* Tablet */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .zk-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-featured-card:last-child {
    grid-column: span 2;
  }

  .zk-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-interview__layout {
    grid-template-columns: 1fr;
  }

  .zk-interview__media {
    max-width: 400px;
    width: 100%;
  }

  .zk-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-gallery-item:last-child {
    grid-column: span 2;
  }

  .zk-quotes__grid {
    grid-template-columns: 1fr;
  }

  .zk-explore__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zk-explore-card:last-child {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 47.9375rem) {
  .zk-hero {
    min-height: 70vh;
  }

  .zk-hero__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding-block: var(--space-lg);
  }

  .zk-hero__title {
    font-size: 2rem;
    line-height: 1.15;
  }

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

  .zk-hero__cta {
    width: 100%;
  }

  .zk-section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .zk-featured__grid,
  .zk-stats__grid,
  .zk-gallery__grid,
  .zk-quotes__grid,
  .zk-explore__grid {
    grid-template-columns: 1fr;
  }

  .zk-featured-card:last-child,
  .zk-gallery-item:last-child,
  .zk-explore-card:last-child {
    grid-column: auto;
  }

  .zk-interview__layout {
    grid-template-columns: 1fr;
  }

  .zk-interview__media {
    width: 100%;
  }

  .zk-newsletter__form {
    align-items: stretch;
  }

  .zk-newsletter__button,
  .zk-newsletter__input {
    width: 100%;
  }
}

@media (max-width: 29.9375rem) {
  .zk-hero__title {
    font-size: 1.75rem;
  }

  .zk-stat__number {
    font-size: 1.75rem;
  }
}
