/* === RESET & BASE STYLES === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F3F8FB;
  color: #254E74;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1B3D5C;
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: #6db0da;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
strong {
  font-weight: bold;
}
hr {
  border: none;
  border-bottom: 1px solid #8AC2DA;
  margin: 32px 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #254E74;
  margin-bottom: 12px;
  line-height: 1.12;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.25rem; }
p, li, details, summary {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
summary {
  font-weight: 600;
  cursor: pointer;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(138, 194, 218, 0.14);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow .25s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(37, 78, 116, 0.13), 0 2px 8px rgba(138, 194, 218, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.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;
  background: #fff;
  gap: 20px;
  margin-bottom: 26px;
  padding: 20px 26px 18px 26px;
  border-left: 6px solid #8AC2DA;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(37, 78, 116, 0.07);
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card:hover {
  border-color: #254E74;
  box-shadow: 0 4px 18px rgba(37, 78, 116, 0.12);
}
.testimonial-card span {
  color: #254E74;
  font-size: 1rem;
  font-style: italic;
  margin-top: -8px;
}

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

.text-section {
  margin-bottom: 18px;
}

/* === HEADER === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 32px rgba(37, 78, 116, 0.06);
  z-index: 999;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 0;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
header nav a {
  color: #254E74;
  font-size: 1rem;
  border-radius: 10px;
  padding: 6px 14px;
  transition: background .16s, color .16s;
}
header nav a:not(.btn-primary):hover {
  background: #E4F3F8;
  color: #1D6A96;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #254E74;
  color: #fff !important;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(37, 78, 116, 0.08);
  padding: 10px 28px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background .17s, transform .15s, box-shadow .15s;
  letter-spacing: 0.03rem;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1D6A96;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(37, 78, 116, 0.13);
}
.btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #8AC2DA;
  color: #254E74 !important;
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-left: 18px;
  box-shadow: 0 1px 4px rgba(138, 194, 218, 0.11);
  transition: background .17s, color .18s, box-shadow .15s;
  letter-spacing: 0.02rem;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F3F8FB;
  color: #1D6A96;
  box-shadow: 0 2px 12px rgba(37, 78, 116, 0.14);
}

.mobile-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 2.1rem;
  color: #254E74;
  cursor: pointer;
  margin-left: 16px;
  transition: color .1s;
  z-index: 1102;
}
.mobile-menu-toggle:focus { color: #1D6A96; outline: none; }

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,248,251, 0.97);
  box-shadow: 0 8px 40px rgba(37, 78, 116, 0.13);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.80,0,0.28,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #254E74;
  font-size: 2.1rem;
  margin: 24px 0 0 28px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1202;
  transition: color .15s;
}
.mobile-menu-close:focus { color: #1D6A96; outline: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 36px 0 0 38px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  width: auto;
  min-width: 180px;
}
.mobile-nav a {
  color: #254E74;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color .19s, color .15s;
  font-weight: 700;
  display: block;
}
.mobile-nav a:hover {
  border-color: #8AC2DA;
  color: #1D6A96;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(105deg, #8AC2DA 0%, #F3F8FB 74%);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  padding: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  height: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 600px;
  z-index: 2;
}
.hero h1 {
  color: #254E74;
  font-size: 2.6rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -1px;
}
.hero p {
  color: #254E74;
  font-size: 1.18rem;
  margin-bottom: 38px;
  opacity: 0.9;
}

/* === FEATURE GRID (Index page) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(37, 78, 116, 0.07);
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 280px;
  padding: 24px 20px 18px 20px;
  text-align: left;
  transition: box-shadow .2s, transform .16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  position: relative;
  margin-bottom: 0;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(37, 78, 116, 0.13);
  transform: scale(1.02) rotate(-2deg);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

/* === BLOG FILTERS === */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-filters label {
  font-weight: 600;
  color: #254E74;
  font-size: 1.02rem;
}
.blog-filters select, .blog-filters input[type="text"] {
  border: 1.5px solid #8AC2DA;
  background: #FFF;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 10px;
  outline: none;
  transition: border-color .18s;
}
.blog-filters select:focus, .blog-filters input[type="text"]:focus {
  border-color: #254E74;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  margin-bottom: 0;
}
.blog-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(37, 78, 116, 0.09);
  padding: 22px 18px 20px 18px;
  min-width: 200px;
}
.blog-list h3 {
  margin-bottom: 7px;
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}
.blog-list a {
  color: #254E74;
  text-decoration: underline;
  word-break: break-word;
  font-size: 1.06rem;
}

/* === TABLE STYLING (Cennik page) === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(37, 78, 116, 0.09);
  margin-bottom: 24px;
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid #E4F3F8;
  padding: 13px 10px 12px 10px;
  color: #254E74;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  font-size: 1rem;
}
th {
  background: #8AC2DA;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 800;
}
tr:last-child td {
  border-bottom: none;
}
td:first-child, th:first-child {
  text-align: left;
  font-weight: 700;
}

/* === DETAILS/FAQ (Cennik) === */
details {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(37, 78, 116, 0.09);
  margin-bottom: 18px;
  padding: 15px 20px;
  cursor: pointer;
  transition: box-shadow .18s;
}
details[open] {
  box-shadow: 0 2px 16px rgba(37, 78, 116, 0.12);
}
details summary {
  font-size: 1.13rem;
}
details p {
  color: #254E74;
  opacity: 0.95;
  margin-bottom: 0;
}

/* === THANK YOU PAGE === */
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

/* === FOOTER === */
footer {
  background: #E4F3F8;
  padding: 36px 0 12px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
footer nav a {
  color: #254E74;
  font-weight: 700;
  opacity: 0.85;
  border: none;
  padding: 0;
  transition: color .14s;
}
footer nav a:hover {
  color: #1D6A96;
}
footer img {
  height: 40px;
  margin-bottom: 6px;
}
footer p, footer span, footer a {
  color: #254E74;
  opacity: 0.90;
}
footer div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.98rem;
}
footer p {
  font-size: 0.95rem;
  margin-top: 20px;
  opacity: 0.6;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #fff;
  color: #254E74;
  width: 100vw;
  box-shadow: 0 -4px 24px rgba(37, 78, 116, 0.15);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2222;
  transition: transform .28s cubic-bezier(.8,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  border: none;
  font-size: 0.97rem;
  padding: 8px 20px;
  margin: 0;
  min-width: 137px;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .15s;
}
.cookie-banner .accept {
  background: #254E74;
  color: #fff;
  box-shadow: 0 1px 4px rgba(37, 78, 116, 0.06);
}
.cookie-banner .accept:hover { background: #1D6A96; }
.cookie-banner .reject {
  background: #8AC2DA;
  color: #254E74;
}
.cookie-banner .reject:hover { background: #E4F3F8; color: #1D6A96; }
.cookie-banner .settings {
  background: #fff;
  color: #254E74;
  border: 1.5px solid #8AC2DA;
}
.cookie-banner .settings:hover {
  background: #F3F8FB;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,78,116,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 38px 26px 25px 26px;
  max-width: 380px;
  width: 92vw;
  box-shadow: 0 8px 32px rgba(37, 78, 116, 0.26);
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: modalShow .5s;
}
@keyframes modalShow {
  0% { transform: scale(0.98) translateY(32px); opacity: 0; }
  98% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #8AC2DA;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  font-size: 0.97rem;
  cursor: pointer;
}
.cookie-modal .accept {
  background: #254E74;
  color: #fff;
}
.cookie-modal .reject {
  background: #8AC2DA;
  color: #254E74;
}
.cookie-modal .cancel {
  background: #fff;
  color: #254E74;
  border: 1.3px solid #8AC2DA;
}

/* === FORMS & INPUTS === */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  outline: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #8AC2DA;
  margin-bottom: 16px;
  background: #fff;
  color: #254E74;
  transition: border-color .16s;
  box-shadow: 0 1px 3px rgba(37,78,116,0.07);
}
input:focus, select:focus, textarea:focus {
  border-color: #254E74;
}
::placeholder {
  color: #8AC2DA;
  opacity: 1;
}
button:focus, a:focus {
  outline: 2px solid #8AC2DA;
  outline-offset: 2px;
}

/* === UL/LIST STYLES === */
ul, ol {
  padding-left: 22px;
  margin-bottom: 15px;
  margin-top: 7px;
}
ul li, ol li {
  margin-bottom: 6px;
  line-height: 1.6;
}
ul li::marker, ol li::marker {
  color: #8AC2DA;
  font-size: 1.13em;
}

/* === Z-INDEX LAYERING === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 3999;
}

/* === ANIMATIONS === */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition-property: background, color, box-shadow, transform;
  transition-duration: .16s;
  transition-timing-function: cubic-bezier(.61,.21,.71,.89);
}
.section, .testimonial-card, .feature-grid > div, .card {
  animation: fadeinUp 0.58s cubic-bezier(.44,.77,.51,1) both;
}
@keyframes fadeinUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .feature-grid {
    gap: 26px;
    justify-content: center;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 310px;
  }
}
@media (max-width: 880px) {
  .container {
    max-width: 97vw;
    padding: 0 7px;
  }
  .hero .container {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  header .container {
    flex-direction: row;
    padding: 10px 5px;
  }
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .hero {
    min-height: auto;
    padding: 0 0 20px 0;
  }
  .testimonial-card {
    padding: 14px 10px 12px 10px;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 7px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .thank-you-actions {
    gap: 12px;
    flex-direction: column;
  }
  table th, table td {
    font-size: 0.97rem;
    padding: 9px 5px 8px 5px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .container, .section {
    padding: 0 2px;
  }
  .blog-filters {
    gap: 10px;
  }
}

/* === CREATIVE ARTISTIC ELEMENTS === */
body {
  background: linear-gradient(120deg, #F3F8FB 0%, #E4F3F8 100%);
}
h1, h2, h3 {
  letter-spacing: 0.5px;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  border-radius: 2px;
  background: #8AC2DA;
  margin: 8px 0 0 0;
}
.hero h1 {
  background: linear-gradient(90deg, #254E74 60%, #8AC2DA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;  /* for Firefox */
}
.feature-grid > div, .card {
  border-bottom: 4px solid #8AC2DA;
}

.btn-primary, .btn-secondary {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === CUSTOM DECORATIVE SWIRLS ON ARTISTIC PAGES === */
.hero {
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 55% 45% 70% 30%/45% 54% 46% 55%;
  background: #8AC2DA;
  opacity: 0.17;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 120px;
  height: 120px;
  background: #F3F8FB;
  border-radius: 48% 52% 37% 63% / 72% 37% 63% 28%;
  opacity: 0.28;
  z-index: 0;
}

.section {
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 42px 0 rgba(114, 176, 225, 0.08);
}

/* === SCROLLBAR STYLES === */
::-webkit-scrollbar {
  width: 12px;
  background: #E4F3F8;
}
::-webkit-scrollbar-thumb {
  background: #8AC2DA;
  border-radius: 14px;
}

/* === MICRO-INTERACTIONS === */
a, button, .btn-primary, .btn-secondary, .feature-grid > div, .card, details {
  transition: box-shadow .19s, background .19s, color .18s, border-color .19s, transform .17s;
}

/* === COLOR ACCESSIBILITY IN TESTIMONIALS === */
.testimonial-card p, .testimonial-card span {
  color: #254E74 !important;
  background: transparent;
}
.testimonial-card {
  background: #fff;
  color: #254E74;
}

/* === OTHER UTILS === */
.hidden { display: none !important; }

/* === END === */