/* CSS RESET & NORMALIZE (mobile-first) */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #F5F5F5;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style-position: inside;
}
a {
  color: #185F80;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #32A8A0;
  outline-offset: 2px;
}

/* BRAND COLOR VARIABLES */
:root {
  --primary: #185F80;
  --secondary: #32A8A0;
  --accent: #F5F5F5;
  --electric: #36C3FE;
  --deep-blue: #0D2740;
  --lime: #00FFB2;
  --negative: #F93F60;
  --card-bg: #fff;
  --border: #e0e0e0;
  --shadow: rgba(24,95,128,0.10);
}

/* GENERAL LAYOUT & CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main {
  flex: 1 0 auto;
  width: 100%;
}

/* HEADER */
header {
  background: var(--deep-blue);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 16px var(--shadow);
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: bold;
  font-size: 1.06rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.16s;
  position: relative;
}
header nav a:hover, header nav a.active {
  background: var(--secondary);
  color: #fff;
}
header a.btn-primary {
  margin-left: 20px;
  min-width: 140px;
}

/* BURGER MENU (mobile) */
.mobile-menu-toggle {
  display: block;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 2.3rem;
  padding: 6px 14px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, transform 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: var(--lime);
  color: var(--deep-blue);
  transform: scale(1.08);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(13, 39, 64, 0.94);
  transform: translateX(100%);
  z-index: 1002;
  transition: transform 0.35s cubic-bezier(.59,-0.15,.54,1.19);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  margin: 20px 24px 0 0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 1003;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: var(--lime);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 28px 24px 28px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 12px 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--secondary);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 1023px) {
  header nav,
  header a.btn-primary {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, var(--primary) 72%, var(--electric) 100%);
  color: #fff;
  padding: 60px 0 70px 0;
  text-align: left;
}
.hero .container {
  align-items: stretch;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 640px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 5px;
  color: #fff;
  letter-spacing: -2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.11);
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.hero .btn-primary {
  font-size: 1.13rem;
  margin-top: 20px;
}

/* SECTION GENERIC LAYOUT (MANDATORY SPACING) */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

/* SECTION HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 1.85rem;
  color: var(--deep-blue);
}
h3 {
  font-size: 1.18rem;
  color: var(--secondary);
}


@media (min-width: 700px) {
  h1 { font-size: 2.7rem; }
  h2 {font-size: 2.2rem;}
}

p, li, ul, ol {
  font-size: 1rem;
  color: #232737;
}
p {
  margin-bottom: 16px;
}

strong {
  color: var(--primary);
  font-weight: 700;
}

/* FLEX FEATURES GRID (multiple layouts) */
.features-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.features-grid > div,
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 28px var(--shadow);
  padding: 30px 22px 18px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
  min-width: 220px;
  flex: 1 1 235px;
  border: 2px solid var(--border);
}
.features-grid > div:hover,
.card:hover {
  transform: scale(1.035);
  box-shadow: 0 10px 32px 2px rgba(24, 95, 128, 0.12),0 0px 0px 1px var(--electric);
  z-index: 1;
}
.features-grid img,
.card img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

/* .feature-item pattern */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* .testimonial-card pattern */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px var(--shadow);
  border: 1.5px solid #E1F8F7;
  transition: box-shadow 0.18s, background 0.18s;
  color: #17243B; /* Ensured dark text for contrast */
  max-width: 600px;
}
.testimonial-card:hover {
  background: var(--lime);
  box-shadow: 0 8px 32px var(--secondary);
}
.testimonial-card p {
  color: #185F80;
  font-style: italic;
  margin-bottom: 2px;
  font-size: 1.12rem;
  text-shadow: 0 1px 0 rgba(49,212,215,0.03);
}
.testimonial-name {
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.stars {
  color: #FFD600;
  margin-left: 8px;
  font-size: 1.18em;
  letter-spacing: 2px;
}

/* PROMO HIGHLIGHT */
.promo-section .promo-highlight {
  background: var(--electric);
  color: var(--deep-blue);
  font-weight: 700;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px var(--shadow);
  display: inline-block;
}

/* BUTTONS */
.btn-primary,
button.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  padding: 13px 34px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(90deg, var(--secondary), var(--lime));
  color: #153B52;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 0.16s, color 0.18s, transform 0.18s, box-shadow 0.17s;
  outline: none;
  z-index: 2;
}
.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:focus {
  background: linear-gradient(90deg, var(--lime), var(--secondary));
  color: var(--primary);
  box-shadow: 0 5px 24px var(--primary), 0 1px 0px var(--lime);
  transform: translateY(-3px) scale(1.045);
}

/* CONTENT GRIDS (for poradnik, realizacje, etc.) */
.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;
}
@media (max-width: 768px) {
  .text-image-section,
  .features-grid,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 2px 20px var(--shadow);
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid var(--secondary);
  transition: box-shadow 0.16s, transform 0.16s;
  min-width: 200px;
}

/* Contact and map snippet */
.map-snippet {
  background: #E7FBFD;
  border-radius: 11px;
  padding: 16px 22px;
  margin: 24px 0 0 0;
  color: var(--primary);
  font-size: 1.08rem;
  box-shadow: 0 2px 12px rgba(49,168,160,0.08);
}
.contact-teaser {
  background: linear-gradient(88deg, var(--secondary) 64%, var(--lime) 100%);
  color: var(--deep-blue);
  border-radius: 30px;
  box-shadow: 0 2px 20px var(--shadow);
  margin-bottom: 0;
}
.contact-teaser h2, .contact-teaser a {
  color: var(--deep-blue) !important;
}

/* PROMO LISTS, GENERAL UL/OL */
ul, ol {
  margin-bottom: 14px;
  padding-left: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.5;
  padding-left: 0.7em;
}

/* FOOTER */
footer {
  background: var(--deep-blue);
  color: #fff;
  font-size: 1rem;
  padding: 20px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px 22px;
}
.footer-brand,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px 14px;
  align-items: center;
}
.footer-nav a {
  color: var(--lime);
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.14s, text-decoration 0.18s;
  text-decoration: underline dotted var(--secondary) 1px;
}
.footer-nav a:hover {
  color: var(--electric);
  text-decoration: underline solid var(--lime) 2px;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-contact p {
  color: #baffdb;
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--deep-blue);
  color: #fff;
  padding: 24px 16px 20px 16px;
  box-shadow: 0 -4px 22px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInCookie 0.6s cubic-bezier(.55,0,.48,1.17) 1;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(90px);}
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  font-size: 1.01rem;
  color: #fff;
  text-align: center;
  max-width: 640px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 30px;
  padding: 10px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.18s, transform 0.16s;
  margin-bottom: 2px;
}
.cookie-accept {
  background: var(--lime);
  color: var(--deep-blue);
}
.cookie-reject {
  background: var(--negative);
  color: #fff;
}
.cookie-settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn:hover {
  box-shadow: 0 2px 14px var(--shadow);
  transform: translateY(-2px) scale(1.03);
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,39,64,0.89);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.cookie-modal-content {
  background: #fff;
  color: var(--deep-blue);
  border-radius: 19px;
  padding: 38px 30px 24px 30px;
  max-width: 90vw;
  width: 400px;
  box-shadow: 0 6px 42px var(--primary);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: fadeInModal 0.32s;
}
.cookie-modal-content h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0 10px 0;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 24px; height: 24px;
}
.cookie-category label {
  font-size: 1.06rem;
  color: var(--deep-blue);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  color: var(--negative);
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97) translateY(40px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

/* UTILITIES */
.hide { display: none!important; }
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* RESPONSIVE FONTS, LAYOUT AND SPACING */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    min-height: 52px;
  }
  .hero, section {
    padding: 26px 4px 30px 4px;
    margin-bottom: 34px;
  }
  h1 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.12rem;
    margin-bottom: 11px;
  }
  .hero .content-wrapper,
  .content-wrapper {
    gap: 13px;
  }
  .footer-brand img {
    width: 36px;
    height: 36px;
  }
  .btn-primary, .cookie-btn {
    font-size: 0.98rem;
    padding: 10px 14px;
  }
  .card, .features-grid > div {
    padding: 16px 14px 6px 14px;
    font-size: 1rem;
    min-width: 140px;
  }
}

/* OVERRIDES: CARD, GAP, FLEXBOX ONLY */
.card-container, .features-grid, .content-grid, .text-image-section {
  gap: 20px;
  flex-wrap: wrap;
}
.card { margin-bottom: 20px;}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HIGH ENERGY, VIBRANT EFFECTS */
section, .card, .btn-primary, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.2s, background 0.18s, color 0.16s, transform 0.19s;
}
.features-grid > div:before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 55px; height: 55px;
  background: var(--lime);
  opacity: 0.13;
  filter: blur(8px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.features-grid > div:hover:before {
  opacity: 0.26;
}

/* Inputs (for future forms) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: #FFF;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
}

/* Hide scrollbars for overlays on mobile */
.mobile-menu,
.cookie-modal {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

::-webkit-scrollbar { width: 12px; background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 6px; }

/* FONT FACE FALLBACKS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;700&display=swap');
