.referral-container { width: min(1132px, calc(100% - 40px)); margin-inline: auto; }
#podaj-dalej, #jak-zaczac, #jak-polecac { scroll-margin-top: 110px; }
.referral-meeting-copy { max-width: 800px; margin: 16px 0 0; padding-left: 20px; border-left: 3px solid #138567; line-height: 1.65; }
.referral-panel { min-width: 0; }
.referral-panel > .button { white-space: normal; text-align: center; }
.referral-band, .referral-page, .referral-dialog, .referral-success { letter-spacing: 0; }
.referral-band { padding: 52px 0; background: #edf7f4; color: #123442; border-block: 1px solid #d7e8e2; }
.referral-band h2, .referral-section h2 { font-size: 30px; line-height: 1.25; margin: 0 0 20px; }
.referral-home-copy { max-width: 820px; }
.referral-band p, .referral-section p { line-height: 1.65; }
.referral-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.referral-actions .button { white-space: normal; text-align: center; min-height: 44px; max-width: 100%; }
.referral-claim { font-size: 14px; margin: 22px 0 0; color: #326657; }
.referral-intro { padding-top: 48px; }
.referral-intro h1 { font-size: 42px; line-height: 1.15; margin: 14px 0 20px; }
.referral-lead { font-size: 19px; line-height: 1.6; max-width: 750px; }
.referral-product { margin: 36px 0 0; }
.referral-product img { display: block; max-width: 100%; width: 100%; height: auto; }
.referral-product figcaption { font-size: 12px; color: #526770; padding: 10px 0 20px; }
.referral-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.referral-section { padding-block: 52px; }
.referral-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-left: 24px; margin-block: 32px; }
.referral-steps li::marker { color: #138567; font-weight: 700; }
.referral-steps h3, .referral-features h3 { font-size: 19px; margin: 0; }
.referral-steps p { margin-bottom: 0; }
.referral-payment { max-width: 667px; margin-inline: auto; }
.referral-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.referral-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #c9dedb; border-radius: 8px; background: #fff; color: #123442; box-sizing: border-box; }
.referral-dialog::backdrop { background: rgb(8 32 43 / 55%); }
.referral-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.referral-dialog h2 { font-size: 23px; line-height: 1.3; margin: 0; }
.referral-dialog p { line-height: 1.6; }
.referral-dialog-heading + p { margin-top: 14px; }
.referral-close { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #cadbdc; border-radius: 4px; color: #123442; background: white; font-size: 26px; cursor: pointer; }
.referral-dialog label { display: block; font-size: 14px; font-weight: 600; }
.referral-dialog input { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 12px; background: #f4f8f8; color: #123442; border: 1px solid #b9cdd0; border-radius: 4px; font-size: 14px; }
.referral-material { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d7e3e4; }
.referral-material h3 { font-size: 16px; margin: 0; }
.referral-status { min-height: 24px; margin-bottom: 0; font-size: 14px; }
.referral-success { padding: 24px; border: 1px solid #bfdfd2; border-left: 4px solid #15956d; border-radius: 6px; margin-block: 20px; background: #edf7f4; color: #123442; }
.referral-success h3 { font-size: 20px; margin: 0 0 10px; }
.referral-success p { margin: 0; line-height: 1.55; }
.referral-success:has(> [hidden]) { display: none; }
.referral-dialog [hidden] { display: none !important; }
@media (max-width: 700px) {
    .referral-band, .referral-section { padding-block: 32px; }
    .referral-intro { padding-top: 32px; }
    .referral-intro h1 { font-size: 32px; }
    .referral-band h2, .referral-section h2 { font-size: 25px; }
    .referral-benefits, .referral-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .referral-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .referral-dialog { padding: 20px; }
    .referral-dialog h2 { font-size: 21px; }
    .referral-dialog .referral-actions > * { flex: 1 1 170px; }
    .referral-success { padding: 18px; }
}
.referral-news-video { margin: 24px auto; max-width: 360px; }
.referral-news-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #f3f8f5; }
