/* ===== CSS RESET & NORMALIZE ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #223254;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #223254;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.51,.3,0,1);
}
a:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ===== BRAND TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 700;
  color: #223254;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.22;
  margin-bottom: 13px;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}
p, li, ul, ol {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #223254;
}
strong {
  font-weight: 700;
  color: #223254;
}

/* ===== CONTAINER, STRUCTURE ===== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  width: 100%;
  background: transparent;
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0 0 0;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 11px;
  }
}

/* Wrappers for content with max-width & flex for layout */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: #223254;
  color: #fff;
  box-shadow: 0 2px 12px rgba(34,50,84,0.08);
  position: sticky;
  top: 0;
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 20px;
  min-height: 72px;
}
header img {
  height: 42px;
  width: auto;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  padding: 9px 0;
  color: #E2F0EF;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav a.button.primary {
  margin-left: 15px;
}
nav a:hover, nav a:focus-visible:not(.button) {
  color: #F5A623;
  background: rgba(242, 165, 35, 0.05);
}
nav a.active {
  color: #F5A623;
}

/* Hamburger btn */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #F5A623;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  margin: 0 0 0 8px;
  border-radius: 8px;
  transition: background 0.18s;
  line-height: 1;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(245,166,35,0.08);
}

/* ==== Mobile Navigation ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #223254;
  color: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.82,0,.5,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu button.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: none;
  color: #F5A623;
  border: none;
  margin: 24px 24px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu button.mobile-menu-close:focus, 
.mobile-menu button.mobile-menu-close:hover {
  background: rgba(245,166,35,0.15);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  gap: 18px;
  margin-top: 16px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #E2F0EF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 8px;
  width: 100%;
  padding: 13px 12px;
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(245,166,35,0.15);
  color: #F5A623;
}
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: #E2F0EF;
  border-radius: 0 0 54px 54px / 0 0 36px 36px;
  box-shadow: 0 12px 42px -20px #2232541a;
  margin-bottom: 60px;
  padding-bottom: 1px;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  min-height: 330px;
  gap: 0;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #223254;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 28px 28px / 0 0 18px 18px;
    margin-bottom: 36px;
    padding-bottom: 0;
  }
  .hero .container {
    min-height: 170px;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #E2F0EF;
  color: #223254;
  border: 2px solid #223254;
  box-shadow: 0 2px 16px -5px #2232541a;
  cursor: pointer;
  transition: background .19s, color .19s, border-color .19s, box-shadow .22s;
  margin-top: 8px;
  margin-bottom: 8px;
}
.button.primary {
  background: #F5A623;
  color: #223254;
  border-color: #F5A623;
  box-shadow: 0 2px 18px -7px #f5a62324, 0 1.5px 6px -2px #22325417;
}
.button:hover, .button:focus {
  background: #223254;
  color: #fff;
  border-color: #F5A623;
  box-shadow: 0 4px 24px -10px #f5a6231f, 0 2px 10px -6px #2232540f;
  outline: none;
}
.button.primary:hover, .button.primary:focus {
  background: #223254;
  color: #F5A623;
  border-color: #F5A623;
}

/* ===== FEATURE GRID & GRID CARDS (GEOMETRIC STYLE) ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 12px;
  justify-content: space-between;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px -5px #22325417;
  padding: 30px 24px 34px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 7px solid #F5A623;
  min-width: 220px;
  transition: transform .16s, box-shadow .16s;
  position: relative;
}
.feature-grid > div:hover {
  transform: translateY(-7px) scale(1.027);
  box-shadow: 0 8px 38px -12px #22325433;
  z-index: 2;
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 15px;
  filter: drop-shadow(0px 4px 12px #F5A62311);
}
.feature-grid h3 {
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 992px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 0;
  }
}

/* ===== GENERAL CARDS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 16px -6px #22325410;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 380px;
  border-left: 5px solid #F5A623;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 38px -12px #22325422;
  transform: translateY(-6px) scale(1.019);
  z-index: 2;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 26px;
  background: #E2F0EF;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 3px 20px -9px #22325413;
  color: #223254;
  margin-bottom: 20px;
  font-size: 1.07rem;
  border-left: 6px solid #F5A623;
  word-break: break-word;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card p {
  color: #223254;
  font-weight: 400;
}
.testimonial-card strong {
  color: #223254;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px -10px #22325422;
  transform: translateY(-5px) scale(1.0145);
}
@media (max-width: 650px) {
  .testimonial-card {
    padding: 18px 14px;
  }
}


/* ===== GEOMETRIC/STRUCTURED LAYOUTS ===== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 14px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
/* Section class spacing (MUST HAVE) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  position: relative;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
}

/* ===== TEXT SECTIONS AND FAQ ===== */
.text-section {
  background: #fff;
  border-radius: 16px 16px 6px 6px;
  padding: 22px 30px;
  box-shadow: 0 2px 10px -5px #22325411;
  margin-bottom: 12px;
}
.text-section h3 {
  margin-top: 8px;
}
.text-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
  list-style: disc;
}
.text-section li {
  margin-bottom: 7px;
}
@media (max-width: 650px) {
  .text-section {
    padding: 13px 8px;
  }
}

/* ===== CONTACT DATA & ICONS ===== */
.content-wrapper img[alt^="Telefon"],
.content-wrapper img[alt^="Email"],
.content-wrapper img[alt^="Adres"],
.content-wrapper img[alt^="Godziny"] {
  vertical-align: middle;
  width: 22px;
  margin-right: 7px;
  margin-bottom: 5px;
  display: inline-block;
}

/* ===== FOOTER ===== */
footer {
  background: #223254;
  color: #fff;
  padding: 22px 0;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
footer nav a {
  color: #E2F0EF;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
footer nav a:hover {
  background: #F5A623;
  color: #223254;
}
footer p {
  color: #E2F0EF;
  opacity: .85;
  font-size: .93rem;
  margin-top: 7px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10005;
  background: #223254;
  color: #fff;
  box-shadow: 0 -4px 20px -8px #22325422;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 23px 32px 23px 32px;
  gap: 32px;
  justify-content: space-between;
  animation: cookieBannerIn .5s cubic-bezier(.55,0,.3,1);
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner__text {
  font-size: 1.03rem;
  color: #fff;
  margin-right: 12px;
  flex: 1 1 auto;
  line-height: 1.6;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .button {
  padding: 10px 21px;
  border-radius: 13px;
  font-size: .98rem;
  border-width: 2px;
}
.cookie-banner .button.primary {
  background: #F5A623;
  color: #223254;
  border-color: #F5A623;
  font-weight: 700;
}
.cookie-banner .button.secondary {
  background: #E2F0EF;
  color: #223254;
  border-color: #E2F0EF;
}
.cookie-banner .button.settings {
  background: #223254;
  color: #F5A623;
  border: 2px solid #F5A623;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 18px 8px 19px 8px;
    font-size: .99rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 7px;
  }
}
@keyframes cookieBannerIn {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== COOKIE BANNER MODAL ===== */
.cookie-modal {
  position: fixed;
  z-index: 10010;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,50,84,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .22s cubic-bezier(.65,0,.47,1);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 6px 38px -10px #22325428;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 1.7rem;
  background: none;
  color: #223254;
  border: none;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s;
  z-index: 6;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #E2F0EF;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223254;
  font-size: 1.41rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  justify-content: space-between;
}
.cookie-modal__category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  color: #223254;
  font-weight: 500;
}
.cookie-modal__category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #F5A623;
  border-radius: 5px;
  background: #E2F0EF;
}
.cookie-modal__category .essential {
  color: #aaa; font-style: italic; font-size: .92em; margin-left: 7px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 9px;
}
.cookie-modal__actions .button {
  min-width: 100px;
}
@media (max-width: 480px) {
  .cookie-modal__dialog {
    padding: 15px 7px;
    border-radius: 14px;
  }
}

/* ===== FORM ELEMENTS (if any) ===== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #223254;
  background: #E2F0EF;
  border-radius: 10px;
  border: 2px solid #E2F0EF;
  padding: 11px 13px;
  margin-bottom: 13px;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #F5A623;
  outline: none;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 18px;
}
th, td {
  padding: 13px 9px;
  border: 1.2px solid #E2F0EF;
}
th {
  background: #223254;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}
tr:nth-child(even) {
  background: #E2F0EF;
}

/* ===== UTILS ===== */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }
.pt-0 { padding-top: 0px; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }

/* ===== RESPONSIVE ADAPTATIONS ===== */
@media (max-width: 600px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* ===== GEOMETRIC DECORATIVE ELEMENTS (Optional for Design Accent) ===== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: -21px;
  width: 48px; height: 48px;
  background: #F5A62322;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 70%);
  z-index: 0;
  border-radius: 10px 18px 7px 3px;
  opacity: .21;
  pointer-events: none;
}
@media (max-width: 650px) {
  .section:before { display: none; }
}

/* ===== ANIMATIONS ===== */
.button, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .21s, background .17s, color .16s, border .16s, transform .18s;
}

/* ===== VISUAL GEOMETRIC EFFECTS ===== */
.card, .testimonial-card, .feature-grid > div {
  border-radius: 18px 6px 18px 6px;
  border-top-right-radius: 26px;
}

/* ===== Z-INDEX AND OVERLAP CONTROL ===== */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 110 !important; }

/* ===== GEOMETRIC/STRUCTURED SCROLLBAR (Optional) ===== */
::-webkit-scrollbar {
  width: 12px; background: #E2F0EF; border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: #223254;
  border-radius: 8px;
}

/* ============ END OF STYLE.CSS ============ */
