/* White Group – statyczna wersja strony (odświeżona) */

:root {
  --blue: #1e73be;
  --blue-dark: #145690;
  --blue-deep: #0f3a63;
  --sky: #92b3dd;
  --sky-100: #dbe7f6;
  --sky-50: #f1f6fc;
  --violet: #6a3fb0;
  --ink: #16283b;
  --text: #3a4857;
  --muted: #6a7887;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(20, 60, 110, .45);
  --shadow-lg: 0 30px 70px -30px rgba(20, 60, 110, .55);
  --wrap: 1120px;
  --f: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); font-size: 1rem; line-height: 1.75; color: var(--text);
  background: var(--sky-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- Pasek informacyjny ---------- */
.topbar { background: var(--blue-deep); color: #cfe0f3; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; padding: 8px 0; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a, .topbar span { color: #e6effa; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
.topbar svg.i { width: 15px; height: 15px; opacity: .8; }

/* ---------- Nagłówek z banerem ---------- */
.masthead { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 5vw, 56px) 0 clamp(70px, 9vw, 110px); background: var(--sky); }
.masthead__blur { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .8; }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(146, 179, 221, .55) 0%, rgba(146, 179, 221, .75) 60%, var(--sky-50) 100%); }
.masthead a { display: block; width: min(100%, 1067px); margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.masthead a:hover { transform: translateY(-3px); }
.masthead img { width: 100%; }

/* ---------- Nawigacja ---------- */
.nav-bar { position: sticky; top: 0; z-index: 50; margin-top: -44px; padding: 0 0 12px; }
.nav-bar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px -14px rgba(20, 60, 110, .45);
  border: 1px solid rgba(255, 255, 255, .9);
}
.nav-bar.is-stuck .wrap { box-shadow: 0 14px 34px -14px rgba(20, 60, 110, .55); }
.nav-bar.is-stuck { padding-top: 10px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.nav-brand img { width: 38px; height: auto; }
.nav-brand span { font-size: 1.05rem; }
.nav-brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 18px; border-radius: 999px; white-space: nowrap; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--sky-50); color: var(--blue); }
.nav-links a[aria-current="page"] { background: var(--blue); color: var(--white); }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .92rem/1 var(--f); color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 22px -10px rgba(30, 115, 190, .8);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(30, 115, 190, .9); }
.btn--light { background: var(--white); color: var(--blue); box-shadow: none; }
.btn--light:hover { color: var(--violet); }

/* ---------- Sekcje ---------- */
main { display: block; }
.section { padding: 30px 0 90px; }
.section-head { text-align: center; max-width: 640px; margin: 10px auto 44px; }
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; background: var(--sky-100); color: var(--blue-dark); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h1, .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

/* Karty usług */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius); color: var(--text);
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.tile__media { aspect-ratio: 1; overflow: hidden; background: var(--sky-100); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__placeholder {
  aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 30px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .7), transparent 55%), linear-gradient(145deg, #c9dbf2, #92b3dd 55%, #7f8fd6);
}
.tile__placeholder img { width: 44%; margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(20, 60, 110, .35)); }
.tile__placeholder strong { display: block; margin-top: 18px; font-size: 1.6rem; font-weight: 300; color: var(--white); text-shadow: 0 2px 16px rgba(20, 60, 110, .35); }
.tile__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile__body h2 { font-size: 1.15rem; margin-bottom: 8px; }
.tile__body p { color: var(--muted); font-size: .94rem; line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.tile:hover .more svg { transform: translateX(4px); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--blue-dark); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgba(20, 60, 110, .5);
}
.badge svg { width: 13px; height: 13px; color: #f2b01e; }

/* ---------- Wpis / strona ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 8px; opacity: .6; }
.article { background: var(--white); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); }
.article--split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.article__media { position: sticky; top: 100px; }
.article__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article--narrow { max-width: 820px; margin-inline: auto; }
.article--center { max-width: 760px; margin-inline: auto; text-align: center; }
.article--center .article__media { position: static; max-width: 520px; margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 18px; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; display: flex; align-items: center; gap: 10px; }
.prose h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); flex: none; }
.prose ul { padding: 0; margin: 0 0 1.4em; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 30px; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e73be' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.prose strong { color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.6em 0; }
.gallery img { border-radius: var(--radius-sm); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; }
.back svg { width: 16px; height: 16px; }

.related { margin-top: 70px; }
.related h2 { font-size: 1.3rem; text-align: center; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: 0 8px 20px -14px rgba(20, 60, 110, .6); transition: transform .25s var(--ease), color .2s; }
.chips a:hover { transform: translateY(-2px); color: var(--blue); }
.chips img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chips .dot { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #c9dbf2, #7f8fd6); }

/* O nas */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.profile img { width: 170px; margin-bottom: 18px; filter: drop-shadow(0 16px 26px rgba(20, 60, 110, .3)); }
.profile .role { color: var(--muted); font-size: 1.05rem; margin: 0; }
.profile .name { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: var(--ink); margin: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.contact-card { background: var(--white); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 42px); }
.contact-card h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); letter-spacing: -.02em; }
.contact-card h2 { font-size: 1.15rem; margin: 0 0 18px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--blue); flex: none; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.map { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--sky-100); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Stopka ---------- */
.site-footer { background: linear-gradient(160deg, var(--blue-deep), #16497a 60%, #2a3f86); color: #c9d8ea; padding: 70px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer h2 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer a { color: #eaf2fc; }
.site-footer a:hover { color: var(--white); }
.f-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.f-brand img { width: 54px; background: var(--white); border-radius: 14px; padding: 6px; }
.f-brand strong { color: var(--white); font-size: 1.15rem; display: block; line-height: 1.2; }
.f-brand span { font-size: .85rem; }
.fb-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .25s; }
.fb-card:hover { background: rgba(255, 255, 255, .14); }
.fb-card .fb { width: 44px; height: 44px; border-radius: 12px; background: #1877f2; color: var(--white); display: grid; place-items: center; flex: none; }
.fb-card .fb svg { width: 22px; height: 22px; }
.fb-card strong { display: block; color: var(--white); font-size: .95rem; line-height: 1.35; }
.fb-card small { color: #b9cde4; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; }
.f-list svg.i { margin-top: 4px; color: #9fc3ec; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: .82rem; color: #a9bfd8; }
.footer-bottom p { margin: 0; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 24px -8px rgba(20, 60, 110, .6); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Animacje */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 404 */
.notfound { text-align: center; padding: 40px 0 100px; }
.notfound h1 { font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 300; margin: 0; background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .article--split { grid-template-columns: 1fr; }
  .article__media { position: static; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-brand small, .nav-cta span { display: none; }
  .nav-cta { padding: 11px; }
  .nav-links a { padding: 8px 12px; font-size: .9rem; }
  .nav-bar { margin-top: -30px; }
  .nav-bar .wrap { padding-left: 10px; }
  .topbar .addr { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-brand { display: none; }
  .nav-bar .wrap { padding: 6px 6px 6px 8px; gap: 6px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 12px; font-size: .88rem; white-space: nowrap; }
  .nav-cta { padding: 10px; }
  .masthead a { border-radius: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
