/* =============================================================================
   RESET & BASE STYLES
============================================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9FAFA;
  color: #284162;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
  background: #FFD96622;
}
::-webkit-scrollbar-thumb {
  background: #FFD96666;
  border-radius: 8px;
}

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

ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
a {
  color: #284162;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFD966;
  outline-offset: 2px;
}
strong {
  font-weight: bold;
  color: #C38F00;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #284162;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.section h2 {
  color: #B97D10;
}

p {
  margin-bottom: 16px;
}

/* =============================================================================
   CONTAINERS & LAYOUTS
============================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 32px 0 #FFD96622;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 #FFD96622;
  margin-bottom: 20px;
  position: relative;
  padding: 26px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 #FFD96655;
  transform: translateY(-4px) scale(1.02);
}

.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: 24px;
  margin-bottom: 24px;
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 #FFD96633;
  border-left: 7px solid #FFD966;
}
.testimonial-card p {
  color: #284162;
  font-size: 1.13rem;
}
.testimonial-card strong {
  color: #B97D10;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* =============================================================================
   HEADER & NAVIGATION
============================================================================= */
header {
  width: 100%;
  background: #fffbe9;
  box-shadow: 0 1px 12px 0 #FFD96622;
  position: relative;
  z-index: 998;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
}
header nav img {
  max-height: 40px;
  border-radius: 8px;
  margin-right: 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  color: #284162;
  background: transparent;
  transition: background .15s, color .15s;
}
header nav a:hover,
header nav a:focus {
  background: #ffd966;
  color: #B97D10;
}
header nav a.cta-primary {
  background: #ffd966;
  color: #284162;
  border-radius: 22px;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 #FFD96644;
  transition: background .2s, color .2s, box-shadow .2s;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: #284162;
  color: #FFD966;
  box-shadow: 0 4px 18px 0 #28416233;
}

.mobile-menu-toggle {
  display: none;
  background: #ffd966;
  color: #284162;
  font-size: 2rem;
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin: 0 16px 0 auto;
  transition: background 0.2s;
  z-index: 1200;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #b97d10;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffbe9;
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -8px 0 40px 0 #FFD96699;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  color: #B97D10;
  border: none;
  margin: 24px 24px 0 0;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFD966;
  color: #284162;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 40px 36px 0 36px;
}
.mobile-nav a {
  padding: 16px;
  border-radius: 14px;
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: #284162;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFD966;
}

/* =============================================================================
   HERO & CTA BUTTONS
============================================================================= */
.cta-primary {
  display: inline-block;
  background: #FFD966;
  color: #284162;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 6px 24px 0 #FFD96655;
  text-align: center;
  transition: background .2s, color .2s, box-shadow .2s, transform .12s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #284162;
  color: #FFD966;
  box-shadow: 0 2px 24px 0 #28416266;
  transform: scale(1.03) translateY(-3px);
}

/* =============================================================================
   FEATURES, LISTS & ICONS
============================================================================= */
section ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 #FFD96622;
  padding: 10px 18px;
  font-size: 1.09rem;
  color: #284162;
  transition: box-shadow 0.15s;
  min-height: 44px;
}
section ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
}
section ul li strong {
  color: #B97D10;
}

/* =============================================================================
   TABLE STYLES (CENNIK)
============================================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
  box-shadow: 0 2px 10px 0 #FFD96622;
}
thead {
  background: #fffbe9;
}
thead tr th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #284162;
  padding: 14px 8px;
  letter-spacing: 0.02em;
  text-align: left;
  border-bottom: 2px solid #FFD966;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:nth-child(even) {
  background: #fffbe9;
}
tbody tr:hover {
  background: #FFD96633;
}
td {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 13px 8px;
  color: #284162;
}

/* =============================================================================
   FOOTER
============================================================================= */
footer {
  background: #FFD966;
  color: #284162;
  padding: 30px 0;
  box-shadow: 0 -2px 40px 0 #FFD96633;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 80px;
}
footer img {
  max-width: 70px;
  border-radius: 16px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0 0;
}
footer nav a {
  color: #284162;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 12px;
  background: none;
  transition: background 0.1s;
}
footer nav a:hover {
  background: #FFF2BC;
}
footer .text-section p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 8px;
}
footer .text-section img {
  width: 20px;
  height: 20px;
  margin: 0;
}

/* =============================================================================
   COOKIE CONSENT BANNER & MODAL
============================================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fffbe9;
  box-shadow: 0 -4px 24px 0 #FFD96655;
  padding: 22px 30px 22px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3000;
  transition: transform .32s cubic-bezier(.5,1.5,.2,1);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cookie-banner__text {
  flex: 1 1 0;
  font-size: 1.1rem;
  color: #284162;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button,
.cookie-banner .cookie-banner__button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  padding: 11px 22px;
  border-radius: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 #FFD96644;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cookie-accept {
  background: #FFD966;
  color: #284162;
}
.cookie-accept:hover {
  background: #284162;
  color: #FFD966;
}
.cookie-reject {
  background: #fff;
  color: #B97D10;
  border: 2px solid #FFD966;
}
.cookie-reject:hover {
  background: #FFD96644;
}
.cookie-settings {
  background: #fffbe9;
  color: #284162;
  border: 2px solid #FFD966;
}
.cookie-settings:hover {
  background: #FFD966;
  color: #284162;
}
/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5000;
  justify-content: center;
  align-items: center;
  background: #0006;
  animation:fadein .25s cubic-bezier(.4,0,.9,1);
}
@keyframes fadein {
  from { opacity: 0 }
  to   { opacity: 1 }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal__box {
  background: #fffbe9;
  border-radius: 18px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 12px 42px 0 #FFD96688;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #284162;
  margin-bottom: 4px;
}
.cookie-modal__close {
  background: #ffd966;
  color: #284162;
  border: none;
  font-size: 1.8rem;
  border-radius: 50%;
  padding: 4px 12px 8px 12px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.15s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: #284162;
  color: #FFD966;
}
.cookie-modal__options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.cookie-modal__option label {
  font-size: 1rem;
  color: #284162;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal__option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #FFD966;
  border-radius: 6px;
  margin-right: 2px;
}
.cookie-modal__note {
  font-size: 0.92rem;
  color: #B97D10;
  background: #fff4b1;
  border-radius: 8px;
  padding: 6px 10px;
}
.cookie-modal__actions {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* =============================================================================
   RESPONSIVE STYLES
============================================================================= */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  .container { max-width: 92vw; }
}
@media (max-width: 860px) {
  header nav {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 768px) {

  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  p, section ul li { font-size: 1rem; }

  .container {
    padding: 0 10px;
    max-width: 100vw;
  }

  .section { padding: 26px 8px; margin-bottom: 38px; }

  .content-wrapper,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }

  .card-container,
  .feature-item,
  .testimonial-card,
  .footer .container {
    gap: 12px;
  }

  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-item { gap: 10px; }

  footer .container {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-toggle {
    display: block;
  }
  header nav {
    display: none;
  }
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* =============================================================================
   FINE TUNING & MISC STYLES
============================================================================= */
/* Hero backgrounds for first sections */
section:first-of-type {
  background: #FFD96633;
  box-shadow: 0 8px 28px 0 #FFD96622;
  border-radius: 20px;
}

/* Remove last margin from sections in main */
main > section:last-child {
  margin-bottom: 0 !important;
}

/* Table tweaks for mobile */
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  thead { display: none; }
  tr { margin-bottom: 16px; }
  td {
    text-align: left;
    padding: 8px 2px;
    border-bottom: 1px solid #FFD96655;
    position: relative;
  }
  td:before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    color: #b97d10;
    font-size: 0.97rem;
  }
}

hr {
  border: none;
  border-top: 1px solid #FFD966;
  margin: 24px 0;
}

/* =============================================================================
   ANIMATIONS & MICRO-INTERACTIONS
============================================================================= */
.card, .section, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .section:hover {
  box-shadow: 0 10px 38px 0 #FFD96666;
}
.cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0px 8px 0 #FFD96644;
}

/* =============================================================================
   UTILITIES
============================================================================= */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-24 { gap:24px; }

/* =============================================================================
   Z-INDEX RULES
============================================================================= */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1000; }

/* =============================================================================
   VISUAL ACCESSIBILITY
============================================================================= */
:focus-visible {
  outline: 2px solid #FFD966 !important;
  outline-offset: 1px;
}

/* =============================================================================
   PRINT STYLES
============================================================================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body, html { background: #fff !important; color: #111 !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}

/* =============================================================================
   END
============================================================================= */