/* =======================
   RESET & NORMALIZE
======================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
img, video {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}
body {
  background: #19304e;
  min-height: 100vh;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  color: #f4f4f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s;
}

/* =======================
   VARIABLES (fallbacks provided)
======================= */
:root {
  --primary: #194b78;
  --secondary: #2ec4b6;
  --accent: #f4f4f9;
  --card-bg: #23344d;
  --card-shadow: 0 4px 16px 0 rgba(46,196,182,0.10);
  --card-radius: 18px;
  --border-radius: 18px;
  --neon-blue: #1bbfff;
  --neon-green: #00ffbf;
  --error: #f75e5e;
  --focus-glow: 0 0 0 2px #2ec4b6, 0 0 3px #1bbfff;
  --shadow-main: 0 6px 24px 0 rgba(25,75,120,0.15);
  --mobile-nav-bg: #1a2540;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f4f4f9;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, span {
  font-size: 1rem;
  color: #e7e8ec;
}
strong {
  color: #fff;
}
.text-section ul, .content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.text-section ul li, .content-wrapper ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
}
.text-section ul li::before, .content-wrapper ul li::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 20px;
  margin-right: 8px;
  background: linear-gradient(135deg,#2ec4b6, #1bbfff);
  position: absolute;
  left: 0; top: 7px;
}

/* =======================
   LAYOUT: Container & Section
======================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  background: transparent;
}

/* ========== FLEXBOX LAYOUTS ========== */
.header-flex {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px 0;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0 18px 0;
  border-top: 1px solid #23344d;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: transform 0.16s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 24px 0 rgba(46,196,182,0.13);
}
.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: var(--border-radius);
  box-shadow: 0 4px 16px 0 rgba(25,75,120,0.07);
  margin-bottom: 20px;
  min-width: 230px;
  color: #222;
  max-width: 360px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.testimonial-card .stars {
  font-size: 1.15rem;
  color: #ffdc0e;
  letter-spacing: .05em;
}
.testimonial-card p{
  color: #222;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 24px 0 rgba(25,75,120,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   NAVIGATION & HEADER STYLES
=========================== */
header {
  background: #19304efe;
  box-shadow: 0 2px 14px 0 rgba(25,75,120,0.08);
  position: relative;
  z-index: 50;
}
.logo img {
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 6px #1bbfff50);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #e7e8ec;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 8px;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--neon-blue);
  text-shadow: 0 0 6px var(--neon-blue);
}
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 13px 32px;
  font-size: 1.07rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 0 16px 0 #1bbfff3d, 0 1px 7px 0 #2ec4b62a;
  outline: none;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.16s, box-shadow 0.19s, border-color 0.16s,transform 0.16s;
  margin-left: 8px;
}
.btn-primary {
  background: linear-gradient(90deg, #2ec4b6 0%, #194b78 100%);
  color: #fff;
  border: 2px solid #2ec4b6;
  box-shadow: 0 2px 12px 0 #1bbfff33;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2ec4b6;
  color: #222;
  border-color: #1bbfff;
  box-shadow: 0 0 14px 2px #1bbfff77;
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 10px 1px #1bbfff29;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #2ec4b6;
  color: #19304e;
  box-shadow: 0 0 10px 4px #2ec4b655;
  border-color: #1bbfff;
}

/* =============================
   BURGER & MOBILE NAVIGATION
============================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  color: #2ec4b6;
  border: none;
  margin-left: auto;
  margin-right: 12px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.22s;
  padding: 8px 14px;
  border-radius: 10px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #15253b;
  color: #fff;
  box-shadow: var(--focus-glow);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--mobile-nav-bg);
  box-shadow: 0 0 24px 4px #1bbfff38;
  transform: translateX(-100vw);
  transition: transform 0.44s cubic-bezier(.5,1.56,.48,.87);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #2ec4b6;
  background: none;
  border: none;
  margin: 22px 0 0 20px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 2200;
  padding: 4px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #15253b;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
  gap: 0;
}
.mobile-nav a {
  padding: 18px 32px 18px 38px;
  font-size: 1.1rem;
  color: #e0fbf7;
  letter-spacing: 1px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  border-bottom: 1px solid #194b7865;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--neon-blue);
  background: #102027;
  box-shadow: var(--focus-glow);
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 1240px) {
  .container { max-width: 1000px; }
}
@media (max-width: 960px) {
  .container { max-width: 700px; }
  .footer-flex, .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    padding: 16px 0 12px 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid, .team-list, .service-card-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (min-width: 769px) {
  .feature-grid,
  .team-list,
  .service-card-list {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ==============================
   COMPONENTS: HERO, GRID, CARDS
============================== */
.hero,
section:first-of-type .content-wrapper {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
}
.feature-grid > div, .service-card-list > div, .team-list > div, .case-study {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 26px 20px;
  min-width: 240px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow .16s,transform .13s;
  position: relative;
}
.feature-grid > div:hover, .service-card-list > div:hover, .team-list > div:hover, .case-study:hover {
  box-shadow: 0 8px 25px 0 #2ec4b640;
  transform: translateY(-5px) scale(1.019);
}
.feature-grid img,
.service-card-list img,
.team-list img {
  margin-bottom: 10px;
  height: 44px;
}
.case-study h3 {
  color: var(--secondary);
  margin-bottom: 12px;
}
.case-study p {
  font-size: 1rem;
}

/* Testimonials Slider (Horizontal Flex) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

/* Newsletter, Socials & CTA */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

/* Categories Filter */
.categories-filter {
  margin-top: 22px;
  font-size: 1rem;
  color: #8ee6dd;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.categories-filter a {
  color: #1bbfff;
  text-decoration: underline;
  margin-right: 4px;
  font-weight: 700;
  transition: color 0.15s;
}
.categories-filter a:hover { color: #2ec4b6; }
.category {
  background: #2ec4b6;
  color: #19304e;
  border-radius: 12px;
  font-size: 0.93em;
  padding: 4px 10px;
  margin-left: 8px;
}

.downloadable-guides a {
  color: #1bbfff;
  text-decoration: underline;
  font-size: 1rem;
  margin-right: 12px;
  transition: color 0.13s;
}
.downloadable-guides a:hover {
  color: #2ec4b6;
}

/* Map Placeholder */
.map-placeholder {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 38px 24px;
  color: #8ee6dd;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 16px;
  box-shadow: 0 2px 12px 0 #1bbfff25;
}

/* Footer Elements */
footer {
  background: #15253b;
  color: #f4f4f9;
  margin-top: 64px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.footer-nav a {
  color: #8ee6dd;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  color: #c7dafa;
}
footer img {
  max-height: 32px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 2px #2ec4b6bb);
}
@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }
  .footer-contact {
    font-size: .97rem;
  }
}

/* ==============================
   TABLES
=============================== */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  margin-top: 12px;
}
.comparison-table table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-radius: 14px;
  background: #18253b;
  color: #f4f4f9;
  box-shadow: 0 2px 12px 0 #1bbfff18;
}
.comparison-table th, .comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #2ec4b622;
  text-align: left;
  font-size: 1rem;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table th { color: #2ec4b6; font-weight: 700; background: #1a2b41; }
.comparison-table td { color: #f4f4f9; }

/* ==============================
   FAQ
=============================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-list li {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 14px 0 #2ec4b624;
  padding: 18px 20px 12px 20px;
}
.faq-list strong {
  display: block;
  margin-bottom: 8px;
  color: #1bbfff;
  font-size: 1.02rem;
}

/* ==============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #15253b; 
  color: #ecf8fa;
  box-shadow: 0 -4px 24px 2px #183d4a99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2100;
  padding: 22px 12px 30px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.44s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  animation: fadeInBanner 0.6s;
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  max-width: 600px;
  text-align: center;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cookie-btn {
  display: inline-block;
  padding: 11px 32px;
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.8px;
  background: #2ec4b6;
  color: #19304e;
  border: 2px solid #2ec4b6;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, border 0.16s;
  margin-bottom: 4px;
}
.cookie-btn.settings {
  background: none;
  color: #2ec4b6;
  border: 2px solid #2ec4b6;
}
.cookie-btn.reject {
  background: none;
  color: #f75e5e;
  border: 2px solid #f75e5e;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1bbfff;
  color: #fff;
  border-color: #1bbfff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #2ec4b6;
  color: #19304e;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f75e5e;
  color: #fff;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(25,48,78,0.93);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  animation: fadeInModal 0.32s;
}
@keyframes fadeInModal {
  from {opacity:0;transform:scale(0.92);}
  to {opacity:1;transform:scale(1);}
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  min-width: 320px;
  max-width: 98vw;
  color: #15253b;
  box-shadow: 0 8px 40px 3px #194b7840;
  padding: 38px 32px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2400;
}
.cookie-modal h3 {
  color: #194b78;
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2ec4b6;
  cursor: pointer;
  z-index: 30;
}
.cookie-modal .modal-close:hover { color: #f75e5e; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #2ec4b6;
  margin-right: 0;
}
.cookie-modal .cookie-cat-label {
  font-size: 1rem;
  color: #194b78;
}
.cookie-modal .cookie-cat-essential {
  font-weight: 600;
  color: #00b99e;
}
.cookie-modal .cookie-actions {
  margin-top: 12px;
  width: 100%;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 96vw;
    padding: 19px 12px 24px 12px;
  }
  .cookie-modal h3 { font-size: 1.12rem; }
}

/* ==============================
   ANIMATIONS, TRANSITIONS
=============================== */
*:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2ec4b6, 0 0 4px 2px #1bbfff90;
}
a, .btn-primary, .btn-secondary, .card, .feature-grid > div, .testimonial-card, .footer-nav a, .cookie-btn, .downloadable-guides a {
  transition: color 0.15s, background 0.16s, box-shadow 0.15s, border 0.13s, transform 0.18s;
}

/* ===============================
   EFFECTS: NEON/TECH ACCENTS
================================ */
.section {
  position: relative;
}
.section:before {
  content: '';
  position: absolute;
  left: 4%; top: 14px;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #2ec4b6 0%, #1bbfff 100%);
  border-radius: 2px;
  opacity: 0.5;
  z-index: 1;
}
@media (max-width: 900px) {
  .section:before {
    left: 0;
    width: 28px;
  }
}
.card, .feature-grid > div, .service-card-list > div, .team-list > div, .map-placeholder, .case-study, .faq-list li {
  border: 1.5px solid #2ec4b635;
  box-shadow: 0 2px 14px #17e3da1a, 0 1.5px 0 #2ec4b610;
}
.card:hover, .feature-grid > div:hover, .service-card-list > div:hover, .team-list > div:hover, .case-study:hover, .faq-list li:hover {
  box-shadow: 0 0 18px 7px #1bbfff38, 0 4px 16px 0 #2ec4b614;
}

/* NEON ACCENTS for icon elements */
.feature-grid img, .service-card-list img, .team-list img, .contact-details img {
  filter: drop-shadow(0 0 6px #1bbfff88);
}

/* ============ CONTACT DETAILS ============ */
.contact-details {
  background: #23344d;
  border-radius: 16px;
  color: #8ee6dd;
  font-size: 1.07rem;
  padding: 18px 22px;
  margin-top: 10px;
  box-shadow: 0 2px 14px 0 #1bbfff14;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-details img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

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

/* ============ UTILITY ============ */
.mt-12 { margin-top: 12px; }
.mb-36 { margin-bottom: 36px; }
.mb-24 { margin-bottom: 24px; }
.fs-14 { font-size: 14px; }
.fs-18 { font-size: 18px; }
.mr-8 { margin-right: 8px; }

/* ============ ENSURE PROPER SPACING BETWEEN COMPONENTS ============ */
.section, .card, .testimonial-card, .feature-grid > div,
.team-list > div, .service-card-list > div, .case-study, .faq-list li, .card-container > *, .content-grid > * {
  margin-bottom: 24px;
}
.section:last-child, .card:last-child,
.feature-grid > div:last-child, .team-list > div:last-child, .service-card-list > div:last-child, .case-study:last-child {
  margin-bottom: 0;
}

/* ===============================
   FIX FOR OL in WARUNKI Uzytkowania
================================ */
.text-section ol {
  padding-left: 28px;
  margin-bottom: 16px;
  list-style: decimal;
  color: #f4f4f9;
}
.text-section ol li {
  margin-bottom: 8px;
}

/* ===============================
   SCROLLBAR STYLES
================================ */
::-webkit-scrollbar {
  width: 11px;
  background: #1a253c;
}
::-webkit-scrollbar-thumb {
  background: #2ec4b672;
  border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2ec4b6;
}

/* ===============================
   ERROR/INFORMATION COLORS
================================ */
.text-error {
  color: #f75e5e;
}
.text-info {
  color: #1bbfff;
}

/* ================================
   HIDE/SHOW/OVERFLOW SAFEGUARD
================================ */
.mobile-menu,
.cookie-modal-overlay,
.cookie-banner {
  will-change: transform, opacity;
}

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