/* CSS RESET & NORMALIZATION */
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 {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #fff;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  position: relative;
}
img, picture {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #1C315E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #222;
}

/* BRAND COLOR VARIABLES */
:root {
  --brand-primary: #1C315E;
  --brand-secondary: #B1B8C9;
  --brand-accent: #F3D312;
  --gray-100: #fff;
  --gray-200: #f7f7f8;
  --gray-300: #ececec;
  --gray-400: #d2d5db;
  --gray-500: #a7aab3;
  --gray-700: #33353d;
  --gray-900: #111216;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #111216;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}

strong {
  font-weight: 700;
  color: #1C315E;
}
p {
  font-size: 1rem;
  color: #232323;
  margin-bottom: 18px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 20px 0 rgba(18,20,26,0.05);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
nav > a:first-child {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  font-weight: 500;
  border-radius: 4px;
  padding: 6px 13px;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover,
nav ul li a:focus,
nav ul li a[aria-current="page"] {
  background: var(--gray-300);
  color: #1C315E;
}
nav .btn.primary {
  margin-left: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #111216;
  cursor: pointer;
  z-index: 1102;
  border-radius: 6px;
  height: 46px;
  width: 46px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--gray-300);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,23,25,0.96);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.87,-.41,.19,1.44);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 22px 28px;
}
.mobile-menu.active {
  transform: translateX(0) !important;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #f3f3f3;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 32px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: rgba(240,240,240,0.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 8px;
  border-radius: 4px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-accent);
  background: #232323;
}

@media (max-width: 1024px) {
  header .container {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  nav ul {
    display: none;
  }
  nav .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  nav {
    gap: 8px;
  }
}

/* BUTTONS */
.btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 14px 0 rgba(18,20,26,0.07);
  position: relative;
  letter-spacing: 0.01em;
}
.btn.primary {
  background: #1C315E;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(28, 49, 94, 0.06);
}
.btn.primary:hover,
.btn.primary:focus {
  background: #111216;
  color: #F3D312;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 24px 0 rgba(28, 49, 94, 0.11);
}
.btn.secondary {
  background: #fff;
  color: #1C315E;
  border: 2px solid #1C315E;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #1C315E;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* SECTIONS & FLEX LAYOUTS (MANDATORY PATTERNS) */
section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 30px 8px;
    border-radius: 14px;
  }
}

.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container,
.card-grid,
.features,
.grid-3,
.testimonials,
.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fafbfc;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(18,20,26,0.04);
  padding: 28px 28px 22px 28px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 30px rgba(30,33,40,0.13);
  transform: translateY(-6px) scale(1.019);
}
.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;
  border-radius: 12px;
  padding: 24px 28px;
  background: #f9f9fa;
  box-shadow: 0 2px 18px 0 rgba(18,20,26,0.07);
  margin-right: 9px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 400px;
  border-left: 6px solid #1C315E;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #1C315E;
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 10px;
}
/* Feature Item (for future, allow expansion) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* GRID-3 on desktop, stack on mobile */
.grid-3 {
  flex-wrap: wrap;
  gap: 24px;
}
.grid-3 > * {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 380px;
}
@media (max-width: 992px) {
  .grid-3 > * {
    min-width: 190px;
    max-width: 100%;
    flex-basis: 48%;
  }
}
@media (max-width: 600px) {
  .grid-3, .testimonials, .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .grid-3 > *,
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    margin-right: 0;
  }
}

.text-image-section, .contact-section {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section, .contact-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/***** CARDS & FEATURES *****/
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(18,20,26,0.05);
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 225px;
  transition: box-shadow 0.20s, transform 0.12s;
}
.feature img {
  width: 42px;
  height: 42px;
  filter: grayscale(100%) brightness(0.34);
  margin-bottom: 10px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 8px 26px 0 rgba(28, 49, 94, 0.12);
  transform: translateY(-5px) scale(1.019);
}
.feature h3 {
  color: #1C315E;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature p {
  font-size: 1rem;
  color: #33353d;
  margin-bottom: 0;
}

/* TEXT SECTION & CONTENT WRAPPER */
.text-section {
  gap: 18px;
  font-size: 1.08rem;
}
.text-section ul {
  margin: 12px 0 18px 12px;
  padding-left: 18px;
  list-style-type: disc;
}
.text-section ul li {
  margin-bottom: 11px;
  color: #30333f;
  font-size: 1.01rem;
}

/***** WARRANTY INFO ON OFERTA *****/
.warranty-info {
  background: #f3f4f6;
  border-radius: 10px;
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 28px 20px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 10px 0 rgba(28,49,94,0.05);
  border-left: 5px solid var(--brand-accent);
}

/***** ARTICLE-LIKE GROUPINGS (Poradnik, Realizacje) *****/
.article-list h2,
.tips-grid h2,
.faq h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
  color: #1C315E;
}
.article-list ul,
.tips-grid ul,
.faq ul {
  padding-left: 19px;
  margin-bottom: 15px;
}
.article-list ul li,
.tips-grid ul li,
.faq ul li {
  margin-bottom: 7px;
  color: #111216;
  font-size: 1.01rem;
}

/***** FOOTER *****/
footer {
  background: #181A20;
  color: #f7f8fa;
  padding: 38px 0 20px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.footer-brand img {
  height: 30px;
  width: auto;
  filter: grayscale(100%) brightness(1.6);
}
.footer-menu {
  display: flex;
  gap: 24px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #B1B8C9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.19s;
  padding: 3px 6px;
  border-radius: 5px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
  background: #222330;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #B1B8C9;
  font-size: 0.99rem;
  margin-bottom: 3px;
}
.copyright {
  font-size: 0.95rem;
  color: #5e6065;
  margin-top: 6px;
}
@media (max-width: 600px) {
  footer .container {
    padding-right: 3px;
    padding-left: 3px;
    gap: 11px;
  }
  .footer-menu {
    gap: 11px;
    font-size: 0.96rem;
  }
}

/***** THANK YOU PAGE HIGHLIGHT *****/
.success-message, .next-steps-info {
  background: #fafbe8;
  border-left: 4px solid #F3D312;
  color: #181A20;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.next-steps-info a {
  color: #1C315E;
}
.btn.home-button {
  display: block;
  min-width: 210px;
  margin: 26px 0 6px 0;
  text-align: center;
}

/***** COOKIES BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(28,49,94,0.98);
  color: #fff;
  z-index: 1123;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 19px 15px 23px;
  box-shadow: 0 -4px 32px rgba(28,49,94,0.11);
  border-radius: 19px 19px 0 0;
  font-size: 0.99rem;
  animation: cookieBannerSlideUp 0.46s cubic-bezier(.51,1.85,.47,.81);
}
@keyframes cookieBannerSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .banner-content {
  flex: 1 1 230px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  padding: 9px 24px;
  font-size: 1rem;
  border-radius: 6px;
  background: var(--brand-accent);
  color: #222;
  border: none;
  font-weight: 700;
  margin: 0;
  box-shadow: none;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  background: #222;
  color: #F3D312;
}
.cookie-banner .btn.cookie-settings {
  background: #fff;
  color: #222;
  border: 1.5px solid #d2d5db;
}
.cookie-banner .btn.cookie-settings:hover {
  background: #1C315E;
  color: #fff;
  border-color: #1C315E;
}

.cookie-modal-backdrop {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(18,19,20,0.87);
  z-index: 1126;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active { display: flex; }
.cookie-modal {
  background: #fff;
  color: #181A20;
  border-radius: 14px;
  min-width: 290px;
  max-width: 98vw;
  max-height: 96vh;
  padding: 34px 24px 18px 24px;
  box-shadow: 0 8px 46px rgba(18,20,26,0.16);
  z-index: 1127;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalFadeIn 0.3s cubic-bezier(.51,1.85,.47,.81);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal .modal-header h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #1C315E;
  margin: 0;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1C315E;
  cursor: pointer;
  border-radius: 5px;
  padding: 1px 7px;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #e9eaed;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 12px 0 7px 0;
  border-bottom: 1px solid #ececec;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .category-label {
  font-weight: 600;
  color: #1C315E;
}
.cookie-modal .cookie-switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  align-items: center;
  justify-content: center;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-modal .cookie-slider {
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 22px;
  background: #ececec;
  border-radius: 12px;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch input:checked + .cookie-slider {
  background: #F3D312;
}
.cookie-modal .cookie-slider:before {
  position: absolute;
  left: 3px; top: 3px;
  content: '';
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-description {
  font-size: 0.99rem;
  color: #232323;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 9px;
}
.cookie-modal .btn {
  background: #1C315E;
  color: #fff;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  box-shadow: none;
}
.cookie-modal .btn:hover,
.cookie-modal .btn:focus {
  background: #F3D312;
  color: #181A20;
}

/* MISCELLANEOUS */
blockquote {
  border-left: 4px solid #1C315E;
  margin: 16px 0;
  padding: 12px 18px 13px 16px;
  background: #fafbfc;
  border-radius: 9px;
  font-size: 1.01rem;
  color: #1C315E;
}

pre, code {
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 1em;
  background: #f7f7fa;
  color: #1C315E;
  border-radius: 6px;
  padding: 4px 8px;
}

/***** RESPONSIVE ADJUSTMENTS *****/
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.1rem; }
  section { padding: 23px 2px; }
  .content-wrapper, .text-section { gap: 13px; }
}
@media (max-width: 480px) {
  .btn, .btn.primary, .btn.secondary { padding: 10px 16px; font-size: 0.99rem; }
  .cookie-banner { font-size: 0.95rem; padding: 13px 6px 11px 5px; gap: 10px; border-radius: 8px 8px 0 0; }
  .cookie-modal { padding: 18px 6px 8px 6px; }
}

/***** ACCESSIBILITY & FOCUS OUTLINE (for accessibility) *****/
:focus {
  outline: 2px solid #F3D312;
  outline-offset: 2px;
}

/***** PRINT STYLES *****/
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section { box-shadow: none !important; background: #fff !important; border-radius: 0 !important; }
}

/*-- END OF STYLES --*/