/* -------------------- CSS RESET & BASE -------------------- */
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;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #23272f;
  color: #ECEFF4;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #D1A563;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: #fee293;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
::selection {
  background: #D1A563;
  color: #23272f;
}
strong {
  color: #D1A563;
  font-weight: 700;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #E0E5EB;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 32px #111b22;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #ECEFF4;
}
p {
  margin-bottom: 1.1em;
  font-size: 1rem;
  color: #bfc6d1;
}
blockquote {
  border-left: 4px solid #D1A563;
  color: #fbe9ce;
  background: #31384a;
  padding: 16px 24px;
  margin-bottom: 1.5em;
  font-style: italic;
  border-radius: 8px;
}

/* -------------------- LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0; /* Section spacing is handled by .section */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #23272f;
  border-radius: 18px;
  box-shadow: 0 2px 30px 0 rgba(36, 41, 56, 0.09), 0 1.5px 3.5px 0 rgba(49, 42, 90, 0.07);
}
/* Make the built-in section element and those in main the .section style */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #2d3242;
  border-radius: 18px;
  box-shadow: 0 1.5px 12px 0 rgba(49, 42, 90, 0.09);
}

/* -------------------- FLEXBOX GRIDS & CONTENT -------------------- */
.feature-grid,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 8px;
}
.feature-grid > div,
.card {
  background: #262b38;
  border-radius: 16px;
  padding: 28px 22px 22px 22px;
  box-shadow: 0 2px 18px 0 rgba(25,18,50,0.13);
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.26s, transform 0.22s;
}
.feature-grid > div img,
.card img {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 9px #d1a56377);
}
.feature-grid > div:hover,
.card:hover {
  box-shadow: 0 8px 50px 0 #d1a56326, 0 1.5px 3.5px 0 #552b0c21;
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}

.text-section {
  background: #22242c;
  border-radius: 12px;
  padding: 22px 18px;
  margin-bottom: 20px;
  color: #c8cfdc;
  box-shadow: 0 2px 18px 0 rgba(49, 42, 90, 0.08);
}
.text-section h3 {
  color: #D1A563;
  font-size: 1.1rem;
  margin-top: 0.3em;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}


/* -------------------- BUTTONS -------------------- */
.btn-primary,
.btn-primary:visited {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(90deg, #D1A563 0%, #fdc47d 100%);
  color: #23272f;
  border: none;
  border-radius: 44px;
  box-shadow: 0 3px 24px #d1a56332;
  cursor: pointer;
  transition: background 0.24s, box-shadow 0.19s, color 0.17s, transform 0.16s;
  margin-top: 6px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #E0E5EB 0%, #D1A563 100%);
  color: #191c24;
  box-shadow: 0 6px 32px #d1a56356;
  transform: scale(1.045);
}

/* -------------------- HEADER & NAV -------------------- */
header {
  background: #23272f;
  box-shadow: 0 2px 24px 0 #11131b0d;
  position: sticky;
  z-index: 12;
  top: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 24px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 22px;
  flex: 1 1 auto;
}
header nav a {
  color: #E0E5EB;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 10px;
  transition: background 0.18s, color 0.15s;
  position: relative;
  z-index: 1;
}
header nav a:hover,
header nav a:focus {
  background: #1a1e26;
  color: #D1A563;
}
header img[alt="Zasłona Przestrzeni"] {
  height: 50px;
  width: auto;
  margin-right: 24px;
}

header .btn-primary {
  margin-left: auto;
  margin-right: 0;
  font-size: 1rem;
  padding: 9px 25px;
}

/* HIDE BURGER ON DESKTOP */
.mobile-menu-toggle {
  display: none;
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #21232d;
  padding: 36px 0 10px 0;
  color: #bfc6d1;
  border-top: 2px solid #1c1f28;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #D1A563;
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 1rem;
}
footer nav a:hover,
footer nav a:focus {
  text-decoration: underline;
  color: #E0E5EB;
}
footer .contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #bfc6d1;
  font-size: 0.97em;
}
footer .contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}
footer .social-links {
  display: flex;
  gap: 19px;
  align-items: center;
}
footer .social-links a img {
  width: 34px;
  height: 34px;
  transition: filter 0.18s, transform 0.18s;
}
footer .social-links a:hover img {
  filter: drop-shadow(0 0 12px #d1a563cc);
  transform: scale(1.12);
}

/* -------------------- TESTIMONIAL CARDS -------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F6FA;
  border-radius: 16px;
  box-shadow: 0 1.5px 13px #D1A56330;
  margin-bottom: 20px;
  color: #23272f;
  position: relative;
  border: 1.5px solid #E0E5EB;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #23272f;
  font-size: 1.05em;
  flex: 1 1 200px;
  margin: 0;
}
.testimonial-card span {
  display: block;
  margin-left: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #8d8984;
  font-size: 0.99em;
}

/* -------------------- FEATURES -------------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

/* -------------------- COOKIE CONSENT BANNER -------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #23272f;
  border-top: 2px solid #D1A563;
  box-shadow: 0 -4px 32px #d1a56344;
  color: #E0E5EB;
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 1.05em;
  animation: cookie-in 0.54s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes cookie-in {
  0% {transform: translateY(100%);opacity:0;}
  100% {transform: translateY(0);opacity:1;}
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 16px;
}
.cookie-banner button {
  background: #D1A563;
  color: #23272f;
  border: none;
  padding: 9px 21px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-top: 2px;
  box-shadow: 0 2px 9px #d1a5632d;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.12s;
}
.cookie-banner button.cookie-settings {
  background: #23272f;
  color: #D1A563;
  border: 1.5px solid #D1A563;
  margin-left: 5px;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #E0E5EB;
  color: #23272f;
  transform: scale(1.06);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: #191c24;
  color: #f9c770;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3500;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25,24,32,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in .32s cubic-bezier(.5,0,.43,1) forwards;
}
@keyframes cookie-modal-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #21232d;
  border-radius: 18px;
  max-width: 420px;
  width: 98vw;
  padding: 38px 26px 26px 26px;
  color: #ECEFF4;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 34px #00000044;
  font-size: 1.09em;
}
.cookie-modal h2 {
  color: #D1A563;
  font-size: 1.24rem;
  margin-bottom: 20px;
}
.cookie-modal .cookie-categories {
  margin-bottom: 22px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  font-size: 1.01em;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #D1A563;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 20px;
  background: transparent;
  border: none;
  color: #a8a8a9;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .close-modal:hover {
  color: #D1A563;
}

/* -------------------- MOBILE MENU -------------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #D1A563;
  margin-left: 22px;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s, transform 0.16s;
  z-index: 32;
  display: none;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #23272f;
  color: #fdbe56;
  transform: scale(1.15);
}

.mobile-menu {
  position: fixed;
  z-index: 3200;
  top: 0; right: 0; left: 0; bottom: 0;
  height: 100vh;
  width: 100vw;
  background: #23272f;
  box-shadow: 0 0 70px #10111Aee;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.83,0,.19,1);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #D1A563;
  font-size: 2.5rem;
  position: absolute;
  top: 25px;
  right: 39px;
  cursor: pointer;
  z-index: 3301;
  padding: 6px 13px;
  border-radius: 50%;
  transition: background 0.16s, color 0.19s, transform 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #2c303d;
  color: #fdbe56;
  transform: scale(1.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 110px auto 0 auto;
  width: 92vw;
  max-width: 360px;
}
.mobile-nav a {
  color: #E0E5EB;
  font-size: 1.14rem;
  padding: 17px 24px;
  border-radius: 16px;
  background: #262b38;
  box-shadow: 0 2px 11px #23272f23;
  margin-bottom: 5px;
  transition: background 0.16s, color 0.16s, transform 0.13s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #191c24;
  color: #D1A563;
  transform: translateX(5px) scale(1.04);
}

/* HIDE desktop nav and show burger on mobile */
@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}

/* SHOW desktop nav, hide mobile nav on desktop */
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1120px) {
  .container {
    max-width: 1002px;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 100%;
    padding: 0 6vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 180px;
    padding: 18px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  main > section, .section {
    padding: 29px 8px;
    border-radius: 12px;
    margin-bottom: 40px;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    gap: 13px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .text-image-section,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    padding: 14px;
    border-radius: 10px;
    gap: 7px;
  }
  h1 {
    font-size: 1.62rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  header img[alt="Zasłona Przestrzeni"] {
    height: 34px;
  }
}
@media (max-width: 499px) {
  html {
    font-size: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97em;
  }
  footer {
    font-size: 0.92em;
    padding-left: 0;
    padding-right: 0;
  }
  .mobile-nav {
    width: 98vw;
    max-width: none;
    margin: 100px 0 0 0;
  }
}

/* -------------------- MICRO-INTERACTIONS -------------------- */
.card, .feature-grid > div, .btn-primary, .testimonial-card, .mobile-nav a, .cookie-banner button {
  /* All interactive cards/buttons have smooth transitions */
  transition: box-shadow 0.22s, transform 0.18s, background 0.19s, color 0.18s;
}

/* -------------------- VISUAL EFFECTS / NEON-LIKE ACCENTS -------------------- */
.btn-primary,
.card:hover,
.feature-grid > div:hover,
.mobile-nav a:active {
  box-shadow: 0 0 18px #D1A56355, 0 4px 16px #18172644;
}
.card:before,
.feature-grid > div:before {
  content: "";
  display: block;
  position: absolute;
  left: 15px; top: 15px;
  width: 35px; height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg,#D1A563 0%, #fdc47d 100%);
  opacity: 0.09;
  box-shadow: 0 0 16px #d1a56377;
}

/* -------------------- MISC -------------------- */
.text-section ul, .text-section ol {
  margin-bottom: 1.3em;
}
.text-section ul li,
.text-section ol li {
  margin-bottom: 0.47em;
  color: #d6ddeb;
}
.text-section ul img,
.text-section li img {
  width: 32px;
  height: 32px;
  margin-right: 11px;
  vertical-align: middle;
}

/* Accessibility & Focus */
a:focus,
button:focus {
  outline: 2.5px solid #D1A563;
  outline-offset: 2px;
  z-index: 1001;
}
.hide {
  display: none !important;
}

/* Success Page styling (thank-you) */
main .btn-primary[href="/"] {
  margin-top: 18px;
}

/* --- END OF STYLE.CSS --- */
