:root {
  color-scheme: light;
  --ink: #102b53;
  --muted: #435d79;
  --blue: #1056b0;
  --blue-dark: #0c407f;
  --sky: #f3faff;
  --line: #c9def0;
  --white: #fff;
  --coral: #ff916a;
  --shadow: 0 16px 55px #18477812;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--sky); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #d6532e;
  outline-offset: 4px;
}
button, input, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(3.35rem, 7.4vw, 7.35rem); font-weight: 780; }
h2 { font-size: clamp(2.35rem, 4.65vw, 4.6rem); font-weight: 760; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.038em; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip { position: fixed; top: .55rem; left: .55rem; transform: translateY(-150%); z-index: 20; padding: .6rem 1rem; border-radius: .5rem; background: white; }
.skip:focus { transform: none; }
.header { position: sticky; z-index: 5; top: 0; background: #f7fbfff0; backdrop-filter: blur(20px); }
.header-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.75rem; }
.header-wave { position: absolute; top: calc(100% - 1px); width: 100%; height: 13px; fill: #f7fbfff0; pointer-events: none; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font-size: .99rem; font-weight: 650; line-height: 1.13; }
.brand img { flex: none; object-fit: contain; border-radius: 50%; }
.brand strong { font-weight: 790; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.45rem); }
nav a { font-size: .94rem; font-weight: 690; text-decoration: none; padding-block: .6rem; }
nav a:hover, .footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 3.15rem; padding: .66rem 1.25rem; border: 1px solid transparent; border-radius: 100px; font-size: .98rem; letter-spacing: -.01em; font-weight: 760; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-main { background: var(--blue); color: white; box-shadow: 0 7px 20px #1056b035; }
.button-main:hover { background: var(--blue-dark); }
.button-white { background: white; color: var(--blue-dark); }
.button-white:hover { background: #def1ff; }
.button-glass { color: white; background: #b6e0ff2c; border-color: #e6f4ff96; backdrop-filter: blur(12px); }
.button-glass:hover { background: #b6e0ff45; }
.button-outline { background: #f5faff; color: var(--blue-dark); border-color: #bdd9ef; }
.button-outline:hover { background: #e4f3ff; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #103f75; color: white; }
.hero-photo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #08294feF 0%, #0c376ad9 28%, #0e498664 57%, #06326110 85%), url("ratownik.webp") 58% 49% / cover no-repeat; animation: water-in .9s ease-out both; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(32rem, 53vw, 45rem); padding-block: 4rem 6.7rem; }
.hero-copy { max-width: 46rem; animation: rise-in .72s ease-out both; }
.eyebrow { display: flex; gap: .55rem; align-items: center; margin-bottom: .95rem; color: var(--blue-dark); font-size: .875rem; font-weight: 780; letter-spacing: .095em; text-transform: uppercase; }
.hero .eyebrow, .careers .eyebrow { color: #e0f3ff; }
.ring { flex: none; width: 1.1rem; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 25deg, var(--coral) 0 40deg, #f8fcff 40deg 90deg, var(--coral) 90deg 130deg, #f8fcff 130deg 180deg, var(--coral) 180deg 220deg, #f8fcff 220deg 270deg, var(--coral) 270deg 310deg, #f8fcff 310deg); mask: radial-gradient(circle, transparent 37%, black 42%); }
.hero h1 span { color: #8ed4ff; }
.hero-lead { max-width: 31rem; margin-top: 1.3rem; color: #f1f8ff; font-size: clamp(1.08rem, 1.9vw, 1.32rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.photo-caption { position: absolute; bottom: 6.2rem; right: 0; padding: .15rem .55rem; border-radius: 10px; background: #0b315bdc; color: white; font-size: .8rem; }
.hero-wave { position: absolute; bottom: -1px; width: 100%; height: clamp(2.5rem, 7vw, 6.2rem); pointer-events: none; }
.section { padding-block: clamp(3.5rem, 6.6vw, 6rem); }
.services { padding-top: clamp(2.6rem, 5vw, 4.8rem); background: radial-gradient(ellipse at 82% 30%, #e1f3ff, transparent 58%); }
.section-intro { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 1.2rem 3rem; }
.section-intro > p, .news-grid > div > p:not(.eyebrow), .contact-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.075rem; max-width: 33rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.card, .form-card, .facebook-card { min-width: 0; padding: clamp(1.2rem, 2.7vw, 2.35rem); border: 1px solid #d0e5f4; border-radius: 1.5rem; background: #ffffffc9; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.card { transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px #18477825; }
.card svg { width: 3rem; height: 3rem; padding: .48rem; margin-bottom: 1.08rem; background: #e3f3ff; border-radius: .85rem; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; fill: none; }
.card p { margin-top: .55rem; color: var(--muted); }
.registry { max-width: 60rem; margin-top: 1.45rem; color: var(--muted); }
.registry a, .text-link { color: var(--blue-dark); font-weight: 720; text-underline-offset: .2em; }
.careers { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(125deg,#0e3c78,#125ab1 76%,#216ec4); color: white; }
.career-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 1rem; }
.career-inner p:not(.eyebrow) { max-width: 30rem; margin-top: 1rem; color: #ecf7ff; font-size: 1.075rem; }
.career-inner .button { margin-top: 1.4rem; }
.career-art { display: grid; place-items: center; }
.big-ring { position: relative; width: min(71%, 17rem); aspect-ratio: 1; border: 2px solid #dbf1ffbd; border-radius: 50%; background: conic-gradient(from 20deg, #d6efffaa 0 40deg, #93c9f052 40deg 90deg, #d6efffaa 90deg 130deg, #93c9f052 130deg 180deg, #d6efffaa 180deg 220deg, #93c9f052 220deg 270deg, #d6efffaa 270deg 310deg, #93c9f052 310deg); box-shadow: 0 0 0 1.8rem #b1ddff14, 0 0 0 4rem #b1ddff0e, 0 0 0 6.9rem #b1ddff09, 0 .45rem 1.25rem #06265344; mask: radial-gradient(circle, transparent 33%, black 34%); transform: rotate(-17deg); }
.news { background: #f9fcff; }
.news-grid, .contact-grid { display: grid; grid-template-columns: .88fr 1fr; align-items: center; gap: 1.75rem clamp(2rem, 6vw, 6rem); }
.news-grid > div > p:not(.eyebrow), .contact-grid > div > p:not(.eyebrow) { margin-top: 1rem; }
.news .text-link { display: inline-block; margin-top: 1.15rem; }
.facebook-card { background: linear-gradient(135deg,#fff,#eaf6ff); }
.facebook-heading { display: flex; align-items: center; gap: .75rem; line-height: 1.22; }
.facebook-heading small { display: block; margin-top: .16rem; color: var(--muted); font-size: .875rem; }
.facebook-icon { display: grid; flex: none; place-items: center; width: 2.75rem; aspect-ratio: 1; background: var(--blue); color: white; border-radius: .75rem; font: bold 1.8rem/1 sans-serif; }
.facebook-card > p { margin-block: 1rem; color: var(--muted); }
.feed-slot { margin-top: 1rem; background: white; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.feed-slot iframe { display: block; width: 100%; max-width: 500px; border: none; }
.contact { background: radial-gradient(ellipse at 9% 12%,#e0f3ff,transparent 58%), #edf7ff; }
.contact-grid { align-items: start; }
.contact-grid > div:first-child { padding-top: .9rem; }
address { margin-top: 1.75rem; color: var(--muted); font-style: normal; }
.form-card { background: #fff; }
.switcher { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.switcher legend { margin-bottom: .5rem; font-size: .9rem; font-weight: 730; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .28rem; border-radius: 1rem; background: #eaf5fe; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; margin: 0; }
.choices span { display: flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .45rem .25rem; border-radius: .75rem; text-align: center; font-weight: 760; }
.choices input:checked + span { background: var(--blue); color: white; }
.choices input:focus-visible + span { outline: 3px solid #d6532e; outline-offset: 2px; }
.contact-grid .form-note { margin: .85rem 0 1.2rem; font-size: .875rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-block: 1.05rem 1.2rem; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: flex; flex-direction: column; align-items: start; gap: .25rem; font-size: .92rem; font-weight: 680; }
.fields small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.fields input, .fields textarea { width: 100%; min-height: 2.88rem; padding: .55rem .7rem; border: 1px solid #aebfd4; border-radius: .65rem; background: #fcfeff; color: var(--ink); font-size: 1rem; font-weight: 450; }
.fields textarea { resize: vertical; }
.form-result:not(:empty) { margin-top: .8rem; color: var(--blue-dark); font-weight: 650; }
.footer { background: #e4f2fd; color: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.15rem; }
.footer p, .footer-inner > a:last-child { font-size: .91rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes water-in { from { opacity: .7; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@media (max-width: 58rem) {
  .shell { width: calc(100% - 3rem); }
  .contact-grid { grid-template-columns: .77fr 1fr; gap: 1.6rem; }
}
@media (max-width: 44rem) {
  :root { scroll-padding-top: 7.7rem; }
  .shell { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: 0; gap: .15rem .7rem; padding-block: .55rem .25rem; }
  .header .brand img { width: 46px; height: 46px; }
  .header-contact { grid-column: 2; grid-row: 1; min-height: 2.75rem; padding-inline: .95rem; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .4rem; }
  nav a { min-height: 2.75rem; display: grid; align-items: center; font-size: .875rem; }
  .header-wave { height: 9px; }
  .hero-photo { background-image: linear-gradient(90deg,#0a2b56eb,#0c376ab0 57%,#0b40784f), url("ratownik.webp"); background-position: 63% center; }
  .hero-inner { min-height: 32rem; padding-block: 3.5rem 5.25rem; }
  .photo-caption { bottom: 3.65rem; }
  .section-intro, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: .75rem; }
  .career-inner { grid-template-columns: 1fr; }
  .career-art { position: absolute; right: -4.25rem; bottom: .4rem; width: 13rem; z-index: -1; opacity: .45; }
}
@media (max-width: 28rem) {
  h1 { font-size: clamp(2.25rem, 10.4vw, 3.35rem); }
  .hero-inner { min-height: 30rem; }
  .fields { grid-template-columns: 1fr; }
  .actions .button { padding-inline: .80rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
