/* --- CSS RESET & BASE TYPOGRAPHY --- */
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,
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #23495B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
main, section, article, aside, nav, header, footer {
  display: block;
}
a {
  color: #23495B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 3px solid #F1AC23;
  outline-offset: 3px;
}

/* --- FLEX LAYOUT UTILS & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ----- TYPOGRAPHY SCALE for modern_bold ----- */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #23495B;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ---- HEADER & NAV ---- */
header {
  background: #23495B;
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(35,73,91,0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  gap: 0;
}
.logo img {
  width: 148px;
  height: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  padding: 8px 0;
  transition: color .2s;
}
nav a:not(.btn-primary):hover {
  color: #F1AC23;
}
.btn-primary {
  background: #F1AC23;
  color: #23495B !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 24px;
  border: none;
  box-shadow: 0 3px 16px rgba(35,73,91,0.08);
  transition: background .17s, color .17s, transform .17s;
  margin-left: 16px;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: #23495B;
  color: #F1AC23;
  transform: translateY(-2px) scale(1.03);
}
.btn-accent {
  background: #23495B;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 24px;
  border: 2px solid #F1AC23;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(35,73,91,0.06);
  transition: background .17s, color .17s, transform .17s;
  cursor: pointer;
}
.btn-accent:hover, .btn-accent:focus {
  background: #F1AC23;
  color: #23495B !important;
  transform: translateY(-2px) scale(1.04);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #F1AC23;
  cursor: pointer;
  margin-left: 18px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 105;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(241,172,35,0.14);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #23495B;
  color: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.77,0,.18,1);
  box-shadow: 2px 0 24px rgba(35,73,91,0.08);
  display: flex;
  flex-direction: column;
  padding: 48px 32px 24px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #F1AC23;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 121;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1AC23;
  color: #23495B;
}

/* --- SECTION, LAYOUT FLEXBOX UTILS --- */
section {
  width: 100%;
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(35,73,91,0.04);
  position: relative;
  transition: box-shadow 0.18s;
}
section:nth-child(even) {
  background: #E5EEF0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2px solid #E5EEF0;
  box-shadow: 0 2px 8px rgba(35,73,91,0.04);
  border-radius: 12px;
  padding: 32px 20px 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 260px;
  transition: box-shadow .16s, border-color .16s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(35,73,91,0.12), 0 0 0 2px #F1AC23;
  border-color: #F1AC23;
  transform: translateY(-2px) scale(1.025);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid #F1AC23;
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 560px;
  box-shadow: 0 6px 32px rgba(241,172,35,0.14);
  transition: box-shadow .15s, border-color .15s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #222;
  font-weight: 700;
}
.testimonial-meta {
  font-size: 0.92rem;
  color: #23495B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-top: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(35,73,91,0.22);
  border-color: #23495B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Badge, Price etc. */
.service-price {
  color: #F1AC23;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 6px;
  display: inline-block;
}

/* ---- LIST w/ icons ---- */
ul li img, ol li img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: -3px;
}
.content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 0;
  list-style: none;
}
.content-wrapper ol {
  counter-reset: item;
}
.content-wrapper ol li {
  position: relative;
  padding-left: 2.2em;
}
.content-wrapper ol li:before {
  content: counter(item) '.';
  counter-increment: item;
  position: absolute;
  left: 0;
  color: #F1AC23;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15em;
}

/* ---- FOOTER ---- */
footer {
  background: #23495B;
  color: #fff;
  padding: 44px 0 16px 0;
  margin-top: 0;
}
footer .container {
  flex-direction: row;
  gap: 44px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-basis: 35%;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F1AC23;
}
.company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1;
}
.footer-social img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 2px #F1AC23);
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #23495B;
  color: #fff;
  padding: 24px 18px 20px 18px;
  z-index: 3000;
  box-shadow: 0 -3px 28px rgba(35,73,91,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  animation: slideBounceIn 0.5s cubic-bezier(.6,.7,.3,1);
}
@keyframes slideBounceIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 16px;
  margin-right: 0;
  margin-top: 0;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-accent {
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 8px;
}
.cookie-banner .btn-settings {
  background: #E5EEF0;
  color: #23495B;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 18px;
  margin-left: 8px;
  transition: background 0.16s, color 0.16s;
  cursor: pointer;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #F1AC23;
  color: #23495B;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(35,73,91,0.77);
  animation: fadeIn 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #23495B;
  border-radius: 16px;
  padding: 36px 22px 28px 22px;
  width: 95vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 48px rgba(35,73,91,0.27);
  animation: modalShow 0.32s cubic-bezier(.85,.1,.18,.99);
}
@keyframes modalShow {
  0% { transform: translateY(-48px) scale(.88); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #23495B;
}
.cookie-modal ul {
  margin-bottom: 10px;
}
.cookie-modal li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category-toggle {
  width: 36px;
  height: 20px;
  background: #E5EEF0;
  border-radius: 32px;
  position: relative;
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
}
.cookie-category-toggle[data-checked="true"] {
  background: #F1AC23;
}
.cookie-category-toggle:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-category-toggle[data-checked="true"]:before {
  left: 17px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-end;
  width: 100%;
}
.cookie-modal button {
  min-width: 108px;
  padding: 8px 0;
}
.cookie-modal .cookie-essential {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  background: none;
  border: none;
  color: #23495B;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1120px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  section, .section {
    padding: 32px 6px;
  }
  .footer-nav {
    flex-basis: 50%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.38rem; }
  .container {
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    padding: 0 6px;
    gap: 0;
    height: 60px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo img {
    width: 118px;
  }
  .footer-nav { flex-basis: 100%; }
  section, .section {
    padding: 22px 3px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    max-width: 100%;
  }
  .content-wrapper {
    gap: 15px;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 16px 7px 16px 13px;
  }
}
@media (max-width: 600px) {
  .container, header .container, footer .container {
    max-width: 100vw;
    padding: 0 3px;
  }
  section, .section {
    padding: 13px 1.5vw;
    margin-bottom: 28px;
  }
  .footer-social img {
    height: 38px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .footer-nav {
    font-size: 0.9rem;
    gap: 3px;
  }
  .company-info {
    font-size: 0.8rem;
    gap: 1px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 17px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.btn-primary, .btn-accent, .cookie-modal button, .cookie-banner button {
  transition: all .17s cubic-bezier(.77,0,.18,1);
}
.card, .testimonial-card {
  transition: box-shadow .15s cubic-bezier(.6,.3,.18,1), border .15s, transform .16s;
}

/* --- VISUAL DECORATION SHAPES (simple geometric) --- */
section::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  width: 56px; height: 56px;
  border-radius: 24px 60px 34px 44px;
  background: #F1AC23;
  left: -35px; top: -32px;
  opacity: .13;
  pointer-events: none;
}
section:nth-child(even)::before {
  background: #23495B;
  opacity: .07;
}

/* --- ADDITIONAL CLASSES/UTILITIES as needed --- */
#map img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  margin: 16px 0 0 0;
  box-shadow: 0 2px 19px rgba(35,73,91,0.07);
}

/* --- FOCUS and ACCESSIBILITY ENHANCEMENTS --- */
.btn-primary:focus, .btn-accent:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 3px solid #F1AC23;
  outline-offset: 1px;
}

/* --- Z-INDEX Layering for Popups/Overlays --- */
header      { z-index: 40; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4000; }

/* --- Hide scrollbar for mobile menu --- */
.mobile-menu::-webkit-scrollbar { width: 0; background: transparent; }
.mobile-menu    { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Button States --- */
button[disabled], .btn-primary[disabled], .btn-accent[disabled] {
  opacity: .6;
  pointer-events: none;
}

/* --- Geometry for Cards (modern bold) --- */
.card, .testimonial-card {
  border-radius: 13px 31px 18px 16px;
}

/* --- Miscellaneous paddings for breathing room --- */
section h1, section h2, section h3, section p, .content-wrapper > ul, .content-wrapper > ol {
  margin-left: 0;
  margin-right: 0;
}

/* --- Ensure proper spacing between cards and testimonials --- */
.content-wrapper > .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}
.content-wrapper > .card:not(:last-child){
  margin-bottom: 24px;
}

/* --- Prevent content overlapping & maintain gaps --- */
section,.section,.container,.content-wrapper,.card-container,.card,.card-content,.content-grid,.testimonial-card,.feature-item  {
  box-sizing: border-box;
}

/* --- END OF CSS: Cresta Wynajmu modern_bold theme --- */
