/* Podstrony SEO generatora (/generator-wypowiedzen/...). Te same zmienne co formularz. */

.trw-page {
  --jic-ink: #0F1010;
  --jic-muted: #5f6b7a;
  --jic-line: #d8e4e9;
  --jic-soft: #F0F4F8;
  --jic-primary: #136B5D;
  --jic-primary-strong: #0D2B4E;
  --jic-primary-soft: #e8f8ef;

  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 16px 64px;
  color: var(--jic-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.trw-page *,
.trw-page *::before,
.trw-page *::after {
  box-sizing: border-box;
}

.trw-page a {
  color: var(--jic-primary);
}

.trw-page h1,
.trw-page h2,
.trw-page h3,
.trw-page h4 {
  color: var(--jic-primary-strong);
  font-family: inherit;
  letter-spacing: 0;
}

/* Okruszki */
.trw-page .trw-page__crumbs {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--jic-muted);
  font-size: 13px;
}

.trw-page__crumbs a {
  color: var(--jic-muted);
  text-decoration: none;
}

.trw-page__crumbs a:hover {
  color: var(--jic-primary);
  text-decoration: underline;
}

/* Naglowek */
.trw-page__hero {
  max-width: 860px;
  margin-bottom: 28px;
}

.trw-page__kicker {
  margin: 0 0 8px;
  color: var(--jic-primary);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.trw-page__hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
}

.trw-page__lead {
  margin: 0 0 12px;
  color: #2b3440;
  font-size: clamp(16px, 1.6vw, 18px);
}

.trw-page__meta {
  margin: 0;
  color: var(--jic-muted);
  font-size: 13px;
}

.trw-page__tool {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

/* Uklad: spis tresci + tresc */
.trw-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 980px) {
  .trw-page__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .trw-page__toc {
    position: sticky;
    top: 100px;
  }
}

.trw-page__toc {
  padding: 18px 20px;
  border: 1px solid var(--jic-line);
  border-radius: 14px;
  background: var(--jic-soft);
  font-size: 14px;
}

.trw-page__toc p {
  margin: 0 0 8px;
  color: var(--jic-primary-strong);
  font-weight: 750;
}

.trw-page__toc ol {
  margin: 0;
  padding-left: 18px;
}

.trw-page__toc li + li {
  margin-top: 6px;
}

.trw-page__toc a {
  color: #2b3440;
  text-decoration: none;
}

.trw-page__toc a:hover {
  color: var(--jic-primary);
  text-decoration: underline;
}

.trw-page__content {
  max-width: 820px;
  min-width: 0;
}

.trw-page__section {
  scroll-margin-top: 100px;
}

.trw-page__section + .trw-page__section {
  margin-top: 40px;
}

.trw-page__section h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 760;
  line-height: 1.2;
}

.trw-page__section p,
.trw-page__section ul,
.trw-page__section ol {
  margin: 0 0 14px;
}

.trw-page__steps {
  padding-left: 22px;
}

.trw-page__steps li + li {
  margin-top: 8px;
}

.trw-page__tip,
.trw-page__fact {
  padding: 12px 16px;
  border-left: 4px solid var(--jic-primary);
  border-radius: 0 10px 10px 0;
  background: var(--jic-primary-soft);
}

.trw-page__verified {
  color: var(--jic-muted);
  font-size: 13px;
}

/* CTA */
.trw-page__cta {
  padding: 24px;
  border: 1px solid rgba(46, 204, 113, 0.36);
  border-radius: 16px;
  background: var(--jic-primary-soft);
}

.trw-page__cta-actions {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.trw-page__cta-actions p {
  margin: 0;
  font-size: 14px;
}

.trw-page .trw-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #136B5D 0%, #2ECC71 100%);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
}

/* FAQ */
.trw-page__faq details {
  border: 1px solid var(--jic-line);
  border-radius: 12px;
  background: #fff;
}

.trw-page__faq details + details {
  margin-top: 10px;
}

.trw-page__faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.trw-page__faq summary::-webkit-details-marker {
  display: none;
}

.trw-page__faq summary::after {
  content: "+";
  flex: none;
  color: var(--jic-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.trw-page__faq details[open] summary::after {
  content: "−";
}

.trw-page__faq summary h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.trw-page__faq details p {
  margin: 0;
  padding: 0 18px 16px;
}

/* Katalog operatorow */
.trw-page__directory {
  margin: 0 0 48px;
  scroll-margin-top: 100px;
}

.trw-page__directory > h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.trw-page__group {
  margin-top: 20px;
}

.trw-page__group h3,
.trw-page__group h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 750;
}

.trw-page__group ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trw-page__group a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--jic-line);
  border-radius: 10px;
  background: #fff;
  color: var(--jic-primary-strong);
  font-weight: 600;
  text-decoration: none;
}

.trw-page__group a:hover {
  border-color: var(--jic-primary);
  color: var(--jic-primary);
}

.trw-page__directory.is-compact {
  margin: 28px 0 0;
}

.trw-page__directory.is-compact ul {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.trw-page__directory.is-compact a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}

/* Linkowanie: powiazani operatorzy */
.trw-page__links {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--jic-line);
}

.trw-page__links > h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.trw-page__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trw-page__cards a {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--jic-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 43, 78, 0.05);
  text-decoration: none;
}

.trw-page__cards a:hover {
  border-color: var(--jic-primary);
}

.trw-page__cards span {
  color: var(--jic-muted);
  font-size: 13px;
}

.trw-page__cards strong {
  color: var(--jic-primary-strong);
  font-size: 17px;
}

.trw-page__hub-link {
  margin: 24px 0 0;
  font-weight: 650;
}

.trw-page__disclaimer {
  margin: 40px 0 0;
  color: var(--jic-muted);
  font-size: 13px;
}

/* Telefon i tablet: naglowek motywu jest wyzszy (logo + przyciski w dwoch rzedach) i przykrywa gore strony. */
/* Komputer: naglowek motywu przykrywa gore strony, wiec zostawiamy miejsce na okruszki. */
.admin-bar .trr-page {
  padding-top: 172px;
}

@media (max-width: 1024px) {
  .trw-page {
    padding-top: 160px;
  }

  /* Zalogowany: pasek admina WordPressa przesuwa naglowek o 46 px. */
  .admin-bar .trw-page {
    padding-top: 206px;
  }

  .trw-page__tool,
  .trw-page__section,
  .trw-page__directory {
    scroll-margin-top: 170px;
  }
}
