/* CSS RESET & BASELINE 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, 
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #fafbfc;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s;
}
button, .cta-primary, .mobile-menu-toggle, .cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  outline: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.25s cubic-bezier(.37,.01,.26,1.18);
}

::-webkit-input-placeholder { color: #888; opacity: 1; }
::-moz-placeholder { color: #888; opacity: 1; }
:-ms-input-placeholder { color: #888; opacity: 1; }
::placeholder { color: #888; opacity: 1; }

/* BRAND & TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 32px;
  color: #080b0f;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
h4 {
  font-size: 1.2rem;
}
p, ul, ol, li, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  color: #24262a;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #111;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: #282828;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* LAYOUT & SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(19, 23, 41, 0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #f6f7f8;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(34,34,34,0.045);
  padding: 32px 24px;
  position: relative;
  min-width: 260px;
  min-height: 180px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f3f3f3;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(35, 41, 54, 0.07);
  font-size: 1.05rem;
}
.testimonial-card p {
  color: #111;
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #223056;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 1px 14px 0 rgba(22, 25, 37, 0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #223056;
  opacity: 0.94;
  border-radius: 6px;
  padding: 7px 12px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #fff;
  background: #223056;
}

.cta-primary {
  background: #223056;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.08rem;
  box-shadow: 0 6px 24px 0 rgba(34,48,86,0.073);
  transition: background 0.21s, color 0.21s, box-shadow 0.25s;
  margin-left: 14px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fff;
  color: #223056;
  border: 1.5px solid #223056;
}

/* MOBILE HEADER NAV */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 1400;
  background: #223056;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 6px 32px 0 rgba(22,31,51,0.13);
  transition: background 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #151923;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #223056;
  color: #fff;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.76,-0.03,.27,1.16);
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  position: absolute;
  top: 20px; right: 24px;
  padding: 8px;
  z-index: 2020;
  line-height: 1;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #EFC84A;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 0;
  border-radius: 8px;
  width: 100%;
  display: block;
  text-align: center;
  background: transparent;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #EFC84A;
  background: rgba(255,255,255,0.07);
}

@media (max-width: 1080px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 16px;
  }
  .cta-primary {
    padding: 12px 21px;
    font-size: 1rem;
    margin-left: 6px;
  }
}
@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MAIN SECTIONS & FLEX UTILITIES */
main {
  padding: 36px 0 56px 0;
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .section {
    padding: 22px 8px;
    margin-bottom: 42px;
  }
  .container {
    padding: 0 8px;
  }
  main {
    padding: 26px 0 36px 0;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px;
  }
  .content-wrapper {
    gap: 8px;
  }
}

/* FLEX GAP SAFEGUARDS FOR EDGE CASES */
.card-container > *, .content-grid > *, .text-image-section > *, .feature-item > *, .footer-menu > *, .mobile-nav > * {
  margin: 0;
}

/* BUTTONS & INTERACTIVE ELEMENTS */
button, .cta-primary, .cookie-btn {
  transition: background 0.19s, box-shadow 0.19s, color 0.19s, border 0.22s;
}
button:active, .cta-primary:active {
  transform: scale(.96);
}


/* FORMS & INPUTS (IN CASE FUTURE FORM) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  border: 1.5px solid #d7dae0;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #223056;
  outline: none;
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #eee;
  padding: 48px 0 24px;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.83;
  margin-bottom: 4px;
  transition: color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #EFC84A;
}
.brand-footer img {
  height: 42px;
  filter: grayscale(1) contrast(1.12);
}
.footer-contact {
  font-size: 0.95rem;
  opacity: 0.79;
  color: #ccc;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .brand-footer img {
    height: 34px;
  }
}

/* ICONS AND INLINE ICONS */
img[alt^="Telefon"],
img[alt^="Email"],
img[alt^="Adres"],
img[alt^="Godziny otwarcia"],
img[alt^="Facebook"],
img[alt^="Instagram"],
img[alt^="icon-"] {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  display: inline-block;
  margin-bottom: -3px;
}

/* MONOCHROME SOPHISTICATED COLOR PALETTE */
body, .section {
  background: #fafbfc;
}
.section {
  background: #fff;
}
.card, .testimonial-card, .feature-item {
  background: #f4f4f7;
}
.testimonial-card {
  background: #f6f7f9;
  border: 1.5px solid #dde1e9;
  color: #222;
}
h1, h2, h3, h4, h5, h6, strong, .cta-primary {
  color: #111;
}
.footer-menu a, .footer-contact {
  color: #fff;
}
.brand-footer img {
  filter: brightness(0) invert(.08);
}

/* SUBTLE SHADOWS AND RADIUS */
.section, .card, .testimonial-card, .feature-item, .cookie-banner, .cookie-modal {
  box-shadow: 0 8px 32px 0 rgba(19, 23, 41, 0.06);
  border-radius: 20px;
}
.card {
  border-radius: 16px;
}
.cta-primary, .cookie-btn {
  border-radius: 8px;
}

/* VISUAL SPACING ENFORCEMENT */
.section, .card, .testimonial-card, .feature-item, .content-wrapper > *, .footer-menu > *, .footer-contact, .brand-footer, .mobile-nav > * {
  margin-bottom: 20px;
}
.section:last-child, .content-wrapper > *:last-child, .footer-menu > *:last-child, .footer-contact:last-child, .card:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* COLORED ACCENTS (BRAND GOLD) */
.cta-primary:hover, .cta-primary:focus {
  color: #223056;
  border: 2px solid #223056;
  background: #fff;
}
.cta-primary:active {
  background: #efefef;
}
header nav a.active, .footer-menu a.active {
  color: #EFC84A;
  font-weight: 700;
}

/* MICRO-INTERACTIONS */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.21s, border 0.19s, background 0.21s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 14px 42px 0 rgba(20,21,29,0.14);
  background: #eef0f3;
}

/* SECTIONAL BORDERS (MONOCHROME STYLE) */
h2 {
  border-bottom: 1.5px solid #eeeeee;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

/* LINK HOVER EFFECTS */
a:hover, a:focus {
  color: #EFC84A;
}

/* VISUAL OVERRIDES FOR STRONG CONTRAST */
.section:nth-child(even) {
  background: #f4f5f6;
}
.section:nth-child(odd) {
  background: #fff;
}

/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .card, .testimonial-card {
    padding: 20px 10px;
    min-width: 0;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 24000;
  width: 100%;
  background: #181a20;
  color: #fff;
  box-shadow: 0 -8px 24px 0 rgba(19, 23, 41, 0.11);
  padding: 22px 12px 18px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 18px;
  font-size: 1rem;
}
.cookie-banner-content {
  flex: 1 1 240px;
  font-size: 1rem;
  margin-right: 14px;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: #223056;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  border: none;
  padding: 8px 21px;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(34,48,86,0.06);
  border-radius: 6px;
  margin-bottom: 0;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #EFC84A;
  color: #223056;
}
.cookie-btn--secondary {
  background: #fff;
  color: #223056;
  border: 1px solid #223056;
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: #223056;
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6px 18px 6px;
    gap: 11px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 11px;
    width: 100%;
  }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 25000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 19, 25, 0.71);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: 20px;
  padding: 34px 28px 20px 28px;
  box-shadow: 0 16px 52px 0 rgba(19, 22, 41, 0.19);
  min-width: 320px;
  min-height: 180px;
  max-width: 98vw;
  max-height: 96vh;
  z-index: 25100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.26s cubic-bezier(.57,.24,.6,1.27);
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.9) translateY(16px); opacity: 0.95; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  background: transparent;
  color: #223056;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
  z-index: 25200;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.01rem;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 32px;
  height: 18px;
  background: #eee;
  border-radius: 10px;
  position: relative;
  transition: background 0.22s;
  margin-left: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle[data-checked="true"] {
  background: #223056;
}
.cookie-toggle .cookie-switch {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 1px; left: 1px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px 0 rgba(18,18,18,0.12);
  transition: left 0.22s;
}
.cookie-toggle[data-checked="true"] .cookie-switch {
  left: 15px;
}
.cookie-category label {
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-category .cookie-essential {
  color: #999;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 17px;
  flex-direction: row;
  justify-content: flex-end;
}

@media (max-width:470px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 7px 20px 14px;
  }
  .cookie-modal-close {
    top: 8px;
    right: 10px;
    font-size: 1.3rem;
  }
}

/* UTILITY CLASSES */
.text-section {
  background: transparent;
  color: #23252a;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
}
.text-section ul {
  margin: 8px 0 12px 22px;
}
.text-section li {
  margin-bottom: 6px;
}

/* SOCIAL ICONS IN FOOTER/KONTAKT */
.footer-social, .content-wrapper > div > a img[alt="Facebook"], .content-wrapper > div > a img[alt="Instagram"] {
  margin-right: 9px;
  margin-bottom: -2px;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.94;
  transition: opacity 0.14s, filter 0.19s;
}
.content-wrapper > div > a img[alt="Facebook"]:hover,
.content-wrapper > div > a img[alt="Instagram"]:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1.3);
}

/* DISABLED STATE */
[aria-disabled="true"], .disabled {
  opacity: 0.48 !important;
  pointer-events: none;
  cursor: not-allowed !important;
}

/* ACCESSIBILITY */
:focus {
  outline: 2.5px solid #EFC84A;
  outline-offset: 1.5px;
}

/* REMOVE NUMBER INPUT ARROWS */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
