@charset "UTF-8";

:root {
  --navy: #17283f;
  --navy-deep: #102035;
  --red: #be2633;
  --red-hover: #9e1d29;
  --text: #24364d;
  --muted: #57687c;
  --line: #dde4eb;
  --paper: #f7f8fa;
  --white: #fff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 10px 35px rgb(23 40 63 / 6%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--text); background: var(--white); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 80px; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -100px; padding: 12px 20px; color: var(--white); background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Nagłówek i nawigacja */
.header { position: sticky; z-index: 20; top: 0; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; border: 1px solid #e7e8ea; border-radius: 13px; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-name { color: var(--navy); font-size: 22px; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; }
.brand-subtitle { color: var(--muted); font-size: 13px; line-height: 1.4; }
.main-nav { display: flex; align-items: center; gap: 32px; flex-shrink: 0; font-size: 16px; font-weight: 650; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; }
.main-nav .nav-news { padding-inline: 4px; }
.main-nav .nav-news:hover { color: var(--red); }
.main-nav .nav-contact { padding-inline: 25px; background: var(--red); color: var(--white); border-radius: 9px; }
.main-nav .nav-contact:hover { background: var(--red-hover); }

/* Pierwszy ekran */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #10243d; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #10243d 0%, rgb(16 36 61 / 96%) 20%, rgb(16 36 61 / 87%) 40%, rgb(16 36 61 / 51%) 57%, rgb(16 36 61 / 8%) 76%, transparent 100%); }
.hero-inner { min-height: 620px; display: flex; align-items: center; padding-block: 65px; }
.hero-copy { width: min(100%, 765px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 13px; font-weight: 750; letter-spacing: .11em; line-height: 1.5; }
.eyebrow-line { display: inline-block; width: 26px; height: 3px; background: var(--red); border-radius: 3px; }
h1 { color: var(--navy); font-size: clamp(46px, 4.7vw, 62px); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.hero .eyebrow { color: #e0e7f0; letter-spacing: .17em; }
.hero .eyebrow-line { width: 40px; background: #ee3344; }
.hero h1 { color: var(--white); font-size: clamp(46px, 4vw, 60px); margin-top: 24px; line-height: 1.15; letter-spacing: -.035em; }
.hero h1>span { display: inline-block; }
.hero-description { max-width: 650px; margin-top: 25px; color: #e2e8f1; font-size: 21px; line-height: 1.65; }
.hero-actions { display: flex; gap: 13px; margin-top: 32px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 51px; padding: 12px 22px; border: 1px solid transparent; border-radius: 9px; font-size: 16px; font-weight: 650; line-height: 1.5; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s; }
.button>span:last-child:not(.submit-label) { font-size: 21px; line-height: 1; }
.button-primary { color: var(--white); background: var(--red); box-shadow: 0 4px 12px rgb(190 38 51 / 10%); }
.button-primary:hover { background: var(--red-hover); box-shadow: 0 5px 16px rgb(190 38 51 / 17%); }
.button-secondary { color: var(--navy); background: var(--white); border-color: #c9d3de; }
.button-secondary:hover { background: #f0f3f7; border-color: #9eacbd; }
.hero-system { display: flex; align-items: center; gap: 15px; margin-top: 36px; color: #dbe4ef; }
.hero-system>strong { padding: 8px 17px; border: 1px solid #9aabc0; border-radius: 24px; color: var(--white); font-size: 18px; line-height: 1.3; }
.hero-system>span { font-size: 14px; line-height: 1.5; }
.hero-photo { position: absolute; inset: 0 0 0 auto; z-index: -2; width: min(83%, 1440px); height: 100%; }
.hero-photo>img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
@media (min-width: 1700px) { .hero-inner { min-height: 720px; } }

/* Rzeczywiste wpisy z lokalnego cache */
.news { background: var(--paper); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
h2 { color: var(--navy); font-size: 40px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.section-heading h2 { margin-top: 10px; }
.section-description { color: var(--muted); margin-top: 11px; font-size: 17px; }
.section-heading>.button { flex-shrink: 0; margin-bottom: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 4px 15px rgb(23 40 63 / 3%); transition: box-shadow .2s, border-color .2s; }
.post-card:hover { border-color: #bfcbd8; box-shadow: var(--shadow); }
.post-image-link { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #edf1f5; }
.post-image-link>img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-image-link>img { transform: scale(1.025); }
.post-platform { position: absolute; left: 16px; bottom: 14px; display: grid; place-items: center; width: 29px; height: 29px; padding-top: 4px; border-radius: 5px; background: var(--white); color: #294f8d; font: 700 26px/1 Arial, sans-serif; box-shadow: 0 2px 7px rgb(0 0 0 / 8%); }
.post-image-placeholder { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; width: 100%; height: 100%; background: #eef2f6; }
.post-image-placeholder img { width: 86px; height: 86px; object-fit: contain; border-radius: 13px; box-shadow: 0 4px 14px rgb(23 40 63 / 8%); }
.post-image-placeholder>span { font-size: 14px; color: var(--muted); }
.post-content { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.post-meta { display: flex; gap: 14px; justify-content: space-between; align-items: center; color: #65758a; font-size: 14px; line-height: 1.5; }
.post-meta>span { color: #526e97; }
.post-content h3 { margin: 14px 0 12px; color: var(--navy); font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.post-content h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.post-content h3 a:hover { color: var(--red); }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.post-read { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; padding-top: 24px; color: var(--red); font-size: 15px; font-weight: 700; }
.post-read>span { font-size: 22px; line-height: 1; }
.post-read:hover { color: var(--red-hover); }
.feed-updated { color: var(--muted); font-size: 13px; margin-top: 20px; }
.facebook-fallback { display: flex; gap: 22px; align-items: center; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.fallback-icon { display: grid; place-items: center; padding-top: 5px; width: 54px; height: 54px; flex-shrink: 0; color: var(--white); background: #294f8d; border-radius: 12px; font: 700 46px/1 Arial, sans-serif; }
.facebook-fallback strong { display: block; color: var(--navy); font-size: 21px; }
.facebook-fallback strong+span { display: block; color: var(--muted); font-size: 16px; margin-top: 3px; }
.fallback-arrow { color: var(--red); margin-left: auto; font-size: 27px; }
.facebook-fallback:hover { border-color: #aebed0; box-shadow: var(--shadow); }

/* Kontakt i formularz */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 85px; align-items: start; }
.contact-details { padding-top: 8px; }
.contact h2 { margin-top: 13px; font-size: 38px; max-width: 380px; }
.contact-intro { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 370px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-top: 32px; }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 12px; background: #f2f5f8; color: var(--navy); }
.contact-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.contact-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 14px; }
.contact-email { display: inline-block; color: var(--navy); font-size: clamp(17px, 1.5vw, 21px); font-weight: 650; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.contact-facebook { display: flex; width: fit-content; align-items: center; gap: 11px; color: #42628b; margin-top: 25px; font-size: 16px; font-weight: 600; }
.contact-facebook>span:first-child { display: grid; place-items: center; width: 24px; height: 24px; font: 700 24px/1 Arial, sans-serif; }
.contact-facebook>span:last-child { font-size: 19px; }
.contact-facebook:hover { color: var(--red); }
.emergency { display: flex; align-items: flex-start; gap: 17px; padding: 22px; margin-top: 38px; border: 1px solid #efd8da; background: #fff8f8; border-radius: 12px; max-width: 410px; }
.emergency>strong { color: var(--red); font-size: 31px; line-height: 1.3; letter-spacing: -.035em; }
.emergency h3 { color: var(--navy); font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.emergency p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-panel { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.form-panel>h3 { color: var(--navy); font-size: 24px; line-height: 1.35; letter-spacing: -.025em; font-weight: 700; }
.form-description { margin-top: 7px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 16px; line-height: 1.5; font-weight: 650; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 11px 13px; min-height: 48px; color: var(--text); background: #fff; border: 1px solid #bdc9d6; border-radius: 7px; font-size: 16px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8599b0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(23 40 63 / 5%); }
.field select { padding-right: 30px; }
.field textarea { resize: vertical; min-height: 145px; }
.field [aria-invalid=true] { border-color: var(--red); }
.field-error { font-size: 14px; color: #a51e2b; margin-top: 7px; line-height: 1.5; }
.form-privacy { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.form-privacy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.submit-button { display: flex; justify-content: space-between; width: 100%; padding-inline: 20px; }
.submit-button:disabled { cursor: wait; opacity: .75; }
.submit-status { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.submit-status:empty { display: none; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 15px 17px; margin-bottom: 23px; border: 1px solid; border-radius: 8px; font-size: 15px; line-height: 1.6; }
.notice-success { color: #245134; background: #f0f8f2; border-color: #afcfb7; }
.notice-error { color: #98242d; background: #fff1f2; border-color: #e3b5ba; }

/* Stopka, prywatność i błąd 404 */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 33px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand .brand-logo { width: 52px; height: 52px; border-radius: 10px; }
.footer-brand strong { color: var(--navy); font-size: 17px; line-height: 1.4; }
.footer-brand .brand-subtitle { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; margin-top: 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.privacy, .not-found { background: var(--paper); }
.prose { max-width: 820px; }
.privacy h1 { font-size: 46px; line-height: 1.15; margin: 18px 0 24px; }
.privacy .intro { font-size: 19px; color: var(--muted); margin-bottom: 40px; }
.privacy h2 { font-size: 24px; margin: 32px 0 13px; }
.privacy p { font-size: 17px; line-height: 1.85; margin-bottom: 17px; color: #43566e; }
.privacy p a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.privacy code { font-size: 15px; background: #e9eef3; border-radius: 4px; padding: 2px 5px; }
.privacy .privacy-updated { font-size: 14px; color: var(--muted); margin-top: 36px; }
.privacy .button { margin-top: 16px; }
.not-found-inner { min-height: 360px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { font-size: 46px; margin: 18px 0; }
.not-found p:not(.eyebrow) { font-size: 18px; color: var(--muted); margin-bottom: 28px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: 50px; }
  .hero-actions { gap: 11px; }
  .hero-actions .button { padding-inline: 20px; font-size: 16px; }
  .post-grid { gap: 19px; }
  .post-content { padding: 20px; }
  .contact-grid { gap: 45px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact h2 { font-size: 35px; }
  .contact-email { font-size: 18px; }
}
@media (max-width: 820px) {
  .hero-inner { min-height: 600px; padding-block: 55px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 20px; margin-top: 20px; }
  .hero-actions { margin-top: 25px; }
  .hero-actions { max-width: 450px; }
  .section { padding-block: 60px; }
  .section-heading { align-items: flex-start; }
  h2 { font-size: 35px; }
  .post-grid { gap: 16px; }
  .post-content { padding: 17px; }
  .post-content h3 { font-size: 19px; }
  .post-meta { font-size: 13px; gap: 8px; }
  .post-excerpt { font-size: 15px; }
  .contact-grid { gap: 30px; }
  .contact-item { gap: 11px; }
  .contact-icon { width: 40px; height: 44px; }
  .contact-email { font-size: 16px; }
  .form-panel { padding: 24px; }
  .footer-links { gap: 20px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 95px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-logo { width: 50px; height: 50px; border-radius: 10px; }
  .brand-name { font-size: 18px; line-height: 1.3; }
  .brand-name>span { display: block; font-size: 12px; letter-spacing: .06em; font-weight: 700; margin-bottom: 1px; }
  .header .brand-subtitle { display: none; }
  .main-nav { gap: 12px; font-size: 14px; }
  .main-nav a { min-height: 44px; }
  .main-nav .nav-news { padding-inline: 0; }
  .main-nav .nav-contact { padding-inline: 15px; border-radius: 8px; }
  .hero { display: flex; flex-direction: column; background: var(--white); }
  .hero::after { display: none; }
  .hero-inner { order: 0; min-height: 0; display: block; padding-block: 34px 30px; }
  .hero-copy { width: 100%; padding: 0; }
  .eyebrow { font-size: 12px; letter-spacing: .09em; }
  .hero .eyebrow { color: var(--red); font-size: 12px; }
  .hero h1 { color: var(--navy); font-size: 42px; line-height: 1.15; margin-top: 18px; }
  .hero-description { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 20px; max-width: 490px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 11px; margin-top: 25px; max-width: none; }
  .hero-actions .button { font-size: 16px; padding: 12px 11px; gap: 9px; min-height: 49px; }
  .hero-actions .button>span { font-size: 19px; }
  .hero-photo { position: relative; inset: auto; order: 1; width: calc(100% - 40px); height: auto; margin: 0 auto 32px; z-index: auto; }
  .hero-photo>img { height: auto; aspect-ratio: 4/3; object-fit: contain; border-radius: 15px; box-shadow: 0 8px 25px rgb(23 40 63 / 10%); }
  .hero-system { color: var(--muted); margin-top: 24px; gap: 13px; }
  .hero-system>strong { color: var(--navy); border-color: #b7c5d4; font-size: 16px; padding: 7px 15px; }
  .hero-system>span { font-size: 14px; }
  .section { padding-block: 48px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { font-size: 34px; margin-top: 9px; }
  .section-description { font-size: 16px; line-height: 1.65; margin-top: 10px; }
  .section-heading>.button { margin-top: 23px; font-size: 15px; min-height: 46px; }
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-image-link { aspect-ratio: 16/10; }
  .post-content { padding: 22px; }
  .post-meta { font-size: 14px; }
  .post-content h3 { font-size: 22px; margin: 13px 0 12px; }
  .post-excerpt { font-size: 16px; }
  .post-read { padding-top: 23px; font-size: 16px; }
  .feed-updated { font-size: 12px; line-height: 1.65; }
  .facebook-fallback { padding: 23px 20px; gap: 16px; align-items: flex-start; }
  .fallback-icon { width: 41px; height: 41px; font-size: 35px; border-radius: 9px; }
  .facebook-fallback strong { font-size: 18px; line-height: 1.4; }
  .facebook-fallback strong+span { font-size: 15px; }
  .fallback-arrow { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-details { padding-top: 0; }
  .contact h2 { font-size: 34px; margin-top: 12px; max-width: 360px; }
  .contact-intro { font-size: 17px; margin-top: 18px; max-width: 450px; }
  .contact-item { margin-top: 25px; gap: 13px; }
  .contact-icon { width: 46px; height: 48px; }
  .contact-email { font-size: 18px; }
  .contact-label { font-size: 13px; }
  .contact-facebook { margin-top: 22px; font-size: 15px; }
  .emergency { margin-top: 27px; padding: 18px; gap: 15px; max-width: none; }
  .emergency>strong { font-size: 30px; }
  .emergency h3 { font-size: 14px; }
  .emergency p { font-size: 14px; }
  .form-panel { padding: 24px 20px; border-radius: 13px; }
  .form-panel>h3 { font-size: 23px; }
  .form-description { font-size: 14px; margin-bottom: 24px; }
  .field label { font-size: 16px; }
  .field input, .field select, .field textarea { min-height: 49px; padding: 11px 12px; }
  .field textarea { min-height: 145px; }
  .form-privacy { font-size: 14px; line-height: 1.7; }
  .footer { padding-top: 28px; }
  .footer-main { display: block; }
  .footer-brand .brand-logo { width: 48px; height: 48px; }
  .footer-brand .brand-subtitle { display: block; font-size: 12px; }
  .footer-links { margin-top: 25px; gap: 14px 23px; font-size: 14px; }
  .footer-bottom { font-size: 12px; margin-top: 23px; padding-block: 18px 22px; }
  .privacy h1 { font-size: 36px; margin-top: 16px; }
  .privacy .intro { font-size: 18px; }
  .privacy h2 { font-size: 23px; margin-top: 29px; }
  .privacy p { font-size: 16px; line-height: 1.85; }
  .not-found h1 { font-size: 38px; }
  .not-found p:not(.eyebrow) { font-size: 17px; }
}
@media (max-width: 390px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 16px; }
  .main-nav { gap: 9px; font-size: 14px; }
  .main-nav .nav-contact { padding-inline: 12px; }
  .hero h1 { font-size: 40px; }
  .hero-actions { grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .button { font-size: 16px; }
  .contact-email { font-size: 16px; }
  .post-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
