/* ===== 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;
}
.testimonial-card p {
  color: #101726;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #13213C;
  color: #F0F4FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #19C2F7;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #14a3d3;
  outline: none;
}

button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}
button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #19C2F7;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Orbitron:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #F0F4FA;
}
strong {
  font-weight: 700;
  color: #19C2F7;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #182B4D;
  border-radius: 20px;
  box-shadow: 0 8px 32px #000a, 0 1.5px 12px #19C2F71a;
}

/* === FLEXBOX SPACING & ALIGNMENT PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #1A3356;
  border-radius: 18px;
  box-shadow: 0 2px 18px #0008;
  padding: 28px 24px;
}
.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: 28px 26px;
  background: #fff;
  color: #1A3356;
  border-left: 8px solid #19C2F7;
  border-radius: 16px;
  box-shadow: 0 4px 24px #13213C21;
  margin-bottom: 20px;
  min-width: 240px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.03em;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*==== HERO SECTION ====*/
.hero {
  background: #13213C linear-gradient(120deg, #13213C 70%, #19C2F7 110%);
  color: #fff;
  padding: 80px 0 70px 0;
  margin-bottom: 60px;
  border-bottom: 8px solid #19C2F7;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 6px 38px #19C2F799;
}
.hero p {
  font-size: 1.25rem;
  font-weight: 500;
  color: #F0F4FA;
  margin-bottom: 14px;
}

/*==== NAVIGATION STYLES ====*/
header {
  background: #101726;
  border-bottom: 3px solid #19C2F7;
  position: sticky;
  top: 0;
  z-index: 1020;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.7px;
  font-size: 1rem;
}
.main-nav a {
  color: #19C2F7;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.18s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #19C2F7;
  color: #13213C;
}
.btn-primary {
  background: #19C2F7;
  color: #13213C;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.06rem;
  border-radius: 14px;
  padding: 12px 32px;
  box-shadow: 0 2px 18px #19C2F765;
  margin-left: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #14a3d3;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  display: none;
  background: #19C2F7;
  color: #13213C;
  font-size: 2rem;
  border-radius: 10px;
  padding: 6px 13px;
  border: none;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s;
  box-shadow: 0 0 6px #19C2F749;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #14a3d3;
  color: #fff;
  outline: none;
}

/* ==== MOBILE MENU OVERLAY ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #13213Ce4;
  z-index: 1102;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 28px 16px 28px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.77,.04,.23,.99),opacity 0.35s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #19C2F7;
  align-self: flex-end;
  margin-bottom: 22px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F0F4FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #19C2F7;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  padding: 14px 0 8px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #19C2F733;
  outline: none;
}

/*==== HOMEPAGE SECTIONS ====*/
.features ul, .services ul, .products ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features li, .services li, .products li, .guides li {
  display: flex;
  align-items: center;
  font-size: 1.07rem;
  background: #172139;
  border-radius: 12px;
  padding: 14px 20px;
  gap: 12px;
  box-shadow: 0 0.5px 8px #19C2F71C;
}
.products ul li a {
  color: #19C2F7;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.14s;
}
.products ul li a:hover, .products ul li a:focus {
  color: #fff;
}

.testimonials {
  background: #19C2F711;
  border-radius: 18px;
  padding: 38px 0 28px 0;
  margin-bottom: 54px;
}
.testimonials .content-wrapper > h2 {
  color: #19C2F7;
  margin-bottom: 6px;
}

.home-cta, .uslugi-cta, .contact-cta {
  background: #19C2F7;
  color: #13213C;
  border-radius: 20px;
  padding: 45px 0;
  margin-bottom: 40px;
  box-shadow: 0 2px 14px #19C2F726;
}
.home-cta h2, .uslugi-cta h2, .contact-cta h2 {
  color: #13213C;
}
.home-cta p, .uslugi-cta p, .contact-cta p {
  color: #222c45;
  font-weight: 500;
}

/* ======= ABOUT US, GUIDES, TERMS ======= */
.about ul, .privacy-policy ul, .rodo ul, .terms-of-use ul, .guides ul, .featured-guide article {
  margin-top: 6px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-guide article {
  background: #1A3356;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 17px #13213C15;
  font-size: 1rem;
}
.guides .tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.guides .tags li {
  background: #19C2F7;
  color: #121522;
  border-radius: 20px;
  padding: 5px 21px 6px 17px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
}

/* ======= PRODUCT PAGE ======= */
.products-categories ul {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.products-categories ul li a {
  background: #19C2F7;
  color: #13213C;
  padding: 5px 18px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  border-radius: 14px;
  text-transform: uppercase;
  transition: background 0.14s, color 0.13s;
}
.products-categories ul li a:hover, .products-categories ul li a:focus {
  background: #14a3d3;
  color: #fff;
}
.product-grid ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.product-grid ul li {
  background: #172139;
  padding: 16px 20px;
  border-radius: 11px;
  box-shadow: 0 1px 9px #19C2F70F;
}
.product-grid ul li h3 {
  font-size: 1.19rem;
  color: #19C2F7;
  margin-bottom: 6px;
}
.product-grid ul li span {
  font-weight: 700;
  color: #19C2F7;
}

/* ======= CONTACT ======= */
.contact .content-wrapper {
  gap: 32px;
  margin-bottom: 24px;
}
.contact .text-section {
  background: #1A3356;
  border-radius: 13px;
  padding: 18px 18px 15px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 8px #13213C29;
}
.contact .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact .text-section li {
  align-items: center;
  gap: 16px;
  font-size: 1.07rem;
}
.contact .text-section img {
  height: 21px;
  width: 21px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}
.contact-cta .btn-primary {
  margin-top: 10px;
}

/* ======= THANK YOU PAGE ======= */
.thank-you-message a.btn-primary {
  margin-top: 18px;
}

/* ====== FOOTER ======== */
footer {
  background: #101726;
  color: #F0F4FA;
  border-top: 4px solid #19C2F7;
  padding: 32px 0 18px 0;
  margin-top: 48px;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 7px;
}
.footer-nav a {
  color: #19C2F7;
  font-weight: 600;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 0.97rem;
  border-radius: 7px;
  padding: 6px 12px;
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #19C2F7;
  color: #13213C;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.footer-contact img {
  height: 31px;
  margin-bottom: 9px;
}
.footer-contact a {
  color: #19C2F7;
}
.footer-copyright {
  margin-top: 6px;
  opacity: 0.68;
  font-size: 0.93rem;
  letter-spacing: 0.3px;
}

/* ======= COOKIES CONSENT BANNER ======= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1A3356;
  color: #F0F4FA;
  box-shadow: 0 -4px 24px #0005;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 22px 20px 22px 20px;
  font-size: 1.05rem;
  animation: fadeInBanner 0.65s cubic-bezier(.5,.51,.46,.98) 0.15s both;
}
@keyframes fadeInBanner {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: #19C2F7;
  color: #13213C;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 18px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px #19C2F73B;
  margin-top: 3px;
  transition: background 0.14s, color 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #14a3d3;
  color: #fff;
  outline: none;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #141f34c7;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInModal 0.21s cubic-bezier(.4,.53,.51,.9) both;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #F0F4FA;
  color: #13213C;
  border-radius: 20px;
  box-shadow: 0 8px 44px #0008;
  max-width: 375px;
  width: 96%;
  padding: 32px 30px 25px 30px;
  z-index: 4110;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: popInModal 0.28s cubic-bezier(.4,.73,.51,.96) both;
}
@keyframes popInModal {
  from { transform: scale(0.86); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  color: #19C2F7;
  font-family:'Orbitron', Arial, sans-serif;
  font-size:1.3rem;
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 7px 0;
}
.cookie-modal label {
  flex: 1;
  font-size: 1rem;
  color: #13213C;
  font-weight: 700;
}
.cookie-modal input[type=checkbox] {
  width: 1.18em;
  height: 1.18em;
  accent-color: #19C2F7;
  margin-right: 7px;
}
.cookie-modal .cookie-essential {
  opacity: 0.6;
}
.cookie-modal .modal-btn-group {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal button {
  background: #19C2F7;
  color: #13213C;
  border-radius: 8px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 17px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.12s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #14a3d3;
  color: #fff;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  background: none;
  color: #19C2F7;
  font-size: 1.34rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #13213C;
}

/* ==== HIGHLIGHTED & SPECIAL SECTIONS ==== */
.highlighted-event {
  background: #19C2F720;
  color: #19C2F7;
  padding: 20px 17px;
  border-radius: 11px;
  box-shadow: 0 1px 8px #19C2F713;
  margin: 18px 0 0 0;
  font-weight: 600;
}
.highlighted-event h3 {
  color: #13213C;
}

/* == SPACING BETWEEN CARDS/SECTIONS == */
section, .section, .content-wrapper > * {
  margin-bottom: 20px;
}

/* ===== BUTTONS & INTERACTION ===== */
button, .btn-primary {
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, transform 0.15s;
}
button:active, .btn-primary:active {
  transform: scale(0.97);
}

/* ====== SHADOWS, BORDERS, CORNERS ====== */
.card, .testimonial-card, .featured-guide article, .contact .text-section, .product-grid ul li {
  box-shadow: 0 2px 16px #13213C21;
}

/* ====== UTILITY & STATE CLASSES ====== */
.hide-on-desktop {
  display: none !important;
}
.hide-on-mobile {
  display: block !important;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  header .container {
    gap: 9px;
  }
}
@media (max-width: 960px) {
  .main-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    padding: 12px 20px;
    margin-left: 7px;
    font-size: 0.98rem;
  }
  .hero {
    padding: 46px 0 40px 0;
  }
  .section {
    padding: 26px 7px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .card, .testimonial-card, .featured-guide article, .contact .text-section {
    padding: 18px 11px;
  }
  .testimonial-card {
    min-width: 0;
  }
  .footer-nav {
    gap: 13px;
  }
  .footer-contact {
    gap: 2px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .features ul, .services ul, .products ul, .guides ul {
    gap: 9px;
  }
  .home-cta, .uslugi-cta, .contact-cta {
    padding: 22px 0;
  }
  .thank-you-message .btn-primary {
    margin-top: 7px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .hero h1, .content-wrapper h1 {
    font-size: 1.13rem;
  }
  .section, .home-cta, .uslugi-cta, .contact-cta {
    border-radius: 12px;
  }
}

@media (max-width: 440px) {
  .footer-nav a {
    font-size: 0.8rem;
    padding: 6px 7px;
  }
}

/* ======= A FINAL HINT: ENSURE NO GRID, COLUMNS, break-inside */
/* (Done, validated) */