/* ========================================================== */
/*                CSS RESET & NORMALIZE                      */
/* ========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f5f5f5;
  color: #153956;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
a {
  color: #27A29F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #153956;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
}
input, textarea {
  font-family: inherit;
}

/* ========================================================== */
/*                      COLOR VARIABLES                      */
/* ========================================================== */
:root {
  --color-primary: #153956;
  --color-secondary: #27A29F;
  --color-accent: #F5F5F5;
  --color-heading: #153956;
  --color-bg-light: #F5F5F5;
  --color-bg-white: #fff;
  --color-bg-dark: #13263e;
  --color-button: #27A29F;
  --color-button-hover: #153956;
  --color-link: #27A29F;
  --color-link-hover: #153956;
  --color-testimonial-bg: #fff;
  --color-testimonial-text: #153956;
  --color-footer-bg: #153956;
  --color-footer-text: #fff;
  --box-shadow-card: 0 6px 24px rgba(21,57,86,0.09),0 2px 8px rgba(39,162,159,0.09);
  --border-radius-card: 24px;
}

/* ========================================================== */
/*                     TYPOGRAPHY                            */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-heading);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #27A29F, #153956 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 900;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 700;
}
p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
}
.text-section {
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
}

/* ========================================================== */
/*                  HEADER / NAVIGATION STYLE                */
/* ========================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(21,57,86,0.04);
  position: sticky;
  top: 0;
  z-index: 99;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 24px;
}
header nav img {
  height: 42px;
  margin-right: 34px;
  flex-shrink: 0;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  border: 0;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
}

/* ========================================================== */
/*                      MOBILE MENU                          */
/* ========================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,245,245,0.97);
  box-shadow: -6px 0 32px rgba(21,57,86,0.09);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.42,0,.58,1);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  margin: 16px 34px;
  border-radius: 16px;
  padding: 6px 18px;
  transition: background 0.23s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: 48px;
  width: 100%;
  padding: 0 34px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  padding: 12px 0;
  width: 100%;
  border-radius: 8px;
  background: none;
  transition: color 0.19s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--color-secondary);
  padding-left: 14px;
}

/* ========================================================== */
/*                  MAIN LAYOUT & CONTAINERS                 */
/* ========================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: var(--color-bg-white);
  box-shadow: var(--box-shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.28s;
}
.section:hover {
  box-shadow: 0 10px 40px rgba(21,57,86,0.13);
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 48px;
    padding: 28px 10px;
  }
}

/* ========================================================== */
/*                    FLEX LAYOUT UTILS                      */
/* ========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius-card);
  background: #fff;
  box-shadow: var(--box-shadow-card);
}
.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: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  box-shadow: 0 4px 18px rgba(21,57,86,0.08);
  border-radius: 18px;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 700px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(39,162,159,0.11);
}
.testimonial-card strong {
  display: block;
  margin-left: auto;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-secondary);
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 12px;
}


/* ========================================================== */
/*                      CTA BUTTON STYLE                     */
/* ========================================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.13rem;
  color: #fff;
  background: var(--color-button);
  border: none;
  border-radius: 18px;
  padding: 16px 34px;
  box-shadow: 0 3px 24px rgba(39,162,159,0.07);
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.19s, transform 0.17s, box-shadow 0.19s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-button-hover);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 9px 34px rgba(21,57,86,0.17);
  outline: none;
}

/* ========================================================== */
/*                       CARD DESIGN                         */
/* ========================================================== */
.card {
  background: var(--color-bg-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--box-shadow-card);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 360px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
  box-shadow: 0 12px 40px rgba(21,57,86,0.15),0 4px 12px rgba(39,162,159,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ========================================================== */
/*      ARTISTIC / CREATIVE DECORATIVE ELEMENTS IN CARDS      */
/* ========================================================== */
.card::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -38px;
  width: 90px;
  height: 90px;
  background: rgba(39,162,159,0.08);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  left: -22px;
  bottom: -35px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(21,57,86,0.06);
  z-index: 1;
  pointer-events: none;
}

/* ========================================================== */
/*                    UL & OL STYLES                         */
/* ========================================================== */
ul, ol {
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 9px;
  position: relative;
  padding-left: 18px;
  font-size: 1rem;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin-right: 8px;
  position: absolute;
  left: 0;
  top: 7px;
}
ol li::before {
  display: none;
}
ol {
  list-style: decimal inside;
  color: var(--color-secondary);
  font-weight: bold;
  margin-left: 16px;
}
ol li {
  padding-left: 4px;
  color: var(--color-primary);
  font-weight: normal;
}

/* ========================================================== */
/*                       FOOTER DESIGN                       */
/* ========================================================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 0 20px;
  text-align: center;
  margin-top: 64px;
  position: relative;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--color-footer-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.86;
  transition: opacity 0.16s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer .brand {
  margin-bottom: 16px;
}
footer .brand img {
  height: 38px;
}
footer p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
}

/* ========================================================== */
/*                 COOKIE CONSENT BANNER                     */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--color-primary);
  border-top: 2px solid #27A29F;
  box-shadow: 0 -6px 26px rgba(21,57,86,0.16);
  padding: 22px 14px 22px 24px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: banner-fade-in 0.7s;
}
@keyframes banner-fade-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  flex: 1 1 250px;
  max-width: 700px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 10px 22px;
  margin: 0;
  font-size: 1rem;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.decline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.decline:hover, .cookie-btn.decline:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(21,57,86,0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.4s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-inner {
  background: #fff;
  color: var(--color-primary);
  border-radius: 24px;
  box-shadow: 0 8px 64px rgba(21,57,86,0.23);
  padding: 36px 32px 26px;
  min-width: 300px;
  max-width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal-inner h2 {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.07rem;
}
.cookie-category input[type=checkbox] {
  width: 28px;
  height: 28px;
  accent-color: var(--color-secondary);
}
.cookie-category span {
  flex: 1 1 auto;
}
.cookie-modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 26px;
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ========================================================== */
/*             ARTISTIC/CREATIVE UNIQUE ELEMENTS              */
/* ========================================================== */
.section h2 {
  position: relative;
  padding-left: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
.section h2::before {
  content: '';
  display: block;
  width: 14px;
  height: 36px;
  background: var(--color-secondary);
  border-radius: 12px;
  position: absolute;
  left: 0;
  top: 6px;
}
.section {
  border-left: 7px solid var(--color-secondary);
  box-shadow: 0 2px 18px rgba(21,57,86,0.045);
  border-radius: 0 28px 28px 0;
  position: relative;
  overflow: clip;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  top: -32px;
  right: -60px;
  width: 110px;
  height: 110px;
  background: rgba(39,162,159,0.10);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Stylowe mikrointerakcje dekoracyjne na buttonach */
.cta-button::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../assets/logo-mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  opacity: 0.66;
  animation: button-move 2.1s infinite linear alternate;
  filter: drop-shadow(0 2px 6px rgba(39,162,159,0.10));
}
@keyframes button-move {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-3px) scale(1.11) rotate(-7deg); }
}

/* ========================================================== */
/*                     RESPONSIVE DESIGN                     */
/* ========================================================== */
@media (max-width: 1150px) {
  .container {
    max-width: 970px;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 24px 5vw;
    margin-bottom: 36px;
    border-left-width: 4px;
    border-radius: 0 18px 18px 0;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  main {
    padding-top: 12px;
  }
  .section {
    margin-bottom: 34px;
    padding: 18px 2vw;
    border-left-width: 0;
    border-radius: 16px;
    box-shadow: 0 1px 11px rgba(21,57,86,0.04);
  }
  .section h2 {
    padding-left: 12px;
    font-size: 1.35rem;
  }
  .section h2::before {
    width: 8px;
    height: 22px;
    border-radius: 6px;
    top: 5px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.97rem;
    padding: 18px 11px;
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .feature-item {
    gap: 8px;
    padding: 8px 0;
  }
  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 13px 0;
    font-size: 1rem;
  }
}

@media (max-width:500px) {
  .container {
    padding: 0 4px;
  }
  .section {
    padding: 8vw 2vw;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 1.42rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.09rem;
    margin-bottom: 7px;
  }
  .cta-button::before {
    width: 18px; height: 18px;
    margin-right: 5px;
  }
}

/* ========================================================== */
/*                MISC. FORMATTING ELEMENTS                  */
/* ========================================================== */
address {
  font-style: normal;
  margin-bottom: 11px;
  color: var(--color-secondary);
}

hr {
  height: 0;
  border: 0;
  border-top: 1.25px dashed var(--color-secondary);
  margin: 19px 0;
  opacity: 0.35;
}

/* Tabs, toggles for cookies modal (basic visual only) */
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
  margin-right: 9px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #ddd;
  border-radius: 24px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background .23s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-secondary);
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(21,57,86,0.12);
  transition: 0.23s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ========================================================== */
/*                SCROLLBAR - Artistic style                 */
/* ========================================================== */
body::-webkit-scrollbar {
  width: 11px;
  background: #E7F5F5;
}
body::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* ========================================================== */
/*      ARTISTIC ACCENT - Color splashes and underline        */
/* ========================================================== */
h1, h2, h3 {
  position: relative;
}
h1::after, h2::after, h3::after {
  content: '';
  display: block;
  width: 66px;
  height: 5px;
  margin-top: 7px;
  background: linear-gradient(90deg, #27A29F 60%, #153956 100%);
  border-radius: 4px;
  opacity: 0.4;
}
/* Only show on h1 */
h2::after, h3::after {
  width: 34px;
  height: 4px;
  margin-top: 4px;
}

/* ========================================================== */
/*                  ANIMATIONS & MICRO-UX                    */
/* ========================================================== */
.card, .testimonial-card, .section, .cta-button {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .section:hover, .testimonial-card:hover {
  transform: scale(1.012);
}
.section:hover {
  box-shadow: 0 8px 32px rgba(21,57,86,0.13),0 2px 8px rgba(39,162,159,0.10);
}
.cta-button:active {
  transform: scale(0.98);
}

/* Animated underline links (footer & navigation) */
footer nav a, header nav a {
  position: relative;
  overflow: hidden;
}
footer nav a::after, header nav a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px; left: 5%;
  height: 2.5px;
  width: 90%;
  background: var(--color-secondary);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
footer nav a:hover::after, header nav a:hover::after {
  opacity: 0.9;
}

/* ========================================================== */
/*            ENSURE ADEQUATE SPACING FOR CARDS               */
/* ========================================================== */
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}
.card, .testimonial-card {
  margin-right: 20px;
}
.card:last-child, .testimonial-card:last-child {
  margin-right: 0;
}
/* Remove card margin-right in vertical stacks on mobile */
@media (max-width: 800px) {
  .card, .testimonial-card {
    margin-right: 0;
    margin-bottom: 18px;
    min-width: 0;
    max-width: 100%;
  }
}

/* ================= END CSS ========================= */
