/* ============================================================
   FILES / PLIKI DO POBRANIA
   ============================================================ */
.files-page {
  background: var(--paper);
  overflow: hidden;
}

.files-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: white;
  background: var(--black);
  overflow: hidden;
}

.files-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,21,28,0.97) 0%, rgba(20,21,28,0.84) 48%, rgba(20,21,28,0.28) 100%),
    linear-gradient(180deg, rgba(20,21,28,0.08), rgba(20,21,28,0.76));
}

.files-hero::after {
  content: 'PDF';
  position: absolute;
  right: -16px;
  bottom: -36px;
  z-index: 1;
  color: rgba(254,240,19,0.08);
  font-family: var(--serif);
  font-size: clamp(160px, 24vw, 340px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 1px;
}

.files-hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('../images/page-headers/header-pliki.jpg') center/cover no-repeat,
    var(--black);
  transform: scale(1.04);
}

.files-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 74px 28px 104px;
}

.files-hero .breadcrumb,
.files-hero .breadcrumb a {
  color: rgba(255,255,255,0.62);
}

.files-hero .breadcrumb a:hover {
  color: var(--yellow);
}

.files-hero h1 {
  max-width: 900px;
  margin-top: 6px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.files-hero h1 span {
  color: var(--yellow);
}

.files-hero p {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  line-height: 1.7;
}

.files-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.files-hero__meta strong {
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 900;
  line-height: 0.85;
}

.files-hero__meta span {
  max-width: 170px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.files-feature {
  position: relative;
  z-index: 3;
  margin-top: -62px;
}

.files-feature__card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 30px;
  align-items: center;
  padding: 32px;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(20,21,28,0.14);
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.files-feature__card:hover {
  transform: translateY(-5px);
  border-color: var(--black);
  box-shadow: 0 30px 80px rgba(20,21,28,0.18);
}

.files-feature__icon,
.file-card__icon {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: inset 0 -18px 36px rgba(20,21,28,0.18);
}

.files-feature__icon {
  width: 118px;
  height: 150px;
  border-radius: 6px;
  font-size: 34px;
}

.files-feature__body h2 {
  max-width: 760px;
  color: var(--black);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.files-feature__body p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.68;
}

.files-feature__action {
  justify-self: end;
  display: grid;
  gap: 10px;
  text-align: right;
}

.files-feature__action span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.files-feature__action strong {
  display: inline-flex;
  justify-content: center;
  padding: 13px 24px;
  background: var(--black);
  color: white;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.files-content {
  padding: 86px 0 96px;
}

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

.file-card {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.file-card::after {
  content: '';
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 160px;
  height: 160px;
  background: var(--bone);
  transform: rotate(45deg);
  transition: background var(--transition-med);
}

.file-card:hover {
  transform: translateY(-5px);
  border-color: var(--black);
  box-shadow: 0 20px 52px rgba(20,21,28,0.12);
}

.file-card:hover::after {
  background: rgba(254,240,19,0.34);
}

.file-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.file-card__type,
.file-card__size {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.file-card__type {
  color: var(--red);
}

.file-card__size {
  color: var(--steel);
}

.file-card__icon {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 94px;
  margin-top: 34px;
  border-radius: 5px;
  font-size: 22px;
}

.file-card--navy .file-card__icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.file-card--yellow .file-card__icon {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--black);
}

.file-card h3 {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  color: var(--black);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.file-card p {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.65;
}

.file-card strong {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 24px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.file-card--navy strong {
  color: var(--navy);
}

.file-card--yellow strong {
  color: var(--black);
}

.files-help {
  padding: 72px 28px;
  color: white;
  background:
    linear-gradient(135deg, rgba(62,64,143,0.92), rgba(20,21,28,0.98)),
    var(--black);
}

.files-help__inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.files-help h2 {
  max-width: 760px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.files-help p {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.65;
}

.files-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.files-help__actions .btn-ghost {
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  background: rgba(255,255,255,0.08);
}

.files-help__actions .btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

@media (max-width: 1120px) {
  .files-feature__card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .files-feature__action {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

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

@media (max-width: 760px) {
  .files-hero {
    min-height: 0;
  }

  .files-hero__inner {
    padding-top: 52px;
    padding-bottom: 92px;
  }

  .files-feature__card,
  .files-help__inner {
    grid-template-columns: 1fr;
  }

  .files-feature__action {
    grid-column: auto;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }

  .files-content {
    padding: 62px 0 72px;
  }

  .file-card {
    min-height: 330px;
  }

  .files-help__actions {
    justify-content: flex-start;
  }
}
