.cookie-banner {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: 20px;
  width: min(calc(100vw - 32px), 760px);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
  z-index: 999;
}

/* Wspolna stopka na wszystkich podstronach */
footer,
.footer {
  width: 100% !important;
  margin: 32px 0 0 !important;
  padding: 18px 24px !important;
  border: 0 !important;
  background: #0b1f3b !important;
  color: #ffffff !important;
  font-size: 14px !important;
  text-align: center !important;
}

.footer-meta,
.footer-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 24px !important;
  flex-wrap: wrap !important;
}

.footer-links {
  display: contents !important;
}

.footer-meta > *,
.footer-inner > span,
.footer-inner .footer-links > * {
  color: #ffffff !important;
  white-space: normal;
}

.footer-meta a,
.footer-inner a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta > *:not(:last-child)::after,
.footer-inner > span::after,
.footer-inner .footer-links > *:not(:last-child)::after {
  content: "\2022";
  margin-left: 24px;
  color: #9ca3af;
  text-decoration: none;
  display: inline-block;
}
.cookie-banner.show {
  display: flex;
}
.cookie-copy {
  width: 100%;
  font-size: 13px;
  line-height: 1.35;
  color: #e5e7eb;
}
.cookie-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.cookie-copy p {
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
}
.cookie-copy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-copy a:hover,
.cookie-copy a:focus-visible {
  color: #dbeafe;
}
.cookie-actions {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 8px;
}
.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  flex: 1 1 0;
  background: #4285f4;
  color: #ffffff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: #2f6fe0;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.cookie-btn:focus-visible {
  outline: 2px solid #dbeafe;
  outline-offset: 2px;
}
.cookie-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.16);
}
.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus-visible {
  background: rgba(255,255,255,0.14);
}

.cookie-modal[hidden] {
  display: none;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}
.cookie-modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 32px), 720px);
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 22px 22px 18px;
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eff4fb;
  color: #0b1f3b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cookie-modal-panel h2 {
  margin: 0 36px 8px 0;
  font-size: 28px;
  line-height: 1.1;
}
.cookie-modal-intro {
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}
.cookie-form {
  display: grid;
  gap: 12px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: #f8fbff;
}
.cookie-option-locked {
  background: #f1f5f9;
}
.cookie-option-copy {
  display: grid;
  gap: 4px;
}
.cookie-option-copy strong {
  font-size: 16px;
}
.cookie-option-copy small {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  font-size: 13px;
}
.cookie-modal-actions .cookie-btn-secondary {
  background: #eef4fb;
  color: #0b1f3b;
  border: 1px solid #d7e2ef;
}
.cookie-modal-actions .cookie-btn-secondary:hover,
.cookie-modal-actions .cookie-btn-secondary:focus-visible {
  background: #e2ecf8;
  color: #0b1f3b;
}
body.cookie-modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
.cookie-banner {
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100vw - 20px), 680px);
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .cookie-copy {
    width: 100%;
    font-size: 11px;
    line-height: 1.25;
  }
  .cookie-copy strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
  }
  .cookie-copy p {
    margin: 0;
    color: #e5e7eb;
    font-size: 11px;
    line-height: 1.25;
  }
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    gap: 6px;
  }
  .cookie-actions .cookie-btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 10.5px;
    line-height: 1.15;
    border-radius: 9px;
  }
  .cookie-modal-panel {
    width: min(calc(100vw - 20px), 680px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 18px 14px 14px;
    border-radius: 16px;
  }
  .cookie-modal-panel h2 {
    margin-right: 34px;
    font-size: 22px;
  }
  .cookie-modal-intro {
    font-size: 13px;
    line-height: 1.45;
  }
  .cookie-option {
    padding: 12px 12px;
    gap: 12px;
  }
  .cookie-option-copy strong {
    font-size: 14px;
  }
  .cookie-option-copy small {
    font-size: 12px;
  }
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.cookie-media-placeholder {
  display: block;
  min-height: 320px;
  height: 100%;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: url("mapa.webp") center center / cover no-repeat;
  color: #0b1f3b;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.cookie-media-placeholder::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 68px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.6));
}

.cookie-media-placeholder > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  display: block;
  padding: 8px 14px;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 18px rgba(11,31,59,0.08);
}

.cookie-media-placeholder p {
  margin: 0;
  color: #0b1f3b;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}

.cookie-media-placeholder .cookie-btn {
  display: none;
}

@media (max-width: 640px) {
  .cookie-media-placeholder > div {
    left: 12px;
    right: 12px;
    bottom: 10px;
    padding: 8px 10px;
    border-radius: 11px;
  }

  .cookie-media-placeholder p {
    font-size: 12px;
  }
}

/* Wspólna nawigacja dla wszystkich podstron */
html,
body {
  overflow-x: clip !important;
}

.top-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #fff !important;
  background: #0b1f3b !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

.top-nav::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 0 !important;
  width: max(190px,calc((100vw - 1200px)/2 + 190px)) !important;
  height: auto !important;
  background: #fff !important;
}

.top-nav::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  height: 1px !important;
  background: #163a6b !important;
}

.top-nav .nav-inner {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 1200px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

.top-nav .nav-inner::before {
  content: none !important;
}

.top-nav .brand {
  order: initial !important;
  align-self: stretch !important;
  flex: 0 0 170px !important;
  min-height: 76px !important;
  margin: 0 20px 0 0 !important;
  padding: 2px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.top-nav .brand img {
  display: block !important;
  width: auto !important;
  height: 68px !important;
  max-width: 150px !important;
  object-fit: contain !important;
}

.top-nav .nav-quick-link {
  display: none !important;
}

.top-nav .nav-links {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.top-nav .nav-links a {
  position: relative !important;
  width: auto !important;
  padding: 8px clamp(10px,1.4vw,22px) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: transparent !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

.top-nav .nav-links a + a::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 1px !important;
  height: auto !important;
  background: rgba(255,255,255,.28) !important;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a:focus-visible,
.top-nav .nav-links a[aria-current="page"] {
  background: #163a6b !important;
}

.top-nav .nav-domain {
  margin: 0 0 0 16px !important;
  display: inline !important;
  color: #fff !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.top-nav .phone {
  position: static !important;
  order: initial !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 10px !important;
  padding: 10px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #0b1f3b !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: inherit !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

.top-nav .nav-toggle {
  display: none !important;
  margin: 0 0 0 auto !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.top-nav .nav-toggle span {
  display: block !important;
  width: 25px !important;
  height: 3px !important;
  margin: 5px 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

@media (max-width: 980px) {
  .top-nav {
    margin-bottom: 25px !important;
  }

  .top-nav::before {
    display: block !important;
    width: 166px !important;
    height: 66px !important;
    bottom: auto !important;
  }

  .top-nav .nav-inner {
    min-height: 66px !important;
    padding: 0 18px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    row-gap: 0 !important;
  }

  .top-nav .nav-inner::before {
    content: "Ryżowa 65A, Opacz-Kolonia" !important;
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .top-nav .brand {
    order: 1 !important;
    flex: 0 0 148px !important;
    min-height: 66px !important;
    margin-right: 0 !important;
    padding: 2px 8px !important;
  }

  .top-nav .brand img {
    height: 54px !important;
    max-width: 132px !important;
  }

  .top-nav .nav-toggle {
    order: 2 !important;
    margin-left: 0 !important;
    display: block !important;
  }

  .top-nav .nav-links {
    position: absolute !important;
    top: 70px !important;
    right: 14px !important;
    left: 14px !important;
    z-index: 20 !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 90px) !important;
    margin: 0 !important;
    padding: 10px !important;
    display: none !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 14px !important;
    background: #0b1f3b !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.2) !important;
  }

  .top-nav.open .nav-links {
    display: flex !important;
  }

  .top-nav .nav-links a {
    width: 100% !important;
    padding: 12px !important;
  }

  .top-nav .nav-links a + a::before {
    display: none !important;
  }

  .top-nav .nav-domain {
    display: none !important;
  }

  .top-nav .phone {
    position: relative !important;
    order: 3 !important;
    top: 25px !important;
    flex: 0 0 calc(100% - 40px) !important;
    width: auto !important;
    min-height: 50px !important;
    margin: -2px auto 0 !important;
    padding: 12px 18px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #0b1f3b !important;
    font-size: 18px !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .top-nav {
    margin-bottom: 23px !important;
  }

  .top-nav::before {
    display: block !important;
    width: 120px !important;
    height: 66px !important;
  }

  .top-nav .nav-inner {
    min-height: 68px !important;
    padding: 0 12px !important;
  }

  .top-nav .nav-inner::before {
    content: "Ryżowa 65A\A Opacz-Kolonia" !important;
    font-size: 12px !important;
    white-space: pre-line !important;
  }

  .top-nav .brand {
    flex-basis: 108px !important;
    min-height: 66px !important;
    padding: 2px 6px !important;
  }

  .top-nav .brand img {
    height: 50px !important;
    max-width: 100px !important;
  }

  .top-nav .nav-toggle {
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }

  .top-nav .nav-links {
    top: calc(100% + 8px) !important;
    right: 12px !important;
    left: 12px !important;
  }

  .top-nav .phone {
    top: 23px !important;
    flex-basis: calc(100% - 20px) !important;
    min-height: 46px !important;
    padding: 11px 15px !important;
    font-size: 16px !important;
  }
}
