html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.recommendation-page {
  --rec-red: #c9000f;
  --rec-red-rgb: 201, 0, 15;
  overflow: visible;
}

.recommendation-page .cert-section {
  padding: 76px 0;
}

.recommendation-page .cert-section-heading {
  margin-bottom: 34px;
}

.recommendation-page section[id] {
  scroll-margin-top: 110px;
}

/* Hero: prosty układ zgodny z frontem IZWW, bez dekoracyjnych okręgów i siatki. */
.rec-hero {
  padding: 170px 0 0;
  background: #f7f8fa;
  border-bottom: 1px solid var(--cert-line);
}

.rec-hero::before,
.rec-hero-visual::before,
.rec-hero-visual::after,
.rec-hero-orbit {
  display: none;
}

.rec-hero .cert-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
  align-items: center;
  gap: 66px;
  padding-bottom: 58px;
}

.rec-hero .cert-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(40px, 3.8vw, 54px);
  letter-spacing: -.02em;
}

.rec-hero .cert-hero-lead {
  margin-bottom: 28px;
}

.rec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rec-hero .cert-button,
.rec-anchor-nav .rec-anchor-cta,
.rec-final-cta .cert-button {
  border-radius: 4px;
}

.rec-hero-visual {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 48px;
  border-left: 1px solid var(--cert-line);
}

.rec-logo-card {
  width: min(100%, 320px);
  min-height: 0;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rec-logo-card::after {
  display: none;
}

.rec-logo-card img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
}

/* Nawigacja śródstronicowa nie udaje osobnego menu aplikacji. */
.rec-anchor-nav {
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--cert-line);
  box-shadow: none;
  backdrop-filter: none;
}

.rec-anchor-nav .cert-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
}

.rec-anchor-nav a {
  flex: 0 0 auto;
  color: var(--cert-body);
  font-size: 14px;
  font-weight: 600;
}

.rec-anchor-nav a:hover {
  color: var(--rec-red);
}

.rec-anchor-nav .rec-anchor-cta {
  margin-left: auto;
  padding: 9px 14px;
  color: #fff;
  background: var(--rec-red);
}

.rec-anchor-nav .rec-anchor-cta:hover {
  color: #fff;
  background: var(--cert-red-dark);
}

.rec-split,
.rec-basis-grid,
.rec-outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: start;
  gap: 58px;
}

.rec-split .cert-section-heading,
.rec-basis-grid .cert-section-heading,
.rec-outcome-grid .cert-section-heading {
  max-width: none;
  margin-bottom: 0;
}

/* Weryfikacja: blok informacyjny zamiast ozdobnej karty. */
.rec-registry-card {
  display: grid;
  gap: 23px;
  padding: 6px 0 6px 30px;
  color: var(--cert-ink);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--rec-red);
  border-radius: 0;
  box-shadow: none;
}

.rec-registry-card::after {
  display: none;
}

.rec-registry-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  box-shadow: none;
  font-size: 31px;
}

.rec-registry-card > div:nth-child(2) {
  display: grid;
}

.rec-registry-card > div:nth-child(2) span {
  padding: 11px 0;
  border-bottom: 1px solid var(--cert-line);
  font-size: 15px;
  font-weight: 600;
}

.rec-registry-card .cert-button {
  justify-self: start;
}

.rec-meaning,
.rec-assessment,
.rec-outcome,
.rec-validity {
  background: #f7f8fa;
}

.rec-check-grid,
.rec-product-grid,
.rec-change-grid,
.rec-benefit-list,
.rec-document-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rec-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
}

.rec-check-grid li {
  min-height: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  color: var(--cert-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cert-line);
  border-radius: 0;
  font-weight: 600;
}

.rec-check-grid i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 24px;
}

.rec-emphasis {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 30px 34px;
  color: rgba(255, 255, 255, .82);
  background: var(--cert-navy);
  border-radius: 4px;
}

.rec-emphasis > i {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 38px;
}

.rec-emphasis p:last-child {
  margin-bottom: 0;
}

.rec-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rec-area-grid article {
  padding: 27px 29px;
  background: #fff;
  border: 1px solid var(--cert-line);
  border-top: 3px solid var(--cert-navy);
  border-radius: 4px;
  box-shadow: none;
}

.rec-area-grid article > i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 27px;
}

.rec-area-grid h3 {
  margin-bottom: 11px;
  font-size: 21px;
}

.rec-area-grid p {
  margin-bottom: 0;
  font-size: 15px;
}

.rec-basis {
  background: #fff;
}

.rec-basis-note {
  margin-top: 27px;
  border-radius: 4px;
}

.rec-document-list {
  counter-reset: documents;
  border-top: 1px solid var(--cert-line);
}

.rec-document-list li {
  counter-increment: documents;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  color: var(--cert-ink);
  border-bottom: 1px solid var(--cert-line);
  font-size: 14px;
}

.rec-document-list li::before {
  content: counter(documents, decimal-leading-zero);
  color: var(--rec-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.rec-products {
  background: #fff;
}

.rec-product-grid,
.rec-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
}

.rec-product-grid li {
  min-height: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  color: var(--cert-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cert-line);
  border-radius: 0;
  font-weight: 600;
}

.rec-product-grid i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--rec-red);
  border: 1px solid rgba(var(--rec-red-rgb), .26);
  border-radius: 4px;
  font-size: 24px;
}

.rec-long-copy {
  columns: 2;
  column-gap: 44px;
  margin-top: 30px;
  padding-top: 26px;
}

.rec-long-copy p {
  break-inside: avoid;
}

.rec-process {
  background: var(--cert-navy-deep);
}

.rec-process::before {
  display: none;
}

.rec-process .cert-kicker {
  color: #fff;
}

.rec-seven-steps {
  max-width: 1020px;
}

.rec-seven-steps::before {
  left: 29px;
}

.rec-seven-steps li {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 16px;
}

.rec-seven-steps .cert-step-number {
  width: 58px;
  height: 58px;
  background: var(--rec-red);
  border: 6px solid var(--cert-navy-deep);
  border-radius: 4px;
  font-size: 13px;
}

.rec-seven-steps li > div {
  padding: 21px 25px;
  border-radius: 4px;
}

.rec-outcome {
  background: #f7f8fa;
}

.rec-benefit-list {
  border-top: 1px solid var(--cert-line);
}

.rec-benefit-list li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  color: var(--cert-ink);
  border-bottom: 1px solid var(--cert-line);
}

.rec-benefit-list i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 24px;
}

.rec-boundary-note {
  margin-top: 21px;
  padding: 20px 23px;
  color: var(--cert-body);
  background: #fff;
  border: 1px solid var(--cert-line);
  border-left: 4px solid var(--rec-red);
  border-radius: 0;
}

.rec-boundary-note p {
  margin-bottom: 0;
}

.rec-integrity {
  padding: 0 0 76px;
  background: #f7f8fa;
}

.rec-integrity-panel {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 42px 48px;
  color: rgba(255, 255, 255, .8);
  background: var(--cert-navy);
  border-radius: 4px;
  box-shadow: none;
}

.rec-integrity-panel h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 42px);
}

.rec-integrity-panel p:last-child {
  margin-bottom: 0;
}

.rec-integrity-mark {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 52px;
}

.rec-change-grid li {
  position: relative;
  min-height: 0;
  padding: 16px 0 16px 31px;
  color: var(--cert-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cert-line);
  border-radius: 0;
  font-weight: 600;
}

.rec-change-grid li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 5px;
  width: 10px;
  height: 3px;
  background: var(--rec-red);
  border-radius: 0;
}

.rec-validity > .cert-shell > .cert-note {
  margin-top: 23px;
  border-radius: 4px;
}

.rec-cost {
  background: #fff;
}

.rec-cost-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr);
  align-items: center;
  gap: 44px;
  padding: 43px 46px;
  background: #f7f8fa;
  border: 1px solid var(--cert-line);
  border-radius: 4px;
  box-shadow: none;
}

.rec-cost-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.5vw, 44px);
}

.rec-cost-action {
  display: grid;
  justify-items: start;
  gap: 21px;
  padding: 12px 0 12px 34px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--cert-line);
  border-radius: 0;
}

.rec-cost-action > i {
  color: var(--rec-red);
  font-size: 60px;
}

.rec-cost-action .cert-button {
  width: 100%;
  border-radius: 4px;
  text-align: center;
}

.rec-legal {
  padding-top: 0 !important;
}

.rec-legal-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cert-line);
}

.rec-legal-heading i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rec-red);
  border-radius: 4px;
  font-size: 25px;
}

.rec-legal-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.rec-legal-copy {
  columns: 2;
  column-gap: 48px;
  padding-top: 24px;
  font-size: 14px;
}

.rec-legal-copy p {
  break-inside: avoid;
}

.rec-final-cta .cert-cta-panel {
  padding: 48px;
  border-radius: 4px;
}

.rec-final-cta .cert-cta-panel::after {
  display: none;
}

.rec-final-cta .cert-kicker {
  color: #fff;
}

@media (max-width: 980px) {
  .rec-hero .cert-hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 38px;
  }

  .rec-split,
  .rec-basis-grid,
  .rec-outcome-grid {
    gap: 38px;
  }
}

@media (max-width: 820px) {
  .recommendation-page .cert-section {
    padding: 64px 0;
  }

  .rec-hero .cert-hero-grid,
  .rec-split,
  .rec-basis-grid,
  .rec-outcome-grid,
  .rec-cost-panel {
    grid-template-columns: 1fr;
  }

  .rec-hero .cert-hero-grid {
    gap: 34px;
  }

  .rec-hero-visual {
    justify-content: flex-start;
    padding: 30px 0 0;
    border-top: 1px solid var(--cert-line);
    border-left: 0;
  }

  .rec-logo-card {
    width: min(100%, 310px);
  }

  .rec-anchor-nav .cert-shell {
    overflow-x: auto;
    gap: 23px;
    scrollbar-width: none;
  }

  .rec-anchor-nav .cert-shell::-webkit-scrollbar {
    display: none;
  }

  .rec-anchor-nav .rec-anchor-cta {
    margin-left: 0;
  }

  .rec-cost-action {
    padding: 25px 0 0;
    border-top: 1px solid var(--cert-line);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .rec-hero {
    padding-top: 150px;
  }

  .rec-hero .cert-hero-grid {
    padding-bottom: 44px;
  }

  .rec-hero-actions,
  .rec-hero-actions .cert-button {
    width: 100%;
  }

  .rec-anchor-nav .cert-shell {
    min-height: 56px;
  }

  .rec-anchor-nav a {
    font-size: 13px;
  }

  .rec-check-grid,
  .rec-area-grid,
  .rec-product-grid,
  .rec-change-grid {
    grid-template-columns: 1fr;
  }

  .rec-emphasis,
  .rec-integrity-panel {
    grid-template-columns: 1fr;
  }

  .rec-emphasis {
    padding: 25px;
  }

  .rec-integrity-panel,
  .rec-cost-panel,
  .rec-final-cta .cert-cta-panel {
    padding: 28px 24px;
  }

  .rec-long-copy,
  .rec-legal-copy {
    columns: 1;
  }

  .rec-registry-card {
    padding-left: 22px;
  }

  .rec-cost-action .cert-button {
    white-space: normal;
  }
}

/* RECOMMENDATION VISUAL REVISION 4
   Mocniejszy pierwszy ekran i pełnoszerokie moduły bez martwych kolumn. */
.rec-hero {
  position: relative;
  overflow: hidden;
}

.rec-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: block;
  background: var(--cert-navy);
}

.rec-hero .cert-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 62px;
}

.rec-hero-visual {
  padding-left: 28px;
  border-left: 0;
}

.rec-logo-card {
  width: min(100%, 350px);
}

.rec-basis-grid,
.rec-outcome-grid {
  display: block;
}

.rec-basis-grid .cert-section-heading,
.rec-outcome-grid .cert-section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.rec-document-list,
.rec-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--cert-line);
  border-left: 1px solid var(--cert-line);
}

.rec-document-list li {
  min-height: 72px;
  align-items: center;
  padding: 15px 19px;
  background: #fff;
  border-right: 1px solid var(--cert-line);
  border-bottom: 1px solid var(--cert-line);
}

.rec-document-list li::before {
  font-size: 13px;
}

.rec-basis-note {
  max-width: 850px;
  margin-top: 25px;
}

.rec-benefit-list li {
  min-height: 84px;
  padding: 15px 18px;
  background: #fff;
  border-right: 1px solid var(--cert-line);
  border-bottom: 1px solid var(--cert-line);
}

.rec-boundary-note {
  max-width: none;
  margin-top: 20px;
  padding: 22px 26px;
}

@media (max-width: 980px) {
  .rec-hero::after {
    width: 39%;
  }

  .rec-hero .cert-hero-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 38px;
  }

  .rec-logo-card {
    width: min(100%, 310px);
  }
}

@media (max-width: 820px) {
  .rec-hero::after {
    display: none;
  }

  .rec-hero-visual {
    margin-inline: -24px;
    padding: 34px 24px;
    background: var(--cert-navy);
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .rec-document-list,
  .rec-benefit-list {
    grid-template-columns: 1fr;
  }

  .rec-document-list li,
  .rec-benefit-list li {
    min-height: 0;
  }
}
/* RECOMMENDATION VISUAL REVISION 5
   Lekki hero redakcyjny: nagłówek pełnej szerokości, znak i trzy kolumny treści. */
.rec-hero {
  padding-top: 164px;
  background: #fff;
}

.rec-hero::after {
  display: none;
}

.rec-hero .cert-hero-grid {
  display: grid;
  grid-template-columns: 220px repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 30px;
  row-gap: 0;
  padding-bottom: 58px;
}

.rec-hero .cert-hero-copy {
  display: contents;
}

.rec-hero .cert-kicker {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 14px;
}

.rec-hero .cert-hero-copy h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 1040px;
  margin-bottom: 38px;
  font-size: clamp(38px, 3.4vw, 50px);
  line-height: 1.12;
  text-wrap: balance;
}

.rec-hero .cert-hero-lead {
  grid-column: 2 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: none;
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

.rec-hero .cert-hero-lead p {
  margin: 0;
  padding: 0 24px;
  border-left: 1px solid var(--cert-line);
}

.rec-hero-visual {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0 28px 0 0;
  background: transparent;
  border: 0;
}

.rec-logo-card {
  width: min(100%, 190px);
  margin: 0;
}

.rec-hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1050px) {
  .rec-hero .cert-hero-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 36px;
  }

  .rec-hero .cert-hero-lead {
    grid-column: 2;
    grid-template-columns: 1fr;
  }

  .rec-hero .cert-hero-lead p {
    padding: 0 0 16px 24px;
  }

  .rec-logo-card {
    width: min(100%, 170px);
  }
}

@media (max-width: 680px) {
  .rec-hero {
    padding-top: 142px;
  }

  .rec-hero .cert-hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 46px;
  }

  .rec-hero .cert-hero-copy h1 {
    margin-bottom: 28px;
    font-size: clamp(35px, 10vw, 44px);
  }

  .rec-hero-visual {
    grid-column: 1;
    grid-row: 3;
    padding: 0 0 28px;
  }

  .rec-logo-card {
    width: 145px;
  }

  .rec-hero .cert-hero-lead {
    grid-column: 1;
    grid-row: 4;
  }

  .rec-hero .cert-hero-lead p {
    padding: 15px 0;
    border-top: 1px solid var(--cert-line);
    border-left: 0;
  }
}