/* v19: Polish coursework requirements block; typography parity for Polish heroes.
   The layout of the tall coursework illustration remains independent from the
   wider referat illustration. No changes to shared payment, JS or form logic. */
body.rf-home-page section.pl19-coursework-section,
body.rf-home-page section.pl19-coursework-section *{box-sizing:border-box}
body.rf-home-page main > section.pl19-coursework-section:not(.hero){
  clear:both!important;position:relative!important;isolation:isolate;
  width:100%!important;max-width:none!important;overflow:clip!important;
  margin:0!important;padding:clamp(48px,5vw,88px) 0 clamp(55px,5.2vw,94px)!important;
  background:#fff!important;background-image:none!important;
  color:#0a1e3e!important;font-family:'Manrope','Inter','Segoe UI',system-ui,sans-serif!important;
}
body.rf-home-page .pl19-wrap{width:min(1610px,calc(100% - 64px));margin-inline:auto}
body.rf-home-page .pl19-heading{text-align:center;max-width:1500px;margin:0 auto clamp(28px,2.6vw,46px)}
body.rf-home-page .pl19-heading h2{
  margin:0 auto 12px!important;font-size:clamp(32px,3.65vw,65px)!important;
  font-weight:850!important;letter-spacing:-.055em!important;line-height:1.1!important;
  color:#0a1a39!important;text-align:center!important;text-wrap:balance;
}
body.rf-home-page .pl19-heading h2 strong{
  font:inherit!important;font-weight:inherit!important;color:#de101e!important;
  -webkit-text-fill-color:#de101e!important;background:none!important;
  border:0!important;text-decoration:none!important;box-shadow:none!important;
  padding:0!important;margin:0!important;white-space:normal!important;
}
body.rf-home-page .pl19-heading h2 strong::before,
body.rf-home-page .pl19-heading h2 strong::after{display:none!important;content:none!important}
body.rf-home-page .pl19-heading p{
  margin:0 auto!important;max-width:1000px!important;font-size:clamp(18px,1.42vw,26px)!important;
  line-height:1.48!important;color:#475775!important;font-weight:450!important;
}
body.rf-home-page .pl19-type-row{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(14px,1.65vw,28px);margin-bottom:clamp(22px,2vw,36px)
}
body.rf-home-page .pl19-type-card{
  min-width:0;display:grid;grid-template-columns:clamp(88px,8.1vw,145px) minmax(0,1fr);
  align-items:center;gap:clamp(13px,1.65vw,26px);min-height:clamp(145px,9.3vw,184px);
  padding:clamp(18px,1.8vw,32px)!important;border-radius:clamp(20px,2vw,35px)!important;
  box-shadow:0 9px 30px rgba(16,42,88,.04);border:1px solid #e9eef8;
}
body.rf-home-page .pl19-type-blue{background:linear-gradient(104deg,#eff5ff 0%,#f6f9ff 100%)!important}
body.rf-home-page .pl19-type-red{background:linear-gradient(104deg,#fff2f4 0%,#fff7f8 100%)!important;border-color:#ffe5e9!important}
body.rf-home-page .pl19-type-icon{
  min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center;
  padding-right:clamp(8px,1.15vw,19px);border-right:2px solid #d4dfef;
}
body.rf-home-page .pl19-type-red .pl19-type-icon{border-right-color:#ffd4db}
body.rf-home-page .pl19-type-icon img{width:clamp(72px,6.5vw,112px);height:clamp(72px,6.5vw,112px);max-width:100%;object-fit:contain;display:block}
body.rf-home-page .pl19-type-card h3{
  margin:0 0 5px!important;font-size:clamp(22px,1.78vw,32px)!important;
  line-height:1.16!important;letter-spacing:-.035em!important;font-weight:850!important;color:#0b1d3d!important;
}
body.rf-home-page .pl19-type-card p{
  margin:0!important;font-size:clamp(16px,1.19vw,21px)!important;
  line-height:1.43!important;color:#183354!important;max-width:600px;
}
body.rf-home-page .pl19-example{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.35fr);
  gap:clamp(15px,1.6vw,30px);min-width:0;
  border:1.5px solid #e1e8f4;border-radius:clamp(19px,1.6vw,29px);
  padding:clamp(17px,1.8vw,30px) clamp(17px,2.3vw,38px)!important;
  background:#fcfdff!important;box-shadow:0 15px 48px rgba(19,44,85,.055);
}
body.rf-home-page .pl19-example-copy{min-width:0}
body.rf-home-page .pl19-example-intro{display:flex;align-items:center;gap:clamp(14px,1.45vw,24px);margin-bottom:15px}
body.rf-home-page .pl19-example-intro>img{width:clamp(46px,4.5vw,72px);height:clamp(46px,4.5vw,72px);object-fit:contain;flex:0 0 auto}
body.rf-home-page .pl19-example-intro h3{
  margin:0 0 4px!important;color:#0a1e3d!important;
  font-size:clamp(23px,2.05vw,36px)!important;line-height:1.15!important;
  letter-spacing:-.04em!important;font-weight:850!important;
}
body.rf-home-page .pl19-example-intro p{margin:0!important;font-size:clamp(15px,1.13vw,20px)!important;color:#334964!important;line-height:1.4!important}
body.rf-home-page .pl19-req-rows{display:grid;gap:6px;margin:0;padding:0}
body.rf-home-page .pl19-req-row{
  display:grid;grid-template-columns:minmax(184px,.39fr) minmax(0,1fr);gap:10px;
  align-items:stretch;min-width:0;min-height:43px;
}
body.rf-home-page .pl19-req-row dt,
body.rf-home-page .pl19-req-row dd{
  display:flex;align-items:center;border-radius:10px;margin:0!important;
  min-width:0;padding:9px 12px!important;line-height:1.28!important;
  font-size:clamp(14px,1.03vw,18px)!important;
}
body.rf-home-page .pl19-req-row dt{
  color:#0c2244!important;background:linear-gradient(105deg,#fff0f3,#ffebef)!important;
  gap:11px;font-weight:800!important;
}
body.rf-home-page .pl19-req-row dt img{width:23px;height:23px;flex:0 0 23px;object-fit:contain}
body.rf-home-page .pl19-req-row dd{color:#102749!important;background:#eef3fc!important;overflow-wrap:anywhere}
body.rf-home-page .pl19-example-image{
  min-width:0;display:flex;justify-content:center;align-items:center;
  align-self:stretch;overflow:hidden;
}
body.rf-home-page .pl19-example-image img{
  display:block;max-width:100%;height:auto;width:min(100%,390px);
  max-height:470px;object-fit:contain;object-position:center center;
}
body.rf-home-page .pl19-cta-wrap{display:flex;justify-content:center;margin-top:clamp(24px,2.3vw,40px)}
body.rf-home-page .pl19-cta{
  min-height:clamp(64px,5vw,84px);display:inline-flex;align-items:center;justify-content:center;
  gap:clamp(13px,1.6vw,24px);padding:13px clamp(26px,2.9vw,50px);
  border-radius:999px;background:linear-gradient(135deg,#f52b37 0%,#df0d1f 100%)!important;
  color:#fff!important;text-decoration:none!important;font-size:clamp(19px,1.65vw,28px)!important;
  letter-spacing:-.02em;font-weight:800!important;line-height:1.2;
  box-shadow:0 8px 0 #af0a15,0 16px 28px rgba(204,12,30,.14);
  transition:transform .18s ease,box-shadow .18s ease;
}
body.rf-home-page .pl19-cta:hover{transform:translateY(-2px);box-shadow:0 10px 0 #af0a15,0 18px 26px rgba(204,12,30,.18)}
body.rf-home-page .pl19-cta:focus-visible{outline:3px solid #001e50;outline-offset:5px}
body.rf-home-page .pl19-cta img{display:block;width:clamp(29px,2.4vw,42px);height:clamp(29px,2.4vw,42px);object-fit:contain}
body.rf-home-page .pl19-cta-arrow{font:inherit!important;font-size:1.35em!important;line-height:1!important;display:block;transform:translateY(-1px)}

/* Equal typography for every PL hero, but NOT identical art placement.
   Keep the referat stage wide and the coursework stage tall as designed in v17/v18. */
@media(min-width:1151px){
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-title,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage h1.pl-hero-title,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-referat-stage h1.pl-hero-title{
    font-size:clamp(61px,5.22vw,100px)!important;line-height:1.035!important;
    letter-spacing:-.056em!important;margin-bottom:clamp(18px,1.5vw,27px)!important;
    overflow-wrap:break-word!important;
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-description,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-coursework-stage .pl-hero-description,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-referat-stage .pl-hero-description{
    font-size:clamp(20px,1.52vw,28px)!important;line-height:1.36!important;
    max-width:100%!important;
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-benefit b{font-size:clamp(17px,1.28vw,24px)!important}
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-benefit small{font-size:clamp(13px,1.02vw,18px)!important;line-height:1.33!important}
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-benefit-icon{
    width:clamp(55px,4vw,72px)!important;height:clamp(55px,4vw,72px)!important;flex-basis:clamp(55px,4vw,72px)!important
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-benefit-icon img{
    width:clamp(42px,3.2vw,54px)!important;height:clamp(42px,3.2vw,54px)!important
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-actions a{
    min-height:clamp(64px,5vw,82px)!important;font-size:clamp(16px,1.32vw,23px)!important
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage{
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;gap:clamp(15px,1.7vw,30px)!important;
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage .pl-hero-content{
    align-self:center!important;min-width:0!important;
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage h1.pl-hero-title>span{
    white-space:normal!important;
  }
}
@media(min-width:1151px) and (max-height:820px){
  /* Do not revert to the too-small 46–69 px coursework heading from v17. */
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage h1.pl-hero-title,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-referat-stage h1.pl-hero-title{
    font-size:clamp(59px,5vw,91px)!important;
  }
}
@media(min-width:741px) and (max-width:1150px){
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage h1.pl-hero-title,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage h1.pl-hero-title,
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-referat-stage h1.pl-hero-title{
    font-size:clamp(55px,6.3vw,80px)!important;line-height:1.06!important;
  }
  body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage .pl-hero-description{font-size:clamp(19px,2.2vw,25px)!important}
}
@media(max-width:1150px){
 body.rf-home-page .pl19-type-card{grid-template-columns:86px 1fr;padding:18px!important}
 body.rf-home-page .pl19-type-icon img{width:75px;height:75px}
 body.rf-home-page .pl19-example{grid-template-columns:minmax(0,1fr) minmax(185px,.35fr)}
 body.rf-home-page .pl19-req-row{grid-template-columns:minmax(160px,.4fr) minmax(0,1fr)}
}
@media(max-width:800px){
 body.rf-home-page .pl19-wrap{width:calc(100% - 34px)}
 body.rf-home-page .pl19-type-row{grid-template-columns:1fr;gap:14px}
 body.rf-home-page .pl19-type-card{min-height:122px}
 body.rf-home-page .pl19-example{grid-template-columns:1fr}
 body.rf-home-page .pl19-example-image{width:min(100%,360px);margin:0 auto}
 body.rf-home-page .pl19-example-image img{width:100%;max-height:390px}
}
@media(max-width:540px){
 body.rf-home-page main > section.pl19-coursework-section:not(.hero){padding:39px 0 58px!important}
 body.rf-home-page .pl19-wrap{width:calc(100% - 26px)}
 body.rf-home-page .pl19-heading{margin-bottom:21px}
 body.rf-home-page .pl19-heading h2{font-size:clamp(29px,8vw,41px)!important;letter-spacing:-.045em!important}
 body.rf-home-page .pl19-heading p{font-size:16px!important;line-height:1.42!important}
 body.rf-home-page .pl19-type-card{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:13px!important;min-height:108px;border-radius:20px!important}
 body.rf-home-page .pl19-type-icon{padding-right:8px}
 body.rf-home-page .pl19-type-icon img{width:64px;height:64px}
 body.rf-home-page .pl19-type-card h3{font-size:clamp(19px,5vw,23px)!important}
 body.rf-home-page .pl19-type-card p{font-size:13px!important;line-height:1.33!important}
 body.rf-home-page .pl19-example{padding:15px 11px!important;border-radius:19px}
 body.rf-home-page .pl19-example-intro{gap:9px}
 body.rf-home-page .pl19-example-intro>img{width:43px;height:43px}
 body.rf-home-page .pl19-example-intro h3{font-size:clamp(18px,5vw,22px)!important}
 body.rf-home-page .pl19-example-intro p{font-size:13px!important}
 body.rf-home-page .pl19-req-rows{gap:7px}
 body.rf-home-page .pl19-req-row{grid-template-columns:1fr;gap:3px}
 body.rf-home-page .pl19-req-row dt,body.rf-home-page .pl19-req-row dd{padding:8px 10px!important;font-size:13px!important}
 body.rf-home-page .pl19-req-row dt{gap:8px}
 body.rf-home-page .pl19-req-row dt img{width:19px;height:19px;flex-basis:19px}
 body.rf-home-page .pl19-example-image{max-width:255px}
 body.rf-home-page .pl19-cta-wrap{margin-top:24px}
 body.rf-home-page .pl19-cta{width:100%;max-width:390px;min-height:61px;font-size:19px!important;padding:10px 20px;gap:13px}
 body.rf-home-page .pl19-cta img{width:29px;height:29px}
}
@media(max-width:740px){
 /* Mobile type remains a readable, centered hero; no sideways clipping. */
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage h1.pl-hero-title,
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-coursework-stage h1.pl-hero-title,
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage.pl-referat-stage h1.pl-hero-title{
    font-size:clamp(34px,8.5vw,50px)!important;line-height:1.09!important;
    overflow-wrap:break-word!important;
 }
}
@media(prefers-reduced-motion:reduce){body.rf-home-page .pl19-cta{transition:none!important}}


/* v21: moderate scale between v19 and v20, only coursework requirements */
body.rf-home-page main > section.pl19-coursework-section:not(.hero){
  padding:clamp(46px,4vw,70px) 0 clamp(52px,4.6vw,78px)!important;
}
body.rf-home-page .pl19-wrap{width:min(1800px,calc(100% - 56px))!important;max-width:none!important}
body.rf-home-page .pl19-heading{max-width:1660px!important;margin-bottom:clamp(28px,2.4vw,40px)!important}
body.rf-home-page .pl19-heading h2{font-size:clamp(36px,3.65vw,63px)!important;line-height:1.09!important;margin-bottom:13px!important}
body.rf-home-page .pl19-heading p{font-size:clamp(18px,1.35vw,24px)!important;line-height:1.42!important;max-width:1200px!important}
body.rf-home-page .pl19-type-row{gap:clamp(16px,1.5vw,26px)!important;margin-bottom:clamp(20px,1.8vw,30px)!important}
body.rf-home-page .pl19-type-card{
  grid-template-columns:clamp(92px,7.1vw,124px) minmax(0,1fr)!important;
  gap:clamp(14px,1.4vw,22px)!important;min-height:clamp(142px,9vw,166px)!important;
  padding:clamp(18px,1.6vw,27px)!important;
  border-radius:clamp(18px,1.7vw,28px)!important;
}
body.rf-home-page .pl19-type-icon{padding-right:clamp(11px,1.1vw,17px)!important}
body.rf-home-page .pl19-type-icon img{width:clamp(86px,6.6vw,108px)!important;height:clamp(86px,6.6vw,108px)!important;max-width:100%!important}
body.rf-home-page .pl19-type-card h3{font-size:clamp(23px,1.67vw,29px)!important;line-height:1.15!important;margin-bottom:6px!important}
body.rf-home-page .pl19-type-card p{font-size:clamp(16px,1.18vw,20px)!important;line-height:1.4!important}
body.rf-home-page .pl19-example{
  grid-template-columns:minmax(0,1fr) minmax(255px,.33fr)!important;
  gap:clamp(15px,1.55vw,25px)!important;
  padding:clamp(18px,1.9vw,31px)!important;
  border-radius:clamp(20px,1.7vw,29px)!important;
}
body.rf-home-page .pl19-example-intro{gap:clamp(12px,1.2vw,20px)!important;margin-bottom:clamp(15px,1.2vw,21px)!important}
body.rf-home-page .pl19-example-intro>img{width:clamp(54px,4vw,68px)!important;height:clamp(54px,4vw,68px)!important}
body.rf-home-page .pl19-example-intro h3{font-size:clamp(24px,1.85vw,32px)!important;line-height:1.14!important;margin-bottom:5px!important}
body.rf-home-page .pl19-example-intro p{font-size:clamp(16px,1.14vw,19px)!important;line-height:1.4!important}
body.rf-home-page .pl19-req-rows{gap:clamp(6px,.55vw,9px)!important}
body.rf-home-page .pl19-req-row{grid-template-columns:minmax(200px,.4fr) minmax(0,1fr)!important;min-height:clamp(50px,3.4vw,58px)!important;gap:10px!important}
body.rf-home-page .pl19-req-row dt,body.rf-home-page .pl19-req-row dd{
  font-size:clamp(16px,1.07vw,19px)!important;line-height:1.27!important;
  padding:10px clamp(12px,1vw,17px)!important;border-radius:12px!important;
}
body.rf-home-page .pl19-req-row dt{gap:11px!important}
body.rf-home-page .pl19-req-row dt img{width:clamp(27px,2vw,34px)!important;height:clamp(27px,2vw,34px)!important;flex:0 0 clamp(27px,2vw,34px)!important;object-fit:contain!important}
body.rf-home-page .pl19-example-image img{width:min(100%,430px)!important;max-height:520px!important}
body.rf-home-page .pl19-cta-wrap{margin-top:clamp(25px,2.2vw,36px)!important}
body.rf-home-page .pl19-cta{
  min-height:clamp(68px,4.7vw,80px)!important;padding:13px clamp(27px,2.8vw,46px)!important;
  font-size:clamp(21px,1.55vw,27px)!important;gap:clamp(13px,1.35vw,21px)!important;
}
body.rf-home-page .pl19-cta img{width:clamp(31px,2.2vw,39px)!important;height:clamp(31px,2.2vw,39px)!important}
@media(max-width:1100px){
  body.rf-home-page .pl19-type-card{grid-template-columns:86px minmax(0,1fr)!important;padding:18px!important}
  body.rf-home-page .pl19-type-icon img{width:77px!important;height:77px!important}
  body.rf-home-page .pl19-type-card h3{font-size:clamp(21px,2.4vw,27px)!important}
  body.rf-home-page .pl19-type-card p{font-size:clamp(15px,1.55vw,18px)!important}
  body.rf-home-page .pl19-example{grid-template-columns:minmax(0,1fr) minmax(200px,.3fr)!important}
  body.rf-home-page .pl19-req-row{grid-template-columns:minmax(175px,.4fr) minmax(0,1fr)!important}
}
@media(max-width:850px){
  body.rf-home-page .pl19-wrap{width:calc(100% - 34px)!important}
  body.rf-home-page .pl19-type-row{grid-template-columns:1fr!important}
  body.rf-home-page .pl19-example{grid-template-columns:1fr!important}
  body.rf-home-page .pl19-example-image{width:min(100%,370px)!important;margin:0 auto!important}
  body.rf-home-page .pl19-example-image img{width:100%!important;max-height:390px!important}
  body.rf-home-page .pl19-req-row{grid-template-columns:minmax(200px,.4fr) minmax(0,1fr)!important}
  body.rf-home-page .pl19-type-card{min-height:126px!important}
}
@media(max-width:540px){
  body.rf-home-page main > section.pl19-coursework-section:not(.hero){padding:39px 0 56px!important}
  body.rf-home-page .pl19-wrap{width:calc(100% - 26px)!important}
  body.rf-home-page .pl19-heading{margin-bottom:23px!important}
  body.rf-home-page .pl19-heading h2{font-size:clamp(31px,8.15vw,39px)!important;line-height:1.12!important}
  body.rf-home-page .pl19-heading p{font-size:16px!important}
  body.rf-home-page .pl19-type-row{gap:13px!important;margin-bottom:22px!important}
  body.rf-home-page .pl19-type-card{grid-template-columns:73px minmax(0,1fr)!important;gap:11px!important;min-height:120px!important;padding:13px!important;border-radius:20px!important}
  body.rf-home-page .pl19-type-icon{padding-right:8px!important}
  body.rf-home-page .pl19-type-icon img{width:66px!important;height:66px!important}
  body.rf-home-page .pl19-type-card h3{font-size:clamp(19px,5.2vw,23px)!important;margin-bottom:5px!important}
  body.rf-home-page .pl19-type-card p{font-size:14px!important;line-height:1.34!important}
  body.rf-home-page .pl19-example{padding:16px 12px!important;border-radius:20px!important}
  body.rf-home-page .pl19-example-intro{gap:10px!important;margin-bottom:17px!important;align-items:flex-start!important}
  body.rf-home-page .pl19-example-intro>img{width:46px!important;height:46px!important}
  body.rf-home-page .pl19-example-intro h3{font-size:clamp(20px,5.2vw,24px)!important}
  body.rf-home-page .pl19-example-intro p{font-size:14px!important}
  body.rf-home-page .pl19-req-rows{gap:8px!important}
  body.rf-home-page .pl19-req-row{grid-template-columns:1fr!important;gap:3px!important;min-height:0!important}
  body.rf-home-page .pl19-req-row dt,body.rf-home-page .pl19-req-row dd{padding:9px 11px!important;font-size:14px!important;min-height:37px!important}
  body.rf-home-page .pl19-req-row dt img{width:27px!important;height:27px!important;flex:0 0 27px!important}
  body.rf-home-page .pl19-example-image{width:min(100%,278px)!important;margin:6px auto 0!important}
  body.rf-home-page .pl19-example-image img{max-height:300px!important}
  body.rf-home-page .pl19-cta-wrap{margin-top:25px!important}
  body.rf-home-page .pl19-cta{width:100%!important;max-width:390px!important;min-height:66px!important;font-size:20px!important;padding:11px 20px!important;gap:12px!important}
  body.rf-home-page .pl19-cta img{width:30px!important;height:30px!important}
}
