/* SP4: two design proposals. Existing functional templates are preserved. */
body.sp4-kosmos-jasny{
--navy-deep:#344b78;--navy:#405b89;--navy-soft:#4a6697;
--cream:#fffdf7;--cream-dim:#f0f3fc;--line:rgba(255,255,255,.23);
--amber:#ffc18b;--amber-soft:#ffdab9;
}
.sp4-kosmos-jasny .site-header{background:rgba(52,75,120,.98)}
.sp4-kosmos-jasny .hero-photo-bg .photo-img{filter:none;opacity:1}
.sp4-kosmos-jasny .news-thumb::after{display:none}
.sp4-kosmos-jasny .qlink:hover{background:#405b89}
.sp4-kosmos-jasny .btn-primary,.sp4-kosmos-jasny .header-cta,.sp4-kosmos-jasny button{color:#172743}
.sp4-kosmos-jasny .legacy-widget{background:rgba(255,255,255,.035)}
.sp4-design-preview{position:relative;z-index:51;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 18px;background:#fff;color:#142d50;border-bottom:1px solid #cad7e7;font:600 13px/1.4 'Segoe UI',sans-serif}
.sp4-design-preview a{display:inline-block;padding:8px 12px;border:1px solid #aabed5;border-radius:5px;color:#142d50;text-decoration:none}
.sp4-design-preview a[aria-current="true"]{background:#1555b5;color:white;border-color:#1555b5}
.sp4-design-preview a:focus-visible{outline:3px solid #1555b5;outline-offset:3px}
body.sp4-horyzont{
--navy-deep:#edf4fc;--navy:#ffffff;--navy-soft:#dbe9f9;
--cream:#142d50;--cream-dim:#415978;--line:#cbd9e9;
--amber:#1555b5;--amber-soft:#174f99;
--font-display:Georgia,'Times New Roman',serif;
--font-body:'Segoe UI',Tahoma,sans-serif;
background:#edf4fc;color:#142d50;
}
.sp4-horyzont .stars{display:none}
.sp4-horyzont .site-header{background:rgba(255,255,255,.98);border-bottom:3px solid #1555b5;backdrop-filter:blur(8px)}
.sp4-horyzont .header-inner{max-width:1280px;padding-top:15px;padding-bottom:15px}
.sp4-horyzont .logo{font-family:var(--font-body);font-size:19px}
.sp4-horyzont .logo small{font-size:12px;letter-spacing:.02em}
.sp4-horyzont .site-nav a{font-weight:650;color:#243e61}
.sp4-horyzont .site-nav a:hover{color:#1555b5}
.sp4-horyzont .site-nav .sub-menu{background:#fff;box-shadow:0 12px 24px rgba(20,45,80,.1)}
.sp4-horyzont .header-cta,.sp4-horyzont .btn-primary,.sp4-horyzont button,.sp4-horyzont input[type=submit]{background:#1555b5;color:#fff;border-radius:5px;box-shadow:none}
.sp4-horyzont .hero{max-width:1280px;grid-template-columns:1fr 1.15fr;gap:44px;padding:64px 24px 56px;align-items:center;overflow:visible}
.sp4-horyzont .hero-copy{padding:0 0 20px;background:transparent;border:0;border-radius:0}
.sp4-horyzont .eyebrow{color:#174f99;font-family:var(--font-body);font-size:12px;letter-spacing:.12em;margin-bottom:24px}
.sp4-horyzont .eyebrow::before{width:32px;height:3px;background:#1555b5}
.sp4-horyzont .hero h1{font-size:clamp(36px,4.4vw,62px);font-weight:500;letter-spacing:-.035em;line-height:1.08}
.sp4-horyzont .hero h1 span{color:#1555b5;font-style:italic}
.sp4-horyzont .hero p{font-size:17px;line-height:1.75;margin-bottom:28px}
.sp4-horyzont .hero-photo-bg{min-height:440px;border:0;border-radius:100px 8px 8px 8px;box-shadow:14px 14px 0 #d3e3f6}
.sp4-horyzont .hero-photo-bg .photo-img{filter:none;opacity:1;object-position:center}
.sp4-horyzont .hero-orbits{display:none}
.sp4-horyzont .btn-secondary{background:#1555b5;color:#fff;border-color:#1555b5;border-radius:5px;font-size:14px;padding:13px 22px}
.sp4-horyzont .quicklinks{background:transparent;border:0}
.sp4-horyzont .quicklinks-inner{max-width:1280px;background:transparent;gap:10px;padding:0 24px 30px}
.sp4-horyzont .qlink{background:#fff;color:#142d50;border:1px solid #cbd9e9;border-bottom:3px solid #1555b5;border-radius:6px;padding:20px 8px;gap:12px;transition:transform .2s,background .2s}
.sp4-horyzont .qlink:hover{background:#e0edff;color:#142d50;transform:translateY(-3px)}
.sp4-horyzont .qlink .ic{background:#edf4fc;width:52px;height:52px;padding:6px;border-radius:50%}
.sp4-horyzont section.block{max-width:1280px;padding:64px 24px}
.sp4-horyzont .block-head{border-top:1px solid #b7cbe3;padding-top:22px;margin-bottom:30px}
.sp4-horyzont .block-head h2{font-weight:500;font-size:clamp(30px,3vw,42px);letter-spacing:-.025em}
.sp4-horyzont .block-head .sub{font-size:16px;margin-top:8px;max-width:640px}
.sp4-horyzont .news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.sp4-horyzont .news-card{display:grid;grid-template-columns:150px minmax(0,1fr);background:#fff;border:1px solid #cbd9e9;border-radius:6px;min-height:180px}
.sp4-horyzont .news-card:hover{transform:translateY(-3px);border-color:#1555b5}
.sp4-horyzont .news-thumb{height:100%;min-height:180px;background:#e3edf9}
.sp4-horyzont .news-thumb::after{display:none}
.sp4-horyzont .news-thumb img{object-fit:contain;background:#fff}
.sp4-horyzont .news-tag{font-family:var(--font-body);color:#fff;background:#1555b5;border-radius:3px;left:8px;right:8px;top:8px;font-size:10px;padding:4px 6px;max-width:calc(100% - 16px)}
.sp4-horyzont .news-body{padding:22px}
.sp4-horyzont .news-title{font-size:22px;line-height:1.3;font-weight:500}
.sp4-horyzont .news-date{color:#526781;font-size:12px}
.sp4-horyzont .aud-card{background:#fff;border-radius:6px;border-top:4px solid #1555b5;padding:28px}
.sp4-horyzont .aud-card:hover{border-color:#1555b5}
.sp4-horyzont .aud-card h3{font-size:28px;font-weight:500}
.sp4-horyzont .aud-card p,.sp4-horyzont .aud-card .links a{font-size:15px}
.sp4-horyzont .aud-icon{background:#e7f0fc;color:#1555b5;border-radius:50%}
.sp4-horyzont .school-photo{grid-template-columns:1fr}
.sp4-horyzont .photo-main{min-height:430px;border-radius:6px;background-position:center;filter:none}
.sp4-horyzont .photo-side{display:none}
.sp4-horyzont .school-photo .cap{background:white;color:#142d50;border-radius:4px;padding:10px 14px}
.sp4-horyzont .recruit{max-width:1232px;background:#1555b5;color:white;border:0;border-radius:6px;padding:42px;margin-bottom:64px}
.sp4-horyzont .recruit h2{font-size:34px;font-weight:500}
.sp4-horyzont .recruit p{color:#edf4fc}
.sp4-horyzont .recruit .btn-primary{background:#fff;color:#1555b5}
.sp4-horyzont .recruit::before{display:none}
.sp4-horyzont .legacy-panels{max-width:1280px}
.sp4-horyzont .legacy-widget{background:#fff;border-radius:6px}
.sp4-horyzont .site-footer{background:#dfeaf8;border-top:3px solid #1555b5}
.sp4-horyzont .footer-important-links{max-width:1280px}
.sp4-horyzont .footer-important-links>h2{font-family:Georgia,serif;font-size:34px;font-weight:500;color:#142d50}
.sp4-horyzont .important-links-grid .legacy-widget{background:#fff;border-radius:6px}
.sp4-horyzont .important-links-grid .legacy-widget h2{color:#142d50}
.sp4-horyzont .footer-inner,.sp4-horyzont .footer-bottom{max-width:1232px}
.sp4-horyzont .footer-inner h4{color:#174f99;font-family:var(--font-body);font-size:15px}
.sp4-horyzont .footer-inner a:hover{color:#1555b5;text-decoration:underline}
.sp4-horyzont .content-shell{max-width:1180px;background:#fff;margin-top:36px;margin-bottom:48px;border-radius:6px}
.sp4-horyzont .entry-content{font-size:17px;line-height:1.8}
.sp4-horyzont .entry-content a{color:#174f99}
.sp4-horyzont input:not([type=checkbox]):not([type=radio]),.sp4-horyzont textarea,.sp4-horyzont select{background:#fff;color:#142d50;border-color:#8299b6}
.sp4-horyzont .page-numbers.current{background:#1555b5;color:#fff}
.sp4-horyzont :focus-visible{outline-color:#1555b5}
.sp4-horyzont .skip-link{background:#fff;color:#142d50}
@media(max-width:900px){
.sp4-horyzont .hero{grid-template-columns:1fr;gap:20px;padding:36px 24px 42px}
.sp4-horyzont .hero-photo-bg{min-height:0;border-radius:48px 6px 6px 6px}
.sp4-horyzont .hero-photo-bg .photo-img{position:static;height:auto}
.sp4-horyzont .quicklinks-inner{grid-template-columns:repeat(3,minmax(0,1fr))}
.sp4-horyzont .news-grid{grid-template-columns:1fr}
.sp4-horyzont section.block{padding:40px 24px}
.sp4-horyzont .site-nav .sub-menu{box-shadow:none}
.sp4-horyzont .recruit{margin-left:24px;margin-right:24px}
.sp4-horyzont .content-shell{margin:24px 12px;padding:30px 20px}
}
@media(max-width:480px){
.sp4-horyzont .hero{padding:28px 18px 36px}
.sp4-horyzont .hero h1{font-size:39px}
.sp4-horyzont .hero p{font-size:16px}
.sp4-horyzont .header-inner{padding:12px 16px}
.sp4-horyzont .logo{font-size:15px}
.sp4-horyzont .logo small{font-size:10px}
.sp4-horyzont .quicklinks-inner{padding:0 18px 18px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.sp4-horyzont .qlink:last-child{grid-column:1/-1}
.sp4-horyzont .news-card{grid-template-columns:105px minmax(0,1fr);min-height:156px}
.sp4-horyzont .news-thumb{min-height:156px}
.sp4-horyzont .news-body{padding:15px}
.sp4-horyzont .news-title{font-size:20px}
.sp4-horyzont .recruit{padding:28px 22px}
.sp4-horyzont .photo-main{min-height:260px}
}
@media(prefers-reduced-motion:reduce){.sp4-horyzont .qlink:hover,.sp4-horyzont .news-card:hover{transform:none}}
