/* Shared Polish typography and layout. Keep this after the legacy CSS. */
html[lang="pl"] {
    --pl-ink: #202630;
    --pl-muted: #59616d;
    --pl-border: #e3e6eb;
    --pl-accent: #d94c19;
    --pl-header-height: 112px;
    scroll-padding-top: calc(var(--pl-header-height) + 24px);
}
html[lang="pl"] body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--pl-ink);
    background: #f7f8fa;
    -webkit-text-size-adjust: 100%;
}
html[lang="pl"] main { background: #f7f8fa; overflow: clip; }
html[lang="pl"] :is(button, input, select, textarea) { font-family: inherit; }
html[lang="pl"] :is(h1, h2, h3, h4) {
    color: var(--pl-ink); font-family: inherit; font-weight: 700;
    letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word;
}
html[lang="pl"] h1 { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.16; margin: 0 0 20px; }
html[lang="pl"] h2 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.25; }
html[lang="pl"] h3 { font-size: 23px; line-height: 1.35; }
html[lang="pl"] h4 { font-size: 20px; line-height: 1.4; }
html[lang="pl"] p { font-size: 16px; line-height: 1.75; color: var(--pl-muted); margin: 0 0 20px; }
html[lang="pl"] a { color: var(--pl-accent); text-underline-offset: 3px; }
html[lang="pl"] :is(a, button, input, summary):focus-visible { outline: 3px solid #ac3911; outline-offset: 4px; }
html[lang="pl"] .container { width: 100%; max-width: 1248px; padding-inline: 32px; }
html[lang="pl"] section { margin: 0; }
html[lang="pl"] .content-wrap { padding: 0; }
html[lang="pl"] .orange-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-height: 48px; padding: 12px 24px;
    font-size: 15px; line-height: 1.4; font-weight: 600;
    text-transform: none; letter-spacing: 0; color: #fff;
    background: var(--pl-accent); border: 1px solid var(--pl-accent); border-radius: 10px;
}
html[lang="pl"] .orange-btn:hover { background: #b83e14; border-color: #b83e14; color: #fff; }

/* Header includes the ticker in normal flow; no guessed content offsets. */
html[lang="pl"] header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--pl-border); }
/* Cancel the legacy first-block offset intended for the old fixed header. */
html[lang="pl"] main > header ~ section:first-of-type,
html[lang="pl"] main > header ~ div:first-of-type { top: auto; margin-bottom: 0; }
html[lang="pl"] header .header-wrap.desk { gap: 20px; min-height: 80px; padding: 16px 0; }
html[lang="pl"] header .logo-text { font-size: 22px; gap: 9px; letter-spacing: -.025em; }
html[lang="pl"] header .logo { flex: 0 0 auto; }
html[lang="pl"] header .header-wrap.desk .menu { gap: 4px; margin-left: auto; }
html[lang="pl"] header .header-wrap.desk .menu :is(a, .nav-dropdown__toggle) {
    font-size: 14px; line-height: 1.4; font-weight: 500; padding: 10px 9px;
    white-space: nowrap; color: var(--pl-ink);
}
html[lang="pl"] header .header-wrap.desk .orange-btn { min-width: 118px; min-height: 44px; padding: 10px 16px; font-size: 14px; }
html[lang="pl"] .nav-dropdown__chevron { width: 10px; height: 6px; flex: 0 0 auto; }
html[lang="pl"] .nav-dropdown__menu { min-width: 240px; border: 1px solid var(--pl-border); box-shadow: 0 12px 32px #20263014; }
html[lang="pl"] .nav-dropdown:focus-within .nav-dropdown__menu { visibility: visible; opacity: 1; transform: none; }
html[lang="pl"] header .header-wrap.desk .nav-dropdown__menu a { white-space: normal; }
html[lang="pl"] .mobile-menu__wrap { top: var(--pl-header-height); height: calc(100dvh - var(--pl-header-height)); overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
html[lang="pl"] .mobile-menu__wrap .menu { align-items: stretch; gap: 6px; margin: 0; }
html[lang="pl"] .mobile-menu__wrap .menu a { font-size: 15px; line-height: 1.5; text-align: left; padding: 10px 12px; margin: 0; }
html[lang="pl"] .nav-dropdown--mob { align-items: stretch; padding-top: 8px; border-top: 1px solid var(--pl-border); }
html[lang="pl"] .nav-dropdown--mob .nav-dropdown__toggle { font-size: 13px; font-weight: 700; color: var(--pl-muted); padding: 8px 12px; }
html[lang="pl"] .nav-dropdown--mob .nav-dropdown__menu { min-width: 0; width: 100%; border: 0; padding: 0 0 8px 12px; box-shadow: none; }
html[lang="pl"] .mobile-menu__wrap .header-btn__wrap { margin: 20px 0 0; }

/* Homepage. */
html[lang="pl"] .hero.hero-v_2 { margin: 0; padding: 64px 0 48px; background: linear-gradient(140deg, #fff 35%, #fff2e9); }
html[lang="pl"] .hero.hero-v_2 .content-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
html[lang="pl"] .hero .half { width: auto; min-width: 0; margin: 0; }
html[lang="pl"] .hero-ai-title { max-width: 15ch; font-size: clamp(34px, 4vw, 54px); line-height: 1.12; }
html[lang="pl"] .hero.hero-v_2 .half.left > p:first-of-type { font-size: 18px; line-height: 1.7; max-width: 52ch; }
html[lang="pl"] .hero-benefits { list-style: none; margin: 24px 0; padding: 0; }
html[lang="pl"] .hero-benefits li { position: relative; padding-left: 28px; margin: 12px 0; font-size: 15px; line-height: 1.6; }
html[lang="pl"] .hero-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--pl-accent); font-weight: 700; }
html[lang="pl"] .pl-risk { font-size: 13px; line-height: 1.7; max-width: 60ch; }
html[lang="pl"] .calc-wrap { display: block; width: 100%; padding: 30px; background: #fff; border: 1px solid var(--pl-border); border-radius: 20px; box-shadow: 0 16px 48px #2026300a; }
html[lang="pl"] .calc-wrap > h3 { margin: 0 0 24px; font-size: 24px; }
/* The shared stylesheet hard-codes this form skin with !important. */
html[lang="pl"] .hero.hero-v_2 .calc-wrap {
    background: #fff !important; padding: 30px !important;
    margin: 0 !important; max-width: none !important;
}
html[lang="pl"] .hero.hero-v_2 .calc-wrap h3 { color: var(--pl-ink); text-align: left; }
html[lang="pl"] .hero.hero-v_2 .calc-wrap .form_text_bottom p,
html[lang="pl"] .form_text_bottom p { color: var(--pl-muted); font-size: 12px; line-height: 1.7; margin: 16px 0 12px; }
html[lang="pl"] .form_text_bottom a { color: var(--pl-accent); }
html[lang="pl"] .deposit-withdrawal-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }
html[lang="pl"] #registration-form { width: 100%; }
html[lang="pl"] #registration-form .newRegForm { font-family: inherit; }
html[lang="pl"] #registration-form .newRegForm input:not([type="submit"]),
html[lang="pl"] .auth-form__input { min-height: 48px; font-size: 16px; line-height: 1.5; padding-top: 12px; padding-bottom: 12px; color: var(--pl-ink); }
html[lang="pl"] #registration-form .newRegForm :is(button[type="submit"], input[type="submit"], .submit) { min-height: 48px; font-family: inherit; font-size: 16px; line-height: 1.4; text-transform: none; }
html[lang="pl"] .pl-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 40px 0; }
html[lang="pl"] .pl-link { display: block; padding: 28px; border: 1px solid var(--pl-border); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
html[lang="pl"] .pl-link h3 { margin: 0 0 12px; font-size: 20px; }
html[lang="pl"] .pl-link p { font-size: 15px; margin: 0; }
html[lang="pl"] .pl-link:hover { border-color: #d9a38d; box-shadow: 0 8px 24px #20263008; }
html[lang="pl"] .home-calc { max-width: 1248px; padding: 24px 32px 48px; margin: auto; }
html[lang="pl"] .calc-widget { margin: 0; }
html[lang="pl"] .calc-widget__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; }
html[lang="pl"] .calc-widget__subtitle { font-size: 16px; line-height: 1.7; }
html[lang="pl"] .calc-widget__disclaimer { font-size: 13px; line-height: 1.7; }
html[lang="pl"] .usteps { padding: 56px 0; background: #fff; border-block: 1px solid var(--pl-border); }
html[lang="pl"] .usteps__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
html[lang="pl"] .usteps__title { margin-bottom: 28px; }
html[lang="pl"] .usteps__list { list-style: none; padding: 0; margin: 0; }
html[lang="pl"] .ustep { display: flex; align-items: start; gap: 20px; margin: 24px 0 0; }
html[lang="pl"] .ustep__num { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #fff0e8; color: #b83e14; font-size: 14px; font-weight: 700; }
html[lang="pl"] .ustep__name { font-size: 18px; margin-bottom: 8px; }
html[lang="pl"] .ustep__text { font-size: 15px; margin: 0; }
html[lang="pl"] .unotice { padding: 28px; background: #fff8f2; border: 1px solid #f0d9c9; border-radius: 16px; }
html[lang="pl"] .unotice h3 { font-size: 20px; margin-bottom: 14px; }
html[lang="pl"] .unotice :is(p, a) { font-size: 14px; }
html[lang="pl"] .ucommit { display: block; padding: 20px 0; font-size: 14px; font-weight: 600; }
html[lang="pl"] .cards-img { padding: 56px 0 16px; }
html[lang="pl"] .cards-img .top { max-width: 640px; margin-bottom: 28px; }
html[lang="pl"] .cards-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
html[lang="pl"] .card-img { display: flex; gap: 24px; padding: 28px; border: 1px solid var(--pl-border); border-radius: 16px; background: #fff; }
html[lang="pl"] .card-img .wrap-img { flex: 0 0 64px; width: 64px; }
html[lang="pl"] .card-img img { width: 64px; height: 64px; object-fit: contain; }
html[lang="pl"] .card-img h4 { margin-bottom: 12px; }
html[lang="pl"] .card-img p { font-size: 15px; margin: 0; }
html[lang="pl"] .cta { padding: 40px 0; background: #fff0e8; }
html[lang="pl"] .cta .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
html[lang="pl"] .cta h3 { max-width: 650px; }
html[lang="pl"] .cta .orange-btn { flex-shrink: 0; }

/* Documents, FAQ and policies use the same readable column. */
html[lang="pl"] .hero:not(.hero-v_2) { padding: 56px 0 32px; margin: 0; background: transparent; }
html[lang="pl"] .hero:not(.hero-v_2) .container { max-width: 904px; }
html[lang="pl"] .hero:not(.hero-v_2) h1 { margin-bottom: 0; }
html[lang="pl"] .pl-page-heading p { margin: 16px 0 0; font-size: 18px; max-width: 65ch; }
html[lang="pl"] .pl-document { max-width: 840px; margin: 0 auto 64px; padding: 36px 40px; background: #fff; border: 1px solid var(--pl-border); border-radius: 18px; }
html[lang="pl"] .pl-document__section { margin-bottom: 28px; }
html[lang="pl"] .pl-document h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.4; }
html[lang="pl"] .pl-document p { margin: 0 0 20px; }
html[lang="pl"] .pl-document__section p { margin-bottom: 0; }
html[lang="pl"] .pl-document .orange-btn { margin: 8px 0 24px; text-decoration: none; }
html[lang="pl"] .pl-document .pl-document__related { border-top: 1px solid var(--pl-border); padding-top: 24px; margin: 28px 0 0; font-size: 14px; }
html[lang="pl"] .terms { padding: 56px 0 64px; }
html[lang="pl"] .terms .container { max-width: 904px; }
html[lang="pl"] .terms .text { padding: 36px 40px; border: 1px solid var(--pl-border); border-radius: 18px; background: #fff; }
html[lang="pl"] .terms h1 { font-size: clamp(30px, 3.7vw, 42px); margin: 0 0 28px; }
html[lang="pl"] .terms .bold-title { color: var(--pl-ink); font-size: 21px; line-height: 1.4; font-weight: 700; margin: 32px 0 12px; }
html[lang="pl"] .terms p:last-child { margin-bottom: 0; }
html[lang="pl"] .pl-faq { border-bottom: 1px solid var(--pl-border); padding: 22px 0; }
html[lang="pl"] .pl-faq:first-child { padding-top: 0; }
html[lang="pl"] .pl-faq summary { font-weight: 600; font-size: 18px; line-height: 1.5; cursor: pointer; padding-right: 12px; }
html[lang="pl"] .pl-faq summary::marker { color: var(--pl-accent); }
html[lang="pl"] .pl-faq p { margin: 16px 0 0; }
html[lang="pl"] .pl-faq + p { margin-top: 24px; }
html[lang="pl"] .auth-page { padding: 56px 0 64px; background: transparent; }
html[lang="pl"] .auth-card { max-width: 480px; padding: 32px; background: #fff; border: 1px solid var(--pl-border); box-shadow: 0 12px 40px #20263008; }
html[lang="pl"] .auth-tabs { background: #f0f2f5; border-radius: 12px; gap: 4px; }
html[lang="pl"] .auth-tab { border-radius: 9px; color: var(--pl-muted); font-size: 13px; line-height: 1.5; }
html[lang="pl"] .auth-tab:hover { color: var(--pl-ink); }
html[lang="pl"] .auth-tab.is-active { background: var(--pl-accent); color: #fff; }
html[lang="pl"] .auth-panel__title { color: var(--pl-ink); font-size: 27px; line-height: 1.3; }
html[lang="pl"] .auth-panel__text { color: var(--pl-muted); font-size: 14px; }
html[lang="pl"] .auth-form__input { background: #fff; border-color: #cdd2da; border-radius: 10px; }
html[lang="pl"] .auth-form__input::placeholder { color: #68717e; }
html[lang="pl"] .auth-form__input:focus { background: #fff; border-color: var(--pl-accent); }
html[lang="pl"] .auth-card .form_text_bottom p { color: var(--pl-muted); }
html[lang="pl"] .auth-card .pay-row { padding: 12px; background: #28303a; border-radius: 10px; }
html[lang="pl"] .auth-card .pay-row .pi { max-width: 68px; max-height: 24px; }

/* Footer columns no longer inherit old two-column widths. */
html[lang="pl"] footer { padding: 48px 0 28px; border-top: 1px solid var(--pl-border); }
html[lang="pl"] footer .footer-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 32px 48px; }
html[lang="pl"] footer .logo.two-col { display: flex; flex-direction: column; align-items: flex-start; width: auto; margin: 0; gap: 16px; }
html[lang="pl"] footer .logo.two-col .logo-text { padding: 0; font-size: 23px; }
html[lang="pl"] footer .logo.two-col p { font-size: 14px; line-height: 1.7; font-weight: 400; width: auto; }
html[lang="pl"] footer .footer-wrap:has(.footer-cols) .footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; max-width: none; width: 100%; }
html[lang="pl"] footer .footer-cols .footer-col { min-width: 0; }
html[lang="pl"] footer .footer-col__title { font-size: 12px; line-height: 1.5; letter-spacing: .02em; margin-bottom: 16px; }
html[lang="pl"] footer .footer-cols .footer-col a { font-size: 13px; line-height: 1.6; hyphens: none; color: var(--pl-muted); }
html[lang="pl"] footer .footer-wrap .copyright { grid-column: 1 / -1; width: auto; margin: 0; padding-top: 24px; border-top: 1px solid var(--pl-border); text-align: left; font-size: 12px; }
html[lang="pl"] footer .footer-disclaimer { margin: 20px 0 0; padding-top: 20px; font-size: 12px; line-height: 1.8; color: var(--pl-muted); border-color: var(--pl-border); }
html[lang="pl"] footer .soc-links { gap: 12px; }
html[lang="pl"] footer .footer-wrap:has(.footer-cols) .logo.two-col .soc-links { display: flex; margin-top: 0; }
html[lang="pl"] footer .soc-links a { width: 36px; height: 36px; padding: 10px; }
html[lang="pl"] footer .footer-wrap > .soc-links { display: none; }

@media (max-width: 1100px) and (min-width: 1023px) {
    html[lang="pl"] header .header-wrap.desk { gap: 12px; }
    html[lang="pl"] header .header-wrap.desk .menu :is(a, .nav-dropdown__toggle) { font-size: 13px; padding-inline: 6px; }
}
@media (max-width: 1022px) {
    html[lang="pl"] .hero.hero-v_2 .content-wrap { gap: 32px; }
    html[lang="pl"] header .header-wrap.mob { min-height: 68px; padding: 16px 0; }
    html[lang="pl"] header .header-wrap.mob .hamburger { width: 24px; height: 20px; margin-left: auto; }
    html[lang="pl"] .usteps__grid { gap: 32px; }
    html[lang="pl"] footer .footer-wrap { grid-template-columns: 1fr; }
    html[lang="pl"] footer .logo.two-col { max-width: 360px; }
}
@media (max-width: 767px) {
    html[lang="pl"] .container { padding-inline: 20px; }
    html[lang="pl"] .hero.hero-v_2 { padding: 36px 0; }
    html[lang="pl"] .hero.hero-v_2 .content-wrap,
    html[lang="pl"] .usteps__grid,
    html[lang="pl"] .cards-row,
    html[lang="pl"] .pl-links { grid-template-columns: 1fr; gap: 20px; }
    html[lang="pl"] .hero-ai-title { max-width: 20ch; }
    html[lang="pl"] .hero.hero-v_2 .half.left > p:first-of-type { font-size: 16px; }
    html[lang="pl"] .calc-wrap { padding: 24px 20px; }
    html[lang="pl"] .hero.hero-v_2 .calc-wrap { padding: 24px 20px !important; }
    html[lang="pl"] .calc-wrap > h3 { font-size: 21px; }
    html[lang="pl"] .pl-links { padding: 28px 0; }
    html[lang="pl"] .pl-link { padding: 24px; }
    html[lang="pl"] .home-calc { padding: 16px 20px 36px; }
    html[lang="pl"] .usteps { padding: 36px 0; }
    html[lang="pl"] .ustep { gap: 14px; }
    html[lang="pl"] .usteps__aside { margin-top: 12px; }
    html[lang="pl"] .cards-img { padding: 36px 0 8px; }
    html[lang="pl"] .card-img { padding: 24px; gap: 16px; }
    html[lang="pl"] .card-img .wrap-img { flex-basis: 44px; width: 44px; }
    html[lang="pl"] .card-img img { width: 44px; height: 44px; }
    html[lang="pl"] .cta .row { flex-direction: column; align-items: flex-start; gap: 24px; }
    html[lang="pl"] .hero:not(.hero-v_2) { padding: 36px 0 24px; }
    html[lang="pl"] .pl-page-heading p { font-size: 16px; }
    html[lang="pl"] .pl-document { margin: 0 20px 40px; padding: 24px 20px; border-radius: 14px; }
    html[lang="pl"] .pl-document h2 { font-size: 21px; }
    html[lang="pl"] .terms { padding: 28px 0 40px; }
    html[lang="pl"] .terms .text { padding: 24px 20px; border-radius: 14px; }
    html[lang="pl"] .terms h1 { font-size: 30px; }
    html[lang="pl"] .terms .bold-title { font-size: 19px; }
    html[lang="pl"] .pl-faq summary { font-size: 16px; }
    html[lang="pl"] .auth-page { padding: 32px 0 40px; }
    html[lang="pl"] .auth-card { padding: 24px 20px; }
    html[lang="pl"] .auth-panel__title { font-size: 24px; }
    html[lang="pl"] footer { padding-top: 36px; }
    html[lang="pl"] footer .footer-wrap:has(.footer-cols) .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html[lang="pl"] *, html[lang="pl"] *::before, html[lang="pl"] *::after { scroll-behavior: auto !important; transition: none !important; }
}
