/* RESET & BASELINE ------------------ */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #171e27;
  color: #e4ebf1;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  background-image: linear-gradient(135deg, #121820 80%, #232d3c 100%);
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #7EC2E6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffffff;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* TYPOGRAPHY: INDUSTRIAL MODERN */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #e4ebf1;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #ffffff;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #afe0ff;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, .subtitle {
  color: #dde7f0;
  margin-bottom: 15px;
  line-height: 1.7;
}
.subtitle {
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #b5c5d6;
}
b, strong {
  font-weight: 700;
  color: #fcfcfc;
}

/* INDUSTRIAL BUTTONS */
.cta-btn, .cta-main-btn, .mobile-menu button, .cookie-banner button, .cookie-modal button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1A3A5F;
  color: #fff;
  border: 2px solid #7EC2E6;
  border-radius: 8px;
  padding: 10px 30px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(30,50,85,0.15), 0 1.5px 6px 0px #19304B66 inset;
  text-shadow: 0 1px 0 #202c3d, 0 0 2px #19344aCC;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  margin-top: 12px;
  margin-bottom: 12px;
  gap: 8px;
}
.cta-btn:hover, .cta-main-btn:hover, .cookie-banner button:hover, .cookie-modal button:hover {
  background: #29445f;
  color: #7EC2E6;
  box-shadow: 0 3px 18px 0 #7EC2E640, 0 2px 8px 0px #19304B99 inset;
  border-color: #fff;
  text-decoration: none;
}
.cta-main-btn {
  background: #7EC2E6;
  color: #1A3A5F;
  border-color: #1A3A5F;
  padding: 11px 26px;
  margin-left: 32px;
  letter-spacing: 0.06em;
}
.cta-main-btn:hover {
  background: #afe0ff;
  color: #0f1b28;
  border-color: #0f293a;
}

/* HEADER STYLES */
header {
  background: #151c27;
  box-shadow: 0 2px 12px 0 rgba(10,10,10,0.2);
  border-bottom: 3px solid #252e39;
}
header .container {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: #c7e4f8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
  letter-spacing: .04em;
  transition: color 0.18s, text-shadow 0.22s;
}
header nav a:hover {
  color: #fff;
  text-shadow: 0 1px 6px #7EC2E6;
}
header img[alt="Pokojowo.pl"] {
  height: 38px;
  margin-right: 28px;
}
.mobile-menu-toggle {
  display: none;
  background: #232b35;
  border: none;
  color: #7EC2E6;
  font-size: 2rem;
  padding: 7px 11px;
  border-radius: 6px;
  margin-left: 14px;
  box-shadow: 0 1px 5px #17304455;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover {
  background: #2a3643;
  color: #fff;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1010;
  background: #15202aee;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-105%);
  transition: transform 0.40s cubic-bezier(.67,0,.32,.95);
  box-shadow: 5px 0 25px #20304099;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  color: #b4e3ff;
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  padding: 14px 24px 8px 12px;
  margin: 14px 0 0 10px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 9999;
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 24px 0 0 15px;
}
.mobile-nav a {
  color: #afe0ff;
  font-size: 1.35rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 9px 0;
  border-bottom: 1px solid #232b35;
  width: calc(100% - 18px);
  border-radius: 3px;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:hover {
  color: #fff;
  background: #22313f;
  text-decoration: none;
}

/* LAYOUT & FLEX SPACING ------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #202937;
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 3px 24px 0 #14253f66;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #273142;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow:0 6px 42px #26476955,0 2px 10px #182a3c66;
  border-color: #7EC2E6;
}
.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: center;
  gap: 20px;
  background: #fafbfc;
  color: #253046;
  border-radius: 10px;
  box-shadow: 0 1.5px 10px #0630570d;
  padding: 20px;
  min-width: 220px;
  max-width: 370px;
  margin-bottom: 20px;
  border: 1.5px solid #7EC2E6;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.testimonial-card b, .testimonial-card p{
  color: #253046;
}
.testimonial-card:hover {
  border-color: #1A3A5F;
  box-shadow: 0 5px 32px #1A3A5F33;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: none;
  padding: 0;
  color: #e6ecf4;
  border: none;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 210px;
  background: #202937;
  border-radius: 14px;
  padding: 26px 18px 20px 18px;
  box-shadow: 0 3px 18px 0 #10274744;
  border: 1px solid #253750;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border 0.18s, box-shadow 0.22s;
}
.feature-grid > div:hover {
  border-color: #7EC2E6;
  box-shadow: 0 7px 36px #0d3e5450;
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
}

/* FORM ELEMENTS, SEARCH BAR, FILTERS */
input[type="text"] {
  background: #171e27;
  color: #e4ebf1;
  border: 2px solid #253750;
  border-radius: 7px;
  padding: 12px 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0px;
  width: 100%;
  transition: border 0.2s;
}
input[type="text"]:focus {
  outline: none;
  border-color: #7EC2E6;
}
.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
}
.search-bar input {
  flex: 1 1 60%;
}
.search-bar button {
  background: #7EC2E6;
  border: none;
  border-radius: 5px;
  padding: 9px 14px;
  cursor: pointer;
  color: #18334b;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.search-bar button:hover {
  background: #1A3A5F;
  color: #fff;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
}
.filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 0 10px 0;
  padding: 0;
  list-style: none;
}
.filters li {
  background: #23314a;
  color: #b3c7dd;
  border-radius: 5px;
  padding: 6px 18px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* FAQ, LISTS, VALUES */
.faq-list h3 {
  margin-top: 24px;
  font-size: 1.2rem;
  color: #1A3A5F;
}
.faq-list p {
  margin-bottom: 0px;
}
.values-list {
  list-style-type: '\25A0  ';
  color: #7EC2E6;
  padding-left: 24px;
}
.values-list li {
  font-family: 'Montserrat', sans-serif;
  color: #e4ebf1;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* FOOTER STYLES ------------------------- */
footer {
  background: #121820;
  border-top: 2px solid #24334a;
  box-shadow: 0 -2px 14px #15223B55;
  color: #bfcbdc;
  font-size: 15px;
  margin-top: 48px;
}
footer .container {
  padding: 28px 20px 18px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #7EC2E6;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact h3 {
  color: #afe0ff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-contact ul {
  list-style: none;
  padding-left: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  color: #e5f1fa;
  font-size: 0.99rem;
  gap: 6px;
  margin-bottom: 7px;
  font-weight: 400;
}
.footer-contact li img {
  width: 16px;
  height: 16px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: filter 0.18s;
  filter: grayscale(45%) brightness(1.2);
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(1.5) drop-shadow(0 0 6px #7EC2E6);
}
footer p {
  font-size: 14px;
  margin-top: 7px;
  color: #95aac7;
}

/* RESPONSIVE DESIGN --------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 980px;
    padding-inline: 13px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 14px;
  }
  .feature-grid > div {
    padding: 18px 9px 18px 14px;
    min-width: 155px;
    font-size: .97rem;
  }
  .footer-social a img {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.08rem; }
  header .container {
    flex-direction: row;
    gap: 7px;
    padding: 14px 6px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .cta-main-btn {
    margin-left: auto;
    padding: 9px 15px;
    font-size: .97rem;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .feature-grid > div { min-width: 100%; }
  .testimonial-card { max-width: 100%; width: 100%; }
  footer .content-wrapper, .section {
    flex-direction: column;
    gap: 20px;
    padding: 26px 7px;
  }
  .text-image-section, .search-bar, .filters ul {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .search-faq {
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  .container {
    padding-inline: 5px;
  }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.11rem; }
  .card, .feature-grid > div {
    padding: 13px 7px;
    font-size: .95rem;
  }
}

/* MICRO-INTERACTIONS, EFFECTS ----------- */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .cta-main-btn, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, border 0.18s, background 0.17s, color 0.15s, opacity 0.18s;
}
.cta-btn:active, .cta-main-btn:active {
  transform: scale(0.98);
}
input[type="text"]:focus {
  box-shadow: 0 0 2px #7EC2E6, 0 1px 8px #1A3A5F33;
}

/* COOKIE CONSENT BANNER & MODAL ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #252e39;
  box-shadow: 0 -2px 18px #111d2b35;
  color: #e4ebf1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 22px 15px 16px;
  font-size: 1rem;
  border-top: 2px solid #7EC2E6;
  opacity: 0.96;
  transition: transform 0.36s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  box-sizing: border-box;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  background: #1A3A5F;
  border: 2px solid #7EC2E6;
  color: #fff;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 17px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-banner button.accept {
  background: #7EC2E6;
  color: #182037;
  border-color: #1A3A5F;
}
.cookie-banner button.accept:hover {
  background: #afe0ff;
  color: #1A3A5F;
}
.cookie-banner button.reject {
  background: #252e39;
  color: #afe0ff;
  border-color: #7EC2E6;
}
.cookie-banner button.reject:hover {
  background: #374963;
  color: #fff;
}
.cookie-banner button.settings {
  background: none;
  border: 2px solid #7EC2E6;
  color: #7EC2E6;
}
.cookie-banner button.settings:hover {
  background: #182037;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #151f29cc;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fafbfc;
  color: #222e3a;
  border-radius: 16px;
  padding: 34px 22px 26px 22px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 9px 44px #0e243b42;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 15px;
  background: none;
  border: none;
  color: #7EC2E6;
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-close:hover {
  color: #1A3A5F;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  color: #1A3A5F;
  margin-bottom: 13px;
}
.cookie-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #223960;
}
.cookie-toggle {
  width: 46px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  background: #dde7f0;
  border-radius: 12px;
  position: relative;
  margin-left: 10px;
}

.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 19px; height: 18px;
  background: #7EC2E6;
  border-radius: 50%;
  transition: transform 0.2s, background 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked + .slider {
  transform: translateX(22px);
  background: #1A3A5F;
}
.cookie-category.essential {
  opacity: 0.65;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 21px;
}
.cookie-modal button {
  background: #7EC2E6;
  color: #1A3A5F;
  border: 2px solid #1A3A5F;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal button:hover {
  background: #1A3A5F;
  color: #fff;
  border-color: #7EC2E6;
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 7px;
    font-size: 0.92rem;
  }
  .cookie-banner .cookie-banner-buttons {
    gap: 7px;
  }
  .cookie-modal-content {
    padding: 18px 4px 15px 5px;
    min-width: 96vw;
    font-size: .99rem;
  }
}

/* MISCELLANEOUS UTILITIES --------------- */
.text-center {
  text-align: center;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hide { display: none!important; }

/* GAPS BETWEEN ELEMENTS */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper > * + * {
  margin-top: 18px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-left: 20px;
}

/* ENFORCED SPACING (CRITICAL) */
.card, .testimonial-card, .feature-grid>div {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .content-grid, .testimonials {
  gap: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* REQUIRED FLEXBOX ENFORCEMENT */
/* (No grid, no columns, never use absolute except for non-content decor) */
/* Layouts checked and guaranteed */
