/* --- 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #171e29;
  color: #f2f2f2;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.61,.01,.55,1.32);
}
button {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
/* --- BRAND COLORS --- */
:root {
  --primary: #225086;
  --secondary: #83B32B;
  --accent: #F2F2F2;
  --surface: #181F2D;
  --card: #232d41;
  --card-alt: #1a2230;
  --border: #283568;
  --shadow: 0 4px 32px rgba(36,92,201, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 32px;
  --neon: #19faec;
  --danger: #f05252;
  --success: #2CC07C;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  line-height: 1.13;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px var(--primary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #f2f2f2;
}
p, ul, ol, blockquote {
  margin-bottom: 14px;
}
blockquote {
  font-style: italic;
  color: #1ef3d6;
  background: rgba(34,80,134,0.07);
  border-left: 4px solid var(--neon);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}
strong, b {
  color: var(--neon);
}
.text-section ul {
  margin-bottom: 10px;
  padding-left: 24px;
}
.text-section ul li {
  list-style: disc;
  color: #eee;
}

/* --- CONTAINER & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(110deg, #23324a 0%, #232d41 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* --- FLEX UTILITY CLASSES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 24px 0 rgba(34,80,134,0.12);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 40px 2px var(--primary), 0 2px 16px 0 var(--neon);
  transform: translateY(-2px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* --- SERVICE GRID / FEATURED SERVICES --- */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-grid > div {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px 0 rgba(34,80,134,0.11);
  padding: 30px 22px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.service-grid > div:hover {
  box-shadow: 0 6px 40px 2px var(--primary), 0 2px 16px 0 var(--neon);
}
.service-grid h3 {
  color: var(--secondary);
  font-size: 1.15rem;
  margin-bottom: 4px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-shadow: 0 2px 10px #181f2d;
}
.service-grid span {
  margin-top: auto;
  font-weight: bold;
  color: var(--neon);
  align-self: flex-end;
  background: #181f2d;
  border-radius: 8px;
  padding: 2px 12px 2px 12px;
  font-size: 1.00rem;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 6px 0 rgba(24,31,45,0.12);
}

/* --- LIST FEATURES --- */
ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
ul li {
  margin-bottom: 0;
  flex: 1 1 270px;
  min-width: 210px;
}
ul li > div {
  background: var(--card-alt);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  box-shadow: 0 1px 7px rgba(34,80,134,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.17s;
}
ul li > div:hover {
  box-shadow: 0 3px 20px 2px var(--neon);
}
ul li img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
ul li h3 {
  color: var(--neon);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 2px;
  margin-top: -10px;
}

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

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f2f2f2;
  color: #222a36;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(36,92,201, 0.13);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 350px;
  transition: box-shadow 0.13s;
}
.testimonial-card blockquote {
  color: #225086;
  background: transparent;
  border-left: 4px solid #83B32B;
  padding: 0 18px 0 18px;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-details span {
  color: #252a35;
  font-weight: bold;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 var(--secondary);
}

/* --- CALL TO ACTION (CTA) BUTTONS --- */
.cta-btn {
  background-color: var(--secondary);
  color: #172531;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  padding: 0.7em 2em;
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  box-shadow: 0 2px 14px 0 rgba(130,179,43,0.14), 0 1px 8px 0 var(--secondary);
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.19s, color 0.19s, transform 0.14s, box-shadow 0.16s;
  text-shadow: 0 2px 9px #dedede42;
  outline: none;
}
.cta-btn:focus,
.cta-btn:hover {
  background-color: #19faec;
  color: #181f2d;
  transform: scale(1.04);
  box-shadow: 0 5px 32px var(--neon), 0 2px 20px #19faec99;
}

/* --- HEADER + MAIN NAV --- */
header {
  background: #161d29;
  box-shadow: 0 2px 15px rgba(34,80,134,0.11);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 20px 18px;
}
header img {
  max-height: 38px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #e3efff;
  font-size: 1rem;
  padding: 7px 8px;
  border-radius: 8px;
  transition: color 0.16s, background 0.16s, text-shadow 0.2s;
  text-shadow: 0 2px 10px #181f2d33;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--neon);
  background: #22508644;
  text-shadow: 0 2px 16px var(--neon), 0 4px 36px #181f2d66;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #121922;
  color: #b0cfff;
  padding: 36px 0 14px 0;
  margin-top: 46px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
footer img {
  max-height: 40px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #e3efff;
  opacity: 0.87;
  font-size: 0.98rem;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--neon); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  margin-bottom: 5px;
  color: #b0cfff;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

/* --- TABLES (e.g. Cennik) --- */
table {
  width: 100%;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 14px rgba(34,80,134,0.06);
  margin-bottom: 20px;
}
thead {
  background: #232d41;
}
thead th {
  color: var(--neon);
  font-family: 'Montserrat', sans-serif;
  padding: 16px 14px;
  font-size: 1.06rem;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid var(--neon);
}
tbody td {
  font-family: 'Roboto', sans-serif;
  color: #e3efff;
  padding: 13px 14px;
  font-size: 1rem;
  border-bottom: 1px solid #23324a;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: #1a223044;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--neon);
  font-size: 2rem;
  border-radius: 50%;
  padding: 7px 13px;
  margin-left: 24px;
  box-shadow: 0 0 0 2px #232d41, 0 2px 12px #19faec77;
  transition: background 0.2s, color 0.15s, box-shadow 0.17s;
  z-index: 1203;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #232d41;
  color: #fff;
  box-shadow: 0 0 0 3px #19faec, 0 4px 20px #19faec22;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1a2230ee;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.93,-0.01,.58,1.02);
  z-index: 1300;
  box-shadow: 0 0 32px 12px #101624dd;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #181f2d;
  color: var(--neon);
  font-size: 2.3rem;
  padding: 12px 19px 8px 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #232d41, 0 2px 12px #19faec77;
  margin: 24px 18px 0 0;
  transition: background 0.21s, box-shadow 0.15s, color 0.14s;
  z-index: 1302;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px #19faec, 0 3px 18px #19faec28;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  width: 100%;
  margin-top: 24px;
  margin-left: 24px;
}
.mobile-nav a {
  color: var(--neon);
  font-size: 1.3rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 10px 0 10px 8px;
  border-radius: 11px;
  transition: background 0.15s, color 0.12s, box-shadow 0.14s;
  margin-bottom: 5px;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #10162477;
  color: var(--secondary);
  box-shadow: 0 2px 18px var(--neon);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232d41ee;
  color: #fff;
  box-shadow: 0 -2px 18px #000b1d99;
  width: 100vw;
  z-index: 12000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 14px 22px 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.27s, transform 0.32s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(70px);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #e3efff;
  margin: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-btns button {
  background: var(--secondary);
  color: #181f2d;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 11px 0 var(--secondary);
  transition: background 0.16s, color 0.12s, box-shadow 0.13s;
  margin-right: 5px;
  margin-bottom: 3px;
}
.cookie-btns button:hover, .cookie-btns button:focus {
  background: var(--neon);
  color: #243164;
  box-shadow: 0 3px 22px var(--neon);
}
.cookie-btns .cookie-settings-btn {
  background: #101624;
  color: var(--neon);
  box-shadow: 0 1px 10px #19faec44;
}
.cookie-btns .cookie-settings-btn:hover, .cookie-btns .cookie-settings-btn:focus {
  background: var(--primary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 12010;
  width: 100vw;
  height: 100vh;
  background: rgba(24,31,45,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #232d41;
  color: #f2f2f2;
  border-radius: var(--radius);
  padding: 38px 30px 24px 30px;
  min-width: 280px;
  width: 92vw;
  max-width: 440px;
  box-shadow: 0 4px 28px #181f2dcc, 0 2px 14px #19faec55;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cookie-modal-content h3 {
  color: var(--neon);
  font-size: 1.2rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #1a2230;
  padding: 10px 17px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #e3efff;
  margin-right: 8px;
  user-select: none;
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: #121922;
  border-radius: 18px;
  border: 1.5px solid #313c5a;
  transition: background 0.15s;
  margin-left: 8px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch span {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 1px 7px var(--neon);
  transition: transform 0.19s;
}
.cookie-switch input:checked + span {
  transform: translateX(18px);
  background: var(--secondary);
}

.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding-top: 10px;
}
.cookie-modal-actions button {
  background: var(--secondary);
  color: #181f2d;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  margin-left: 4px;
  font-weight: 500;
  transition: background 0.17s, color 0.11s, box-shadow 0.13s;
}
.cookie-modal-actions button:hover { background: var(--neon); color: #202840; }

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 19px;
  background: #101624;
  color: var(--neon);
  border-radius: 50%;
  font-size: 2rem;
  padding: 2px 11px 2px 9px;
  cursor: pointer;
  box-shadow: 0 0 6px #19faec55;
  transition: background 0.17s, color 0.11s, box-shadow 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #232d41;
  color: #fff;
  box-shadow: 0 0 18px var(--neon);
}

/* --- MISC ELEMENTS --- */
hr {
  border: none;
  border-top: 1px solid #232d41;
  margin: 32px 0;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #23324a;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #151a25;
}

/* --- CTA FINAL SECTION --- */
.cta-section {
  background: linear-gradient(to right, #232d41 0%, #225086 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 32px 0 #181f2d99;
  text-align: center;
  padding-top: 38px;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
@keyframes neon-glow {
  0%, 100% { box-shadow: 0 0 16px 2px var(--neon), 0 0 40px 0 transparent; }
  50%     { box-shadow: 0 0 28px 9px var(--neon), 0 0 48px 2px var(--secondary); }
}
.cta-btn, .service-grid > div, .testimonial-card, .card:hover {
  animation: neon-glow 3.7s infinite alternate cubic-bezier(.91,-0.44,.52,1.39);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container { max-width: 94vw; }
  .service-grid > div,
  ul li { min-width: 210px; }
}
@media (max-width: 900px) {
  .section { padding: 30px 8px; }
  header .container { flex-direction: column; align-items: stretch; gap: 10px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding-left: 6px; padding-right: 6px; }
  .main-nav { display: none; }
  .cta-btn { margin-left: 0; margin-top: 10px; }
  .mobile-menu-toggle { display: inline-block; }
  .service-grid, .content-grid, .card-container, ul {
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
  }
  .service-grid > div, ul li {
    min-width: 95vw;
    max-width: 99vw;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-nav { flex-direction: column; gap: 6px; }
  .footer-contact p { flex-direction: row; font-size: 0.93rem; }
  header .container { flex-direction: row; align-items: center; }
  .card, .section { padding: 17px 4px; }
  table thead th, tbody td { padding: 9px 4px; font-size: 0.98rem; }
  .cta-section { padding-top: 20px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 540px) {
  .section { padding: 17px 2px; }
  .footer-contact p, .footer-nav a, .mobile-nav a {
    font-size: 0.94rem;
  }
  .footer-contact img { width: 14px; height: 14px; }
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.06rem; }
}

/* --- PRINT HIDES --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
}
