/* ==========================================================================
   1. CSS RESET & NORMALIZE
   ========================================================================== */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  height: 100%;
  min-height: 100vh;
  background: #F1F5F8;
  color: #123857;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #123857;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #66A9D7;
  outline: none;
}
ul, ol {
  margin: 0 0 16px 24px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #123857;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
p {
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #E5EBEF;
  box-shadow: 0 2px 12px rgba(18,56,87,0.03);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
}
header a img {
  height: 40px;
  margin-right: 32px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #123857;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: #F1F5F8;
  color: #66A9D7;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: #123857;
  padding: 12px 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(18,56,87,0.10);
  border: none;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s, transform 0.16s, box-shadow 0.18s;
  text-align: center;
  min-width: 160px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #66A9D7;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 15px rgba(102,169,215,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: #66A9D7;
  color: #fff;
  font-size: 28px;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #123857;
  color: #fff;
  box-shadow: 0 2px 7px rgba(18, 56, 87,0.13);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 85vw;
  max-width: 370px;
  background: #fff;
  box-shadow: 0 0 80px rgba(18,56,87,0.17);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
  padding: 40px 30px 30px 30px;
  gap: 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #66A9D7;
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 6px 16px;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #123857;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #123857;
  font-size: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #E5EBEF;
  transition: color 0.16s;
  min-width: 150px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #66A9D7;
}

@media (max-width: 1000px) {
  header .container {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
  }
}

/* Hide .mobile-menu when not active */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  background: #123857;
  color: #fff;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: #fff;
  font-size: 36px;
}
.hero .subheadline {
  color: #F1F5F8;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.hero .btn-primary {
  background: #66A9D7;
  color: #123857;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #123857;
}

/* ==========================================================================
   4. MAIN SECTIONS & LAYOUT
   ========================================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-of-type {
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(18,56,87,0.06);
  margin-bottom: 20px;
  padding: 28px 24px;
  flex: 1 1 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(18,56,87,0.10);
  transform: translateY(-3px) scale(1.01);
}
.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;
}
.text-section {
  margin-bottom: 30px;
}

/* Feature Grid for / */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 9px rgba(18,56,87,0.058);
  padding: 24px;
  flex: 1 1 200px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.feature-item img {
  width: 45px;
  height: 45px;
}
.feature-item h3 {
  font-size: 18px;
}
.feature-item p {
  color: #1D2631;
  font-size: 15px;
}
.feature-item:hover {
  box-shadow: 0 4px 22px rgba(102,169,215,0.10);
  transform: translateY(-2px) scale(1.015);
}

/* ==========================================================================
   5. TESTIMONIALS / OPINIE
   ========================================================================== */
.testimonials {
  background: #F1F5F8;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 60px;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 260px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #E5EBEF;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(18,56,87,0.08);
  margin-bottom: 20px;
  font-size: 16px;
  color: #123857;
  position: relative;
}
.testimonial-card p {
  font-style: italic;
  font-size: 16px;
  color: #1D2631;
  margin-bottom: 8px;
}
.testimonial-author {
  font-weight: 500;
  color: #66A9D7;
  font-size: 15px;
  align-self: flex-end;
}

/* ==========================================================================
   6. TEAM & BLOG LISTS
   ========================================================================== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18,56,87,0.07);
  padding: 24px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.team-member:hover {
  box-shadow: 0 5px 24px rgba(102,169,215,0.11);
  transform: translateY(-2px) scale(1.01);
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.blog-post {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(18,56,87, 0.06);
  padding: 28px;
  flex: 1 1 320px;
  min-width: 260px;
  margin-bottom: 20px;
}
.blog-post h2 {
  font-size: 20px;
  margin-bottom: 14px;
}
.blog-post span {
  color: #66A9D7;
  font-size: 15px;
}

.categories {
  margin-top: 32px;
  margin-bottom: 12px;
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}
.categories li {
  background: #E5EBEF;
  color: #123857;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
}

/* ==========================================================================
   7. SERVICES, BENEFITS, PROCESS (uslugi, archiwizacja)
   ========================================================================== */
.service-grid, .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.service-item, .benefit-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18,56,87, 0.07);
  padding: 24px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, transform 0.12s;
}
.service-item img {
  width: 42px;
  margin-bottom: 15px;
}
.service-item h3, .benefit-item h3 {
  font-size: 18px;
}
.service-item:hover, .benefit-item:hover {
  box-shadow: 0 4px 16px rgba(102,169,215,0.11);
  transform: translateY(-2px) scale(1.012);
}

.process-steps {
  background: #fff;
  border-radius: 10px;
  padding: 32px 20px 24px 24px;
  box-shadow: 0 2px 10px rgba(18,56,87,0.06);
  margin-bottom: 22px;
}
.process-steps h3 {
  margin-bottom: 11px;
}
.security-info {
  background: #E5EBEF;
  border-radius: 8px;
  padding: 18px 18px 12px 18px;
  margin-bottom: 18px;
}
.security-info h3 {
  color: #123857;
}
.security-info ul li{
  color: #123857;
  margin-bottom:6px;
}

/* ==========================================================================
   8. CONTACT INFO / MAP
   ========================================================================== */
.contact-info {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(18,56,87,0.08);
  padding: 24px;
  margin-bottom: 20px;
}
.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #123857;
  font-size: 15px;
}
.contact-info img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.map-embed {
  margin-top: 24px;
  text-align: left;
}
.map-embed a {
  background: #66A9D7;
  color: #fff;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: background 0.18s;
  display: inline-block;
}
.map-embed a:hover {
  background: #123857;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
  background: #123857;
  color: #fff;
  padding: 36px 0 24px 0;
  box-shadow: 0 -2px 12px rgba(18,56,87,0.03);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-links {
  margin-bottom: 8px;
}
.footer-links a {
  color: #F1F5F8;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0 3px;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #66A9D7;
}
.brand-info {
  font-size: 14px;
  color: #E5EBEF;
  line-height: 1.6;
}
.brand-info strong {
  font-size: 16px;
  color: #fff;
}

/* ==========================================================================
   10. COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  border-top: 1px solid #E5EBEF;
  box-shadow: 0 -3px 20px rgba(18,56,87,0.10);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  transition: transform 0.28s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-consent-banner p {
  font-size: 15px;
  color: #123857;
  margin: 0 6px 0 0;
}
.cookie-consent-banner .cookie-btn {
  margin-right: 12px;
  min-width: 128px;
  padding: 10px 18px;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, box-shadow 0.14s;
}
.cookie-consent-banner .accept {
  background: #66A9D7;
  color: #fff;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #123857;
  color: #fff;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #123857;
  border: 1px solid #123857;
}
.cookie-consent-banner .reject:hover {
  background: #F1F5F8;
  color: #123857;
}
.cookie-consent-banner .settings {
  background: #E5EBEF;
  color: #123857;
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: #66A9D7;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(18,56,87,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 40px rgba(18,56,87,0.11);
  max-width: 400px;
  min-width: 330px;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInScale 0.32s cubic-bezier(0.25,1,0.5,1);
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  font-size: 19px;
  color: #123857;
  margin-bottom: 10px;
}
.cookie-modal-content .category {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
}
.cookie-modal-content .category label {
  color: #123857;
}
.cookie-modal-content .toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #E5EBEF;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-content .toggle.enabled {
  background: #66A9D7;
}
.cookie-modal-content .toggle.disabled {
  background: #E5EBEF;
}
.cookie-modal-content .toggle-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18,56,87,0.11);
  transition: left 0.18s;
}
.cookie-modal-content .toggle.enabled .toggle-knob {
  left: 23px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 22px;
}
.cookie-modal-content .modal-actions .cookie-btn {
  flex: 1 1 100px;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 5px;
}
.cookie-modal-content .modal-close {
  background: none;
  color: #123857;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-content .modal-close:hover {
  color: #66A9D7;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1120px) {
  .feature-grid, .team-list, .service-grid, .benefit-grid, .blog-list, .testimonial-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .team-list, .service-grid, .benefit-grid, .blog-list, .testimonial-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 210px;
    padding: 32px 0;
  }
  .hero h1 {
    font-size: 28px;
  }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  section, .section {
    padding: 28px 6px;
  }
  .feature-grid, .team-list, .service-grid, .benefit-grid, .blog-list, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  footer .container {
    padding: 0 8px;
  }
  .cookie-modal-content {
    min-width: 220px;
    padding: 20px 10px 18px 10px;
  }
}
@media (max-width: 540px) {
  .hero .container {
    padding: 0 3px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 7px;
    font-size: 14px;
  }
  .cookie-consent-banner .cookie-btn {
    min-width: 100px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .blog-post, .team-member, .service-item, .feature-item, .card {
    padding: 15px 7px;
    min-width: 0;
  }
}

/* ==========================================================================
   12. FOCUS STATES, TRANSITIONS, MISC
   ========================================================================== */
.btn-primary:focus, .cookie-btn:focus, .modal-close:focus {
  outline: 2px solid #66A9D7;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #999; }
::-moz-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }
::-ms-input-placeholder { color: #999; }
::placeholder { color: #999; }

/* Transitions */
.card, .feature-item, .testimonial-card, .team-member, .service-item, .benefit-item {
  transition: box-shadow 0.16s, transform 0.16s;
}

/* Prevent content overlap */
.card, .feature-item, .service-item, .benefit-item, .testimonial-card, .blog-post, .team-member {
  margin-bottom: 20px;
}

/* ==========================================================================
   13. TYPOGRAPHY SCALE & SPACING
   ========================================================================== */
h1 { font-size: 32px; margin-bottom: 20px; }
h2 { font-size: 24px; margin-bottom: 18px; }
h3 { font-size: 18px; margin-bottom: 12px; }
p, li { font-size: 16px; }

/* Spacing Utilities */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ==========================================================================
   14. UTILITY CLASSES FOR FLEXBOX LAYOUTS
   ========================================================================== */
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-20 {
  gap: 20px;
}

/* ==========================================================================
   15. PRINT OPTIMIZATION
   ========================================================================== */
@media print {
  header, .mobile-menu, .cookie-consent-banner, .cookie-modal, footer {
    display: none !important;
  }
  body, html {
    background: #fff !important;
    color: #111 !important;
  }
}
