/* Office Line — arkusz stylów strony statycznej */

:root {
  --navy: #004890;
  --navy-dark: #00376e;
  --navy-hover: #1a5da4;
  --sky: #98c0e8;
  --sky-soft: #b9d5ee;
  --border: #d3e3f2;
  --bg-soft: #f5f9fd;
  --chip: #eaf3fb;
  --ink: #16203a;
  --muted: #4b5470;
  --muted-light: #59617a;
  --muted-lighter: #8a90a4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Poppins', 'Open Sans', system-ui, sans-serif; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; }
.section { max-width: 1240px; margin: 0 auto; padding: 72px 24px; animation: olFadeUp .45s ease both; }
.section--narrow { max-width: 860px; }
.section--legal { max-width: 820px; }

@keyframes olFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; color: #fff; }

/* Nagłówek */
.logobar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.logobar img { height: 68px; width: auto; display: block; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.lang a { padding: 8px 12px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); background: #fff; }
.lang a.is-active { background: var(--navy); color: #fff; }

.tagline { padding-bottom: 30px; }
.tagline p:first-child {
  font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px;
}
.tagline em { font-style: normal; color: var(--navy); }
.tagline p:last-child { font-size: 15px; color: var(--muted-light); max-width: 640px; margin: 0; }

.navbar { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.navbar .wrap { display: flex; align-items: stretch; justify-content: space-between; padding: 0 24px; }
.tabs { display: flex; align-items: stretch; gap: 4px; }
.tabs a {
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
  padding: 16px 26px; color: #fff; text-decoration: none; white-space: nowrap;
  border-bottom: 4px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tabs a:hover { background: var(--navy-hover); color: #fff; }
.tabs a.is-active { background: #fff; color: var(--navy); border-bottom-color: #fff; }
.tabs a.is-active:hover { background: #fff; color: var(--navy); }

.burger {
  display: none; align-items: center; gap: 10px; background: none; border: none; cursor: pointer;
  color: #fff; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; padding: 14px 4px;
}
.burger span.bars { display: block; width: 20px; }
.burger span.bars i { display: block; height: 2px; background: #fff; margin-bottom: 4px; }
.burger span.bars i:last-child { margin-bottom: 0; }
.pagepill { display: none; align-self: center; color: var(--sky-soft); font-size: 14px; font-weight: 600; }
.mobilenav { display: none; flex-direction: column; padding: 4px 12px 12px; gap: 2px; }
.mobilenav a {
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600;
  padding: 14px 16px; border-radius: 4px; color: #fff; text-decoration: none;
}
.mobilenav a.is-active { background: #fff; color: var(--navy); }
.mobilenav.is-open { display: flex; }

/* Marki */
.h1 { font-size: 34px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.lead { font-size: 16px; color: var(--muted-light); max-width: 640px; margin: 0 0 36px; }

.brandgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.brandcard {
  display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brandcard:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 72, 144, .18); border-color: var(--navy); color: inherit; }
.brandcard .logobox { padding: 24px; border-bottom: 1px solid var(--border); }
.brandcard .logobox .slot { height: 190px; }
.brandcard .body { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 26px; flex: 1; }
.brandcard .desc { font-size: 15px; color: var(--muted-light); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brandcard .cta { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Slot na obraz (placeholder do czasu wgrania pliku) */
.slot { position: relative; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.slot img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.slot.is-empty img { display: none; }
.slot.is-empty::after {
  content: attr(data-placeholder);
  font-size: 13px; color: var(--muted-lighter); text-align: center; padding: 12px;
  border: 1px dashed var(--border); border-radius: 6px;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.slot--photo { background: var(--bg-soft); border-radius: 6px; height: 170px; }
.slot--photo img { object-fit: cover; }

/* Podstrona marki */
.brandhead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: start; }
.brandlogo { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 28px; margin: 0 0 28px; max-width: 420px; }
.brandlogo .slot { height: 170px; }
.brandtext { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.eyebrow { font-size: 15px; font-weight: 600; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; }
.chips li { background: var(--chip); color: var(--navy); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 100px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.aside { display: flex; flex-direction: column; gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.dl { display: flex; align-items: center; gap: 12px; text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; color: var(--ink); transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.dl:hover { border-color: var(--navy); color: var(--navy); transform: translateX(3px); }
.dl .tag { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 7px; border-radius: 3px; flex: none; }
.dl .label { font-size: 15px; font-weight: 600; }
.note { font-size: 13px; color: var(--muted-lighter); margin: 14px 0 0; }
.cardcta { border-radius: 8px; padding: 24px; background: var(--navy); color: #fff; }
.cardcta h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.cardcta p { font-size: 14px; color: #cfe2f4; margin: 0 0 18px; }

.btn { display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--chip); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; font-size: 15px; padding: 14px 28px; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }

/* O firmie */
.prose p { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.prose p:first-of-type { font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Kontakt */
.contactgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: start; }
form.contact { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; }
.fieldrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.consent label { font-size: 13px; color: var(--muted-light); }
.rodo { font-size: 12px; color: var(--muted-lighter); margin: -6px 0 0; line-height: 1.6; }
.honey { display: none; }
form.contact .btn--navy { align-self: flex-start; }

.databox { background: var(--navy); border-radius: 8px; padding: 28px 32px; color: #fff; }
.databox h2 { font-size: 15px; font-weight: 600; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--sky-soft); }
.databox .name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.databox .addr { font-size: 14px; color: #cfe2f4; margin: 0 0 18px; }
.databox .ids { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #cfe2f4; border-top: 1px solid #2d6aa8; padding-top: 16px; }

/* Dokumenty prawne */
.legal .updated { font-size: 13px; color: var(--muted-lighter); margin: 0 0 26px; }
.legal .intro { font-size: 17px; color: var(--muted); margin: 0 0 34px; }
.legal section { margin: 0 0 30px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.legal p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.legal ul { margin: 6px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.legal li { font-size: 15px; color: var(--muted); }
.legal .foot { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 22px; }

/* Stopka */
footer.site { border-top: 1px solid var(--border); background: var(--bg-soft); }
footer.site .wrap { padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer.site nav a { font-size: 13px; }

/* Pasek cookies */
.cookiebar {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 18px 44px rgba(0, 72, 144, .18); padding: 20px 24px;
  gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  animation: olFadeUp .4s ease both;
}
.cookiebar.is-visible { display: flex; }
.cookiebar p { font-size: 14px; color: var(--muted); margin: 0; max-width: 640px; }
.cookiebar .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookiebar .ghost { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 11px 18px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cookiebar .ghost:hover { border-color: var(--navy); color: var(--navy); }

@media (max-width: 1160px) {
  .brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .logobar { padding: 18px 0; }
  .logobar img { height: 46px; }
  .wrap { padding: 0 20px; }
  .navbar .wrap { padding: 0 20px; }
  .section { padding: 48px 20px; }
  .tabs { display: none; }
  .burger { display: flex; }
  .pagepill { display: block; }
  .tagline { padding-bottom: 22px; }
  .tagline p:first-child { font-size: 22px; }
  .brandgrid { grid-template-columns: minmax(0, 1fr); }
  .brandhead, .contactgrid { grid-template-columns: minmax(0, 1fr); }
  .brandlogo { max-width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fieldrow { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 28px; }
}
