/* pisanie-online.pl Polish landing v4: isolates fixes from legacy .format-card / .generator layout. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--pl-red:#d51c2b;--pl-ink:#0b2040;--pl-muted:#54637b;--pl-border:#dde3eb}
html:has(body.rf-home-page){overflow-x:clip}
body.rf-home-page {font-family:'Manrope','Segoe UI',system-ui,sans-serif!important;background:#fff!important;color:var(--pl-ink)}
body.rf-home-page .pl-hero-stage,body.rf-home-page .pl-generator,body.rf-home-page .pl-generator input,body.rf-home-page .pl-generator textarea,body.rf-home-page .pl-generator button{font-family:'Manrope','Segoe UI',system-ui,sans-serif!important}
/* Larger hero matching the supplied art, but without invented background shapes. */
body.rf-home-page section.hero#generator.pl-home-hero{padding:22px 0 34px!important;background:#fff!important;overflow:hidden!important}
body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage{width:min(1740px,calc(100vw - 92px))!important;max-width:none!important;min-height:710px!important;align-items:center!important}
body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-content{width:57%!important;max-width:880px!important;padding:48px 0 44px!important}
body.rf-home-page .pl-hero-title{font-family:'Manrope','Segoe UI',system-ui,sans-serif!important;font-size:clamp(65px,5.75vw,109px)!important;line-height:1.08!important;letter-spacing:-.065em!important;max-width:890px!important;margin:0 0 22px!important;font-weight:800!important;text-wrap:balance}
body.rf-home-page .pl-hero-title span{white-space:normal!important}
body.rf-home-page .pl-hero-title strong{font-weight:800!important;color:#d51c2b!important}
body.rf-home-page .pl-hero-description{font-family:inherit!important;font-size:clamp(19px,1.39vw,24px)!important;line-height:1.49!important;max-width:735px!important;margin:0 0 34px!important;color:#43536e!important}
body.rf-home-page .pl-hero-benefits{max-width:780px!important;gap:0!important;margin-bottom:39px!important;align-items:center!important}
body.rf-home-page .pl-hero-benefit,body.rf-home-page .pl-hero-benefit:not(:first-child){gap:15px!important;padding-right:12px!important}
body.rf-home-page .pl-hero-benefit:not(:first-child){padding-left:16px!important}
body.rf-home-page .pl-hero-benefit-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:76px!important;height:76px!important;flex:0 0 76px!important;border-radius:18px!important;background:#fff0f1!important}
body.rf-home-page .pl-hero-benefit-icon img{width:54px!important;height:54px!important;display:block!important;max-width:none!important;object-fit:contain!important}
body.rf-home-page .pl-hero-benefit b{font-size:clamp(17px,1.18vw,21px)!important;line-height:1.24!important;font-weight:800!important}
body.rf-home-page .pl-hero-benefit small{font-size:clamp(13px,.97vw,16px)!important;line-height:1.4!important}
body.rf-home-page .pl-hero-actions{gap:17px!important}
body.rf-home-page .pl-hero-actions a{min-height:69px!important;font-size:clamp(17px,1.25vw,21px)!important;font-weight:800!important;border-radius:18px!important;gap:14px!important}
body.rf-home-page .pl-hero-primary{min-width:305px!important}
body.rf-home-page .pl-hero-demo{min-width:310px!important}
body.rf-home-page .pl-hero-actions a img{width:32px!important;height:32px!important}
body.rf-home-page .pl-hero-visual{right:-18px!important;width:53vw!important;max-width:54%!important;bottom:0!important}
body.rf-home-page .pl-hero-visual img{width:100%;height:auto}
/* Form uses a wider canvas than legacy .shell, with explicit sizing of each child. */
body.rf-home-page section.hero#generator.pl-home-hero form#generatorForm.pl-generator{display:block!important;position:relative!important;left:50%!important;transform:translateX(-50%)!important;width:min(1580px,calc(100vw - 64px))!important;max-width:none!important;margin:0 0 12px!important;padding:38px 40px 43px!important;border-radius:32px!important;background:#fff!important;border:1px solid #eef0f4!important;box-shadow:0 20px 65px rgba(22,39,75,.10)!important;overflow:visible!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-section{min-width:0!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-section+.pl-g-section{margin-top:39px!important}
body.rf-home-page #generatorForm.pl-generator h2.pl-g-heading{font-family:inherit!important;font-size:clamp(23px,1.48vw,29px)!important;font-weight:800!important;display:flex!important;align-items:center!important;gap:18px!important;line-height:1.28!important;margin:0 0 18px!important;text-align:left!important}
body.rf-home-page #generatorForm.pl-generator h2.pl-g-heading img{width:43px!important;height:43px!important;flex:0 0 43px!important;max-width:none!important;display:block!important;object-fit:contain!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-prompt-frame{border-radius:25px!important;border-width:2px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-brief-wrap textarea{height:135px!important;min-height:135px!important;font-size:21px!important;line-height:1.5!important;padding:24px 28px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-typed{font-size:20px!important;left:28px!important;top:25px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-input-foot{font-size:15px!important;min-height:53px!important;padding:10px 28px!important}
/* Legacy .format-card sets flex-direction:column; fix it, and prevent child text from escaping the card. */
body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:16px!important;overflow:visible!important;padding:3px 0 4px!important;width:100%!important;scroll-snap-type:none!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type{box-sizing:border-box!important;appearance:none!important;position:relative!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:16px!important;width:100%!important;min-width:0!important;min-height:105px!important;height:auto!important;padding:21px 17px!important;margin:0!important;border:1.5px solid #d9e0ea!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;text-align:left!important;text-decoration:none!important;cursor:pointer!important;color:#0b2040!important;overflow:visible!important;transform:none!important;transition:border-color .17s,box-shadow .17s,background .17s!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type:hover{border-color:#e1636c!important;box-shadow:0 8px 20px rgba(13,34,67,.06)!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type.active{border:2px solid #dd202d!important;background:#fff6f6!important;box-shadow:0 5px 18px rgba(210,25,40,.09)!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type:focus-visible{outline:3px solid #ef8590!important;outline-offset:3px!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type>img{position:static!important;display:block!important;flex:0 0 62px!important;width:62px!important;height:62px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:0!important;align-self:center!important;transform:none!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type-text{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:0!important;padding:0!important;position:static!important;text-align:left!important;overflow-wrap:anywhere!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type-text b{display:block!important;position:static!important;margin:0!important;padding:0!important;font-size:clamp(16px,1.12vw,19px)!important;line-height:1.28!important;font-weight:800!important;white-space:normal!important;letter-spacing:-.025em!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type-text small{display:block!important;position:static!important;margin:0!important;padding:0!important;font-size:clamp(14px,.98vw,17px)!important;line-height:1.3!important;color:#657187!important;white-space:normal!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type .format-check{position:absolute!important;top:-9px!important;right:-7px!important;z-index:2!important;display:none!important;width:39px!important;height:39px!important;border-radius:50%!important;font-size:23px!important;align-items:center!important;justify-content:center!important;color:#fff!important;background:#d71d2b!important;box-shadow:0 4px 10px rgba(199,20,35,.22)!important;pointer-events:none!important}
body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type.active .format-check{display:flex!important}
/* Settings should not wrap or collide with the title row. */
body.rf-home-page #generatorForm.pl-generator .pl-g-options-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:18px 26px!important;justify-content:space-between!important;margin-bottom:24px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-options-copy{flex:1 1 500px!important;min-width:0!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-options-copy>p{font-size:16px!important;margin:4px 0 0 61px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker{margin-left:auto!important;max-width:100%;min-height:76px!important;border-radius:17px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker input{font-family:inherit!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary{min-height:81px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary strong{font-size:18px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary>img{width:40px!important;height:40px!important;flex:0 0 40px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-submit-wrap{padding-top:38px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-submit{min-height:78px!important;font-size:clamp(22px,1.75vw,29px)!important;max-width:560px!important;border-radius:21px!important}
body.rf-home-page #generatorForm.pl-generator .pl-g-submit img{width:49px!important;height:49px!important;max-width:none!important;object-fit:contain!important}
/* Laptop / tablet: 2 columns prevent squeezing long Polish labels. */
@media(max-width:1350px){
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage{min-height:630px!important;width:calc(100vw - 64px)!important}
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-content{width:56%!important}
 body.rf-home-page .pl-hero-title{font-size:clamp(57px,5.4vw,83px)!important}
 body.rf-home-page .pl-hero-visual{width:52vw!important;max-width:53%!important}
 body.rf-home-page .pl-hero-benefit-icon{width:64px!important;height:64px!important;flex-basis:64px!important}
 body.rf-home-page .pl-hero-benefit-icon img{width:45px!important;height:45px!important}
 body.rf-home-page .pl-hero-benefit{gap:9px!important;padding-right:8px!important}
 body.rf-home-page .pl-hero-benefit b{font-size:16px!important}
 body.rf-home-page .pl-hero-benefit small{font-size:12px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type{min-height:104px!important}
}
@media(max-width:960px){
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage{width:calc(100vw - 44px)!important;min-height:570px!important}
 body.rf-home-page .pl-hero-title{font-size:clamp(49px,5.9vw,70px)!important}
 body.rf-home-page .pl-hero-description{font-size:17px!important}
 body.rf-home-page .pl-hero-actions{gap:9px!important}
 body.rf-home-page .pl-hero-actions a{min-width:0!important;min-height:55px!important;font-size:15px!important;gap:8px!important}
 body.rf-home-page .pl-hero-benefit-icon{width:49px!important;height:49px!important;flex-basis:49px!important;border-radius:12px!important}
 body.rf-home-page .pl-hero-benefit-icon img{width:38px!important;height:38px!important}
 body.rf-home-page .pl-hero-benefit:not(:first-child){padding-left:8px!important}
 body.rf-home-page section.hero#generator.pl-home-hero form#generatorForm.pl-generator{width:calc(100vw - 38px)!important;padding:29px 28px 34px!important}
}
/* Mobile: full width form and *horizontal*, touch-scroll work type carousel. */
@media(max-width:740px){
 body.rf-home-page section.hero#generator.pl-home-hero{padding-top:10px!important}
 body.rf-home-page section.hero#generator.pl-home-hero .hero-inner{width:calc(100% - 12px)!important;max-width:none!important}
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-stage{width:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;left:auto!important;transform:none!important}
 body.rf-home-page section.hero#generator.pl-home-hero .pl-hero-content{width:100%!important;max-width:none!important;padding:22px 14px 5px!important}
 body.rf-home-page .pl-hero-title{font-size:clamp(43px,10vw,70px)!important;letter-spacing:-.058em!important;line-height:1.1!important;text-align:center!important;margin-bottom:18px!important}
 body.rf-home-page .pl-hero-description{font-size:clamp(16px,3.5vw,20px)!important;line-height:1.53!important;text-align:center!important;margin:0 auto 26px!important}
 body.rf-home-page .pl-hero-benefits{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:100%!important;margin:0 auto 28px!important;justify-items:center!important;gap:7px!important}
 body.rf-home-page .pl-hero-benefit,body.rf-home-page .pl-hero-benefit:not(:first-child){display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:8px!important;padding:0 2px!important}
 body.rf-home-page .pl-hero-benefit:not(:first-child)::before{left:-5px!important;top:4px!important;height:85%!important}
 body.rf-home-page .pl-hero-benefit-icon{width:59px!important;height:59px!important;flex:0 0 59px!important;border-radius:15px!important}
 body.rf-home-page .pl-hero-benefit-icon img{width:47px!important;height:47px!important}
 body.rf-home-page .pl-hero-benefit>span:last-child{align-items:center!important;text-align:center!important}
 body.rf-home-page .pl-hero-benefit b{font-size:14px!important}
 body.rf-home-page .pl-hero-benefit small{font-size:11.8px!important;line-height:1.35!important}
 body.rf-home-page .pl-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 6px!important}
 body.rf-home-page .pl-hero-actions a{min-width:0!important;width:100%!important;font-size:clamp(13px,2.4vw,16px)!important;padding:0 8px!important;min-height:59px!important}
 body.rf-home-page .pl-hero-actions a img{width:25px!important;height:25px!important}
 body.rf-home-page .pl-hero-visual{position:relative!important;width:100%!important;max-width:660px!important;margin:10px auto 6px!important;right:auto!important;bottom:auto!important}
 body.rf-home-page section.hero#generator.pl-home-hero form#generatorForm.pl-generator{left:50%!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:none!important;padding:26px 18px 29px!important;border-radius:25px!important}
 body.rf-home-page #generatorForm.pl-generator h2.pl-g-heading{font-size:21px!important;gap:11px!important;line-height:1.3!important}
 body.rf-home-page #generatorForm.pl-generator h2.pl-g-heading img{width:35px!important;height:35px!important;flex-basis:35px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-section+.pl-g-section{margin-top:30px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-brief-wrap textarea{height:132px!important;min-height:132px!important;padding:18px!important;font-size:17px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-typed{left:18px!important;top:18px!important;font-size:17px!important;white-space:normal!important;max-width:calc(100% - 36px)!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-input-foot{padding:9px 13px!important;gap:10px!important;font-size:12px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid{display:grid!important;grid-template-columns:none!important;grid-template-rows:1fr!important;grid-auto-flow:column!important;grid-auto-columns:min(79vw,290px)!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;overscroll-behavior-x:contain!important;scrollbar-width:thin!important;scroll-padding-inline:4px!important;touch-action:pan-x!important;padding:12px 6px 15px!important;-webkit-overflow-scrolling:touch!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;min-height:104px!important;height:104px!important;width:100%!important;scroll-snap-align:start!important;padding:15px 14px!important;gap:12px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type>img{width:55px!important;height:55px!important;flex-basis:55px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type-text b{font-size:16px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip .pl-g-type-text small{font-size:13px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-options-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:19px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-options-copy{flex:0 1 auto!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-options-copy>p{margin:5px 0 0 46px!important;font-size:13px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker{margin:0!important;align-self:stretch!important;justify-content:space-between!important;gap:12px!important;min-height:65px!important;padding:8px 12px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker span:first-child{font-size:14px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker input{width:86px!important;height:46px!important;font-size:19px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary{gap:9px!important;padding:13px!important;min-height:66px!important;flex-wrap:wrap!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary strong{font-size:14px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary small{font-size:12px!important;margin-left:0!important;flex:1 0 150px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details>summary>img{width:31px!important;height:31px!important;flex:0 0 31px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details .nr-title-fields{grid-template-columns:1fr!important;padding:14px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-title-details .nr-title-wide{grid-column:span 1!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-submit-wrap{padding-top:26px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-submit{min-height:66px!important;font-size:19px!important;width:100%!important;max-width:none!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-submit img{width:40px!important;height:40px!important}
}
@media(max-width:410px){
 body.rf-home-page .pl-hero-title{font-size:clamp(39px,9.8vw,45px)!important}
 body.rf-home-page .pl-hero-actions{grid-template-columns:1fr!important}
 body.rf-home-page .pl-hero-benefit-icon{width:52px!important;height:52px!important;flex-basis:52px!important}
 body.rf-home-page .pl-hero-benefit-icon img{width:43px!important;height:43px!important}
 body.rf-home-page #generatorForm.pl-generator h2.pl-g-heading{font-size:19px!important}
 body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker{gap:6px!important}
 body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid{grid-auto-columns:min(81vw,282px)!important}
}
