/* Final layout layer for the homepage and subject landings. */
html:not([data-theme="light"]) .baza-refined { --bg:#10171d; --surface:#0c2731; --surface2:#0e2d39; --border:#1b3640; --border-bright:#34515b; --text:#f2f6f8; --text-dim:#a2b1c3; --text-muted:#a2b1c3; --cyan:#41b2ac; }
.baza-refined { line-height:1.6; }
.baza-refined h1,.baza-refined h2,.baza-refined h3 { overflow-wrap:break-word; text-wrap:balance; }
.baza-refined :is(.card,.feature-card,.seo-card,.related-card,.hero-layout-main,.hero-main) { min-width:0; }
.baza-refined.has-shared-shell .explorer-bar { position:absolute; }
.baza-home::before { opacity:.25; }
.baza-home .hero { min-height:0; padding:154px 32px 64px; }
.baza-home .hero-layout-grid { max-width:1120px; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:72px; }
.baza-home .hero-layout-title { font-size:clamp(34px,4.3vw,56px); line-height:1.1; font-weight:700; max-width:650px; }
.baza-home .hero-layout-lead { font-size:22px; line-height:1.4; margin-top:24px; }
.baza-home .hero-layout-copy { font-size:16px; line-height:1.8; max-width:540px; color:var(--text-dim); }
.baza-home .hero-layout-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:28px; }
.baza-home .hero-layout-btn { border-radius:10px; background:#009287; color:#fff; box-shadow:none; padding:15px 24px; }
.baza-home .home-secondary-action { color:var(--text); font-size:14px; text-decoration:none; padding:10px 0; border-bottom:1px solid var(--border-bright); }
.baza-home .hero-layout-proof { margin-top:14px; color:var(--text-dim); font-size:13px; }
.baza-home .hero-layout-phone { background:var(--bg); border:1px solid var(--border-bright); border-radius:24px; padding:28px 22px; box-shadow:0 20px 60px #0002; animation:none; }
.baza-home .hero-layout-phone::before { display:none; }
.baza-home .hero-layout-phone-chip { border:0; background:none; color:var(--cyan); letter-spacing:.09em; padding:0; margin:0 0 12px; font-size:11px; }
.baza-home .hero-layout-phone-title { text-align:left; font-weight:600; font-size:26px; line-height:1.3; }
.baza-home .hero-layout-phone-list { margin-top:22px; }
.baza-home .hero-layout-phone-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:16px 14px; text-align:left; transition:border-color .2s,transform .2s; }
.baza-home .hero-layout-phone-card:hover { border-color:var(--cyan); transform:translateX(3px); }
.baza-home .hero-layout-subject { font-size:17px; font-weight:600; }
.baza-home .hero-layout-desc { font-size:13px; line-height:1.5; color:var(--text-dim); }
.baza-home .hero-layout-dock { max-width:1120px; margin:0 auto 28px; background:transparent; border:0; box-shadow:none; }
.baza-home section { scroll-margin-top:90px; }
.baza-home #co-to-baza { padding:48px 24px 64px; }
.baza-home .home-how { max-width:1120px; }
.home-section-heading { max-width:650px; margin-bottom:32px; }
.baza-home .home-kicker { color:var(--cyan); font-size:12px; letter-spacing:.12em; font-weight:600; margin-bottom:12px; }
.home-section-heading h2 { font-size:clamp(26px,3vw,36px); font-weight:600; line-height:1.25; margin-bottom:16px; }
.home-section-heading > p:last-child { color:var(--text-dim); font-size:16px; }
.home-step-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.home-step { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:26px; border:1px solid var(--border); background:var(--surface); border-radius:16px; }
.home-step-number { color:var(--cyan); font-size:13px; font-weight:600; padding:5px 10px; border:1px solid var(--border-bright); border-radius:7px; margin-bottom:22px; }
.home-step h3 { font-size:23px; font-weight:600; line-height:1.3; margin:0 0 12px; white-space:normal; }
.home-step p { color:var(--text-dim); font-size:15px; line-height:1.75; margin:0 0 24px; }
.home-step a { margin-top:auto; color:var(--cyan); font-size:14px; text-decoration:none; font-weight:500; }
.home-step a:hover { text-decoration:underline; }
.baza-home :is(.section-title,.seo-wrap > h2,.testimonials-head h2,.mission-content h2,.explorer-cta h2) { font-size:clamp(26px,3vw,36px); font-weight:600; line-height:1.25; }
.baza-home :is(.feature-card p,.seo-card p,.section-subtitle,.testimonial-quote,.mission-content p,.explorer-cta p) { color:var(--text-dim); line-height:1.75; }
.baza-home .feature-card h3,.baza-home .seo-card h3 { font-weight:600; font-size:20px; line-height:1.35; }
.baza-home .feature-card::after { display:none; }
.baza-home .feature-card { padding:24px; }
.baza-home :is(.hero-layout-stat-float,.hero-layout-title .title-brand) { animation:none; }
.baza-refined a:focus-visible,.baza-refined button:focus-visible { outline:3px solid #41b2ac; outline-offset:4px; }
.baza-subject .hero-layout { gap:40px; }
.baza-subject .hero-main h1 { font-size:clamp(30px,4vw,44px); line-height:1.2; font-weight:650; }
.baza-subject .lead { line-height:1.75; }
.baza-subject .card { border-radius:16px; }
.baza-subject .study-demo { margin-top:40px; }
.baza-subject .demo-heading h2 { font-weight:600; }
.baza-subject .demo-interactive h3 { font-weight:500 !important; letter-spacing:0; text-wrap:pretty; }
.baza-subject .demo-stage[data-stage="0"] h3 { margin-bottom:16px; }
.baza-subject .demo-summary p { font-size:14px; }
html[data-theme="light"] .home-step { background:#fff; }
html[data-theme="light"] .baza-home .hero-layout-phone { background:#f8f9fb; }
@media(max-width:900px) { .baza-home .hero-layout-grid { gap:32px; grid-template-columns:minmax(0,1fr); }.baza-home .hero-layout-phone-zone { max-width:560px; width:100%; justify-self:center; }.home-step-grid { gap:14px; }.home-step { padding:20px; }.home-step h3 { font-size:21px; } }
@media(max-width:640px) { .baza-home .hero { padding:124px 20px 32px; }.baza-home .hero-layout-title { font-size:34px; }.baza-home .hero-layout-lead { font-size:20px; }.baza-home .hero-layout-copy { font-size:15px; }.baza-home .hero-layout-actions { gap:12px; }.baza-home .hero-layout-btn { width:100%; text-align:center; }.baza-home .home-secondary-action { margin:auto; }.baza-home .hero-layout-phone { border-radius:18px; padding:22px; }.home-step-grid { grid-template-columns:minmax(0,1fr); }.home-step { padding:24px; }.home-step-number { margin-bottom:16px; }.home-step h3 { font-size:24px; }.baza-home #co-to-baza { padding:32px 20px 40px; }.home-section-heading { margin-bottom:24px; }.baza-subject .demo-steps li { flex-direction:column; align-items:flex-start; gap:6px; font-size:11px; }.baza-subject .demo-steps { gap:12px; }.baza-subject .study-demo { scroll-margin-top:80px; } }
@media(prefers-reduced-motion:reduce) { .baza-refined *,.baza-refined *::before,.baza-refined *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
/* Keep the homepage background consistent with the school landing. */
html:not([data-theme="light"]) .baza-home { --bg:#0a0e17; }
.baza-home::before { content:""; position:fixed; inset:0; background:radial-gradient(circle at 15% 10%,rgba(0,212,170,.13),transparent 34%),radial-gradient(circle at 85% 18%,rgba(34,211,238,.10),transparent 32%); pointer-events:none; opacity:1; }
html[data-theme="light"] .baza-home::before { opacity:.018; }
/* Use the same light page canvas as /podstawowka, with readable subject cards. */
html[data-theme="light"] .baza-home .hero { background:transparent !important; }
html[data-theme="light"] .baza-home .hero-glow { display:none; }
html[data-theme="light"] .baza-home :is(.hero-layout-phone-title,.hero-layout-subject) { color:#242e38; }
html[data-theme="light"] .baza-home .phone-title-mark { color:#00857a; }
html[data-theme="light"] .baza-home .hero-layout-phone-card:hover,
html[data-theme="light"] .baza-home .hero-layout-phone-card:focus-visible { background:#eef7f6; }
html[data-theme="light"] .baza-home .hero-layout-icon-box { background:#eef7f6; color:#00857a; border-color:#c8dfdf; }
html[data-theme="light"] .baza-home .hero-layout-btn { background:#009287; color:#fff; box-shadow:none; }

/* Compact homepage: essential offer, clear destinations, optional details. */
.baza-home :is(#funkcje,#seo-panel,#opinie,#faq,#zostan-odkrywca,#kontakt) { padding:40px 24px; }
.baza-home .features-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.baza-home .feature-card { padding:24px; }
.baza-home #seo-panel .seo-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.baza-home .home-more { margin:22px 0 0; text-align:center; color:var(--text-dim); font-size:15px; }
.baza-home .home-more a { color:var(--cyan); text-underline-offset:4px; }
.baza-home .explorer-cta { padding:30px; }
.baza-home .explorer-cta h2 { font-size:clamp(26px,4vw,36px); margin-bottom:12px; }
.baza-home .home-contact summary,.baza-home .home-footer-more summary { cursor:pointer; color:var(--text); padding:16px 0; font-weight:600; }
.baza-home .home-contact summary span { float:right; }
.baza-home .home-contact { text-align:left; }
.baza-home .home-footer-more { border-top:1px solid var(--border); max-width:1200px; margin:20px auto 0; }
.baza-home .home-footer-more .footer-groups { margin-top:12px; }
@media(max-width:760px) {
 .baza-home :is(#funkcje,#seo-panel,#opinie,#faq,#zostan-odkrywca,#kontakt) { padding:28px 20px; }
 .baza-home .features-grid { grid-template-columns:1fr; }
 .baza-home #seo-panel .seo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .baza-home #seo-panel .seo-card { padding:18px; }
 .baza-home #seo-panel .seo-card h3 { font-size:19px; }
}

/* Homepage typography: compact headings, readable body text. */
.baza-home .hero-layout-title { font-size:44px; line-height:1.15; }
.baza-home :is(.section-title,.seo-wrap > h2,.testimonials-head h2,.explorer-cta h2,.hero-layout-phone-title) { font-size:30px; line-height:1.25; }
.baza-home :is(.feature-card h3,.seo-card h3) { font-size:20px; line-height:1.3; }
.baza-home :is(.hero-layout-copy,.feature-card p,.seo-card p,.section-subtitle,.seo-wrap > p,.testimonial-quote,.explorer-cta p,.faq-answer p) { font-size:16px; line-height:1.6; }
.baza-home .hero-layout-lead { font-size:20px; margin-top:20px; }
.baza-home :is(#funkcje,#seo-panel,#opinie,#faq,#zostan-odkrywca,#kontakt) { padding:32px 24px; }
.baza-home .section-subtitle { margin-bottom:28px; }
.baza-home .feature-card { padding:22px; }
.baza-home .feature-icon { margin-bottom:16px; }
.baza-home .home-more { margin-top:18px; }
@media(max-width:760px) {
 .baza-home .hero-layout-title { font-size:32px; }
 .baza-home :is(.section-title,.seo-wrap > h2,.testimonials-head h2,.explorer-cta h2,.hero-layout-phone-title) { font-size:24px; }
 .baza-home :is(.feature-card h3,.seo-card h3),.baza-home #seo-panel .seo-card h3 { font-size:18px; }
 .baza-home :is(#funkcje,#seo-panel,#opinie,#faq,#zostan-odkrywca,#kontakt) { padding:24px 20px; }
 .baza-home .section-subtitle { margin-bottom:22px; }
 .baza-home .hero-layout-grid { gap:24px; }
}
