/* Narzędzia — page-specific styles; the shared subpage kit is at the end of assets/css/styles.css. */

/* 1. Intro: prose + photo (layout from .wbm-split) */
.narzedzia-intro {
  background: var(--paper);
}

.narzedzia-intro__grid {
  --gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.narzedzia-intro__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--tint);
}

.narzedzia-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.narzedzia-intro__grid .prose {
  max-width: 62ch;
}

.narzedzia-intro__grid .prose h2:first-child {
  margin-top: 0;
}

/* 2. Tool cards: icon + index on top, description, quiet footer line */
.narzedzia-card {
  padding-top: 26px;
}

.narzedzia-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

.narzedzia-card__top .motif-mark {
  width: 30px;
  height: 30px;
}

.narzedzia-card__index {
  color: var(--line-strong);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.narzedzia-card p {
  max-width: 36ch;
}

.narzedzia-card .info-card__meta {
  padding-top: 18px;
  color: var(--muted);
  font-weight: 600;
}

/* 3. How to use: numbered steps + related reading */
.narzedzia-use {
  background: var(--paper);
}

.narzedzia-use__main {
  min-width: 0;
}

.narzedzia-use__main > h2 {
  max-width: 22ch;
  font-size: var(--h2);
  line-height: 1.12;
}

.narzedzia-use__lead {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.use-steps {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  counter-reset: use-step;
}

.use-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--line-strong);
  counter-increment: use-step;
}

.use-steps li::before {
  content: counter(use-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 21px;
  color: var(--brand-strong);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.use-steps strong {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.use-steps span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.narzedzia-related-title {
  margin-top: clamp(40px, 5vw, 56px);
  margin-bottom: 14px;
  font-size: var(--h3);
}

.resource h4 {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Side box: the newsletter CTA is the only action on this page */
.narzedzia-use .side-box {
  top: 96px;
}

@media (max-width: 900px) {
  .narzedzia-intro__media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .use-steps li {
    padding: 18px 0 18px 44px;
  }

  .use-steps li::before {
    top: 19px;
  }

  .use-steps strong {
    font-size: 1rem;
  }

  .resource h4 {
    font-size: 1.125rem;
  }
}
