/* -------------------------------------
CSS RESET & BASE STYLES
------------------------------------- */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F8F9;
  color: #1A2836;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none !important;
}
a {
  color: #1A2836;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #57BFCB;
}
ul, ol {
  margin-left: 1.2em;
  padding-left: 0.7em;
  margin-bottom: 1.5em;
}
strong {
  font-weight: 600;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Font Faces */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1A2836;
  margin-bottom: 16px;
}
h1 {font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px;}
h2 {font-size: 2rem;  margin-bottom: 20px;}
h3 {font-size: 1.25rem; margin-bottom: 14px;}
h4 {font-size: 1.125rem; margin-bottom: 12px;}
h5 {font-size: 1rem;   margin-bottom: 8px;}

p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1A2836;
}
p {
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}

/* -------------------------------------
SCANDINAVIAN CLEAN CONTAINERS & SPACING
------------------------------------- */
.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(26, 40, 54, 0.06);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 0;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F6F8F9;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(26,40,54,0.045);
  padding: 26px 24px 22px 24px;
  flex: 1 1 260px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 8px;
}

.map {
  background: #F6F8F9;
  border-radius: 8px;
  padding: 18px;
  margin-top: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 12px rgba(26,40,54,0.04);
  padding: 28px 22px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 11px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(26,40,54,0.07);
  border: 1px solid #e3e8ed;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(87,190,203,0.13);
}
.testimonial-card p {
  color: #1A2836;
  font-size: 1.1rem;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #57BFCB;
  margin-top: 4px;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------------------------------
NAVIGATION & HEADER
------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 0 20px rgba(26,40,54,0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
.logo img {
  height: 38px;
  width: auto;
  border-radius: 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1A2836;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 5px;
  transition: color 0.19s, background 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F8F9;
  color: #57BFCB;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 0.72em 1.7em;
  font-size: 1rem;
  border-radius: 7px;
  background: #F6F8F9;
  color: #1A2836;
  box-shadow: 0 1px 6px rgba(26,40,54,0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  margin-left: 16px;
}
.btn:hover, .btn:focus {
  background: #e5f5f7;
  color: #57BFCB;
}
.btn-primary {
  background: #57BFCB;
  color: #fff;
  box-shadow: 0 2px 14px rgba(87,191,203,0.10);
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1A2836;
  color: #fff;
}


/* -------------------------------------
FOOTER
------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #e3e8ed;
  padding: 40px 0 25px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}
footer img {
  height: 31px;
  margin-bottom: 14px;
}
footer p {
  font-size: 1rem;
  color: #576072;
  margin-bottom: 6px;
  line-height: 1.5;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #1A2836;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus{
  color: #57BFCB;
}

/* -------------------------------------
TABLES & ACCORDION (FAQ)
------------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin-bottom: 28px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(26,40,54,0.06);
}
thead {
  background: #57BFCB;
  color: #fff;
}
th, td {
  padding: 18px 12px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #e3e8ed;
}
th {font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;}
tr:last-child td {border-bottom: none;}

.faq-accordion h3 {
  font-size: 1.10rem;
  margin-bottom: 4px;
  cursor: pointer;
  padding: 12px 0 6px 0;
  color: #1A2836;
  transition: color 0.17s;
}
.faq-accordion h3:hover {
  color: #57BFCB;
}
.faq-accordion p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #43576b;
  line-height: 1.5;
  padding-left: 7px;
}

/* -------------------------------------
MOBILE NAVIGATION (HAMBURGER & OVERLAY)
------------------------------------- */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #57BFCB;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.5em;
  margin-left: 16px;
  border-radius: 6px;
  transition: background 0.17s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #c2eef3;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.27,0.9,0.26,1);
  box-shadow: -8px 0 37px rgba(26,40,54,0.11);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 20px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2836;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 5px;
  padding: 0.2em 0.4em;
  transition: background 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F6F8F9;
  color: #57BFCB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #1A2836;
  padding: 13px 6px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F6F8F9;
  color: #57BFCB;
}

@media (min-width: 1100px) {
  .container {padding: 0 32px;}
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  header .btn,
  header .btn-primary {
    display: none;
  }
  header .container {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  
  .container {
    padding: 0 12px;
  }
  .section {
    margin-bottom: 32px;
    padding: 24px 8px 30px 8px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
    gap: 14px;
  }
  h1 { font-size: 2rem; margin-bottom: 15px; }
  h2 { font-size: 1.25rem; margin-bottom: 10px; }
  h3 { font-size: 1.10rem; }
  .feature-grid, .footer .container, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .feature-grid > div {
    min-width: 0;
    padding: 19px 12px 16px 12px;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  footer .container {
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .btn,
  .btn-primary {
    font-size: 0.96rem;
    padding: 0.7em 1.2em;
    margin-left: 0;
    margin-top: 8px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.3rem; margin-bottom: 11px; }
  h2 { font-size: 1.1rem; }
  .section { padding: 18px 3vw; margin-bottom:16px; }
  .container { padding: 0 6px; }
  .feature-grid > div, .card { padding: 11px 5vw; }
}

/* -------------------------------------
SPECIFIC SCANDINAVIAN UI ELEMENTS
------------------------------------- */
.articles {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.articles article {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 10px rgba(26,40,54,0.06);
  flex: 1 1 270px;
  min-width: 220px;
  padding: 20px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.18s;
}
.articles article h3 {
  margin-bottom: 10px;
  color: #1A2836;
}
.articles article:hover {
  box-shadow: 0 4px 24px rgba(87,191,203,0.11);
}

.categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 12px;
}
.categories a {
  background: #F6F8F9;
  padding: 7px 14px;
  border-radius: 6px;
  color: #1A2836;
  font-size: 1em;
  font-family: 'Roboto', Arial, sans-serif;
  transition: background 0.17s, color 0.18s;
  border: 1px solid #e3e8ed;
}
.categories a:focus, .categories a:hover {
  background: #c2eef3;
  color: #1A2836;
}

/* List with icons (on Kontakt, Realizacje) */
ul li img {
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  margin-right: 7px;
}

/* -------------------------------------
COOKIE CONSENT BANNER & COOKIE MODAL
------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e3e8ed;
  box-shadow: 0 -2px 28px rgba(26,40,54,0.10);
  width: 100%;
  z-index: 1999;
  padding: 18px 30px 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: cookieBannerAppear 0.48s ease;
}
@keyframes cookieBannerAppear {
  from {transform: translateY(60px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  color: #1A2836;
  font-size: 1rem;
  margin-right: 18px;
  flex: 1 1 215px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 7px 19px;
  border-radius: 7px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(26,40,54,0.06);
}
.cookie-banner .btn-accept {
  background: #57BFCB;
  color: #fff;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #1A2836;
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #F6F8F9;
  color: #1A2836;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #80d6df;
  color: #1A2836;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: #1A2836;
  border: 1px solid #e3e8ed;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #c2eef3;
  color: #1A2836;
}
/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,40,54,0.23);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.34s;
}
@keyframes fadeInCookieModal {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 48px rgba(26,40,54,0.19);
  max-width: 425px;
  width: 90vw;
  padding: 34px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookieModalScaleIn 0.34s cubic-bezier(.32,1.6,.22,0.9);
}
@keyframes cookieModalScaleIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 8px;
  color: #1A2836;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 17px; right: 17px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1A2836;
  border-radius: 5px;
  padding: 0.2em 0.4em;
  transition: background 0.13s;
  z-index: 2;
}
.cookie-modal .close-cookie-modal:focus, .cookie-modal .close-cookie-modal:hover {
  background: #F6F8F9;
  color: #57BFCB;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F8F9;
  border-radius: 8px;
  padding: 10px 13px 10px 14px;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-category .category-label {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #1A2836;
}
.cookie-category .category-toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #e3e8ed;
  border-radius: 9px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-category .category-toggle:checked {
  background: #57BFCB;
}
.cookie-category .category-toggle::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
  box-shadow: 0 1px 2px rgba(26,40,54,0.04);
}
.cookie-category .category-toggle:checked::after {
  left: 17px;
}
.cookie-category .locked {
  color: #a3adb9;
  font-size: 0.94em;
  margin-left: 7px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .cookie-actions button {
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal .cookie-actions .btn-modal-accept {
  background: #57BFCB;
  color: #fff;
}
.cookie-modal .cookie-actions .btn-modal-accept:hover, .cookie-modal .cookie-actions .btn-modal-accept:focus {
  background: #1A2836;
  color: #fff;
}
.cookie-modal .cookie-actions .btn-modal-reject {
  background: #F6F8F9;
  color: #1A2836;
}
.cookie-modal .cookie-actions .btn-modal-reject:hover, .cookie-modal .cookie-actions .btn-modal-reject:focus {
  background: #80d6df;
  color: #1A2836;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 14px 10px 14px 6px;
    flex-direction: column;
    gap: 11px;
    align-items: stretch;
  }
}

/* ------------------------------------------
SUBTLE EFFECTS & MICRO-INTERACTIONS
------------------------------------------ */
.btn, .btn-primary,
.mobile-menu-toggle,
.mobile-menu-close,
.cookie-banner button,
.cookie-modal .close-cookie-modal,
.categories a, .main-nav a, .mobile-nav a, .faq-accordion h3 {
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.14s;
}
.btn:active, .btn-primary:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active,
.cookie-banner button:active {
  transform: scale(0.97);
}
.card, .feature-grid > div, .articles article {
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .feature-grid > div:hover, .articles article:hover {
  box-shadow: 0 5px 29px rgba(87,191,203,0.13);
  transform: translateY(-3px);
}

/* ------------------------------------------
ACCESSIBILITY: Focus states
------------------------------------------ */
a:focus-visible, button:focus-visible,
.categories a:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid #57BFCB;
  outline-offset: 2px;
}

/* ------------------------------------------
MISCELLANEOUS & UTILITY
------------------------------------------ */
::-webkit-scrollbar {
  width: 10px; background: #f6f8f9; border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #e3e8ed; border-radius: 4px;
}

.hide {
  display: none !important;
}

/* Don't let images/card content overlap: use spacing */
.card, .feature-grid > div, .testimonial-card, .articles article {
  margin-bottom: 20px;
}

/* Prevent overflows on mobiles */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}
