/* ===============================
   CSS RESET & BASE 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, main, menu, nav, output, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF8F3;
  color: #2A2833;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ===================
   CUSTOM PROPERTIES
   =================== */
:root {
  --brand-primary: #18427A;
  --brand-secondary: #2C924E;
  --brand-accent: #F2F2F2;
  --brand-warm: #FAE2D4;
  --brand-soft-orange: #FFE3CC;
  --brand-soft-yellow: #FFEBC6;
  --brand-soft-green: #DDF6E4;
  --brand-white: #FFF8F3;
  --brand-grey: #FAF8F5;
  --text-base: #2A2833;
  --text-dark: #1C1A24;
  --text-light: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 20px 0 rgba(60,36,8,0.06);
  --shadow-hover: 0 8px 30px 0 rgba(60,36,8,0.12);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ===================
   TYPOGRAPHY
   =================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--brand-primary);
  line-height: 1.18;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-secondary);
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--brand-primary);
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
}
p, li, ul {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-base);
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
ul {
  list-style: disc inside;
  margin-left: 10px;
}

/* Links */
a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--brand-secondary);
  text-decoration: none;
}
nav a {
  text-decoration: none;
  color: var(--brand-primary);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition),color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--brand-soft-orange);
  color: var(--brand-secondary);
}

/* ===================
   LAYOUT UTILS
   =================== */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 650px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--brand-soft-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) 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: 16px;
  padding: 24px 26px;
  background: var(--brand-soft-green);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  min-width: 270px;
  flex: 1 1 270px;
  color: var(--text-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.012);
}
.testimonial-card p {
  font-style: italic;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
.testimonial-card strong {
  font-size: 0.96rem;
  color: var(--brand-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-soft-yellow);
  padding: 20px 16px;
  border-radius: var(--radius);
}

.feature-grid > div {
  background: var(--brand-soft-orange);
  padding: 22px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 236px;
  flex: 1 1 234px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.018);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 40px 0 0 0;
  flex-wrap: wrap;
}
.client-logos img {
  width: 85px;
  opacity: 0.74;
  filter: grayscale(40%);
  transition: opacity var(--transition);
}
.client-logos img:hover {
  opacity: 1;
}

.highlighted-plan {
  background: var(--brand-warm);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-top: 24px;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 600;
}
.highlighted-plan span {
  color: var(--brand-secondary);
}

/* ===================
   BUTTONS & LINKS
   =================== */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(44, 146, 78, 0.13);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 12px;
  margin-bottom: 8px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(24, 66, 122, 0.14);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 28px;
  background: var(--brand-soft-yellow);
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  margin-right: 10px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-secondary);
  color: #fff;
  border-color: var(--brand-primary);
}

.btn-tertiary {
  display: inline-block;
  padding: 10px 26px;
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* ========== HEADER ========== */
header {
  background: var(--brand-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px 20px;
  gap: 18px;
}
header img {
  height: 40px;
}

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

header .btn-primary {
  margin: 0 0 0 12px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 6px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-primary);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: var(--brand-white);
  z-index: 1200;
  transform: translateX(100vw);
  transition: transform 0.35s var(--transition);
  box-shadow: -2px 0 40px 0 rgba(24,66,122,0.09);
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  align-self: flex-end;
  margin: 24px 18px 6px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mobile-nav a {
  width: 220px;
  padding: 16px 0;
  text-align: center;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  background: var(--brand-soft-yellow);
  margin-bottom: 3px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}

/* ========== MAIN ========== */
main {
  padding-top: 28px;
  padding-bottom: 60px;
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ========== FOOTER ========== */
footer {
  background: var(--brand-white);
  border-top: 1px solid var(--brand-accent);
  padding: 46px 0 32px 0;
  box-shadow: 0 -2px 24px 0 rgba(24,66,122,0.06);
  color: var(--brand-primary);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--brand-secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-primary);
}
footer img {
  height: 38px;
  margin-bottom: 14px;
}
footer p {
  font-size: 0.98rem;
  color: var(--text-dark);
  opacity: 0.83;
}

/* ========== TABLES (CENNIK) ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 10px 0;
  background: var(--brand-soft-yellow);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table th,
table td {
  padding: 16px 12px;
  text-align: left;
  font-family: 'Roboto', Arial, sans-serif;
}
table th {
  background: var(--brand-secondary);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
}
table tr:nth-child(even) td {
  background: var(--brand-white);
}
table tr:nth-child(odd) td {
  background: var(--brand-soft-yellow);
}

.pricing-table tr:nth-child(1) td {
  font-weight: 600;
  color: var(--brand-primary);
}

/* ============= COOKIE CONSENT BANNER & MODAL ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  padding: 24px 10px 18px 10px;
  background: var(--brand-soft-yellow);
  color: var(--brand-primary);
  box-shadow: 0 -2px 24px 0 rgba(24,66,122,0.12);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  margin: 0 4px;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2100;
  top:0; left:0; right:0; bottom:0;
  background: rgba(32,32,32,0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--brand-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 36px 20px 28px 20px;
  min-width: 320px;
  max-width: 94vw;
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.26s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.cookie-modal h4 {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--brand-soft-yellow);
  border-radius: 20px;
  border: 1px solid #d5caae;
  outline: none;
  transition: background var(--transition);
  position: relative;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: var(--brand-secondary);
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 1px;
  top: 1px;
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(24,66,122,0.10);
  transition: left 0.2s;
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 17px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ===============================
    RESPONSIVE DESIGN (Mobile)
   =============================== */
@media (max-width: 1100px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 93vw;
  }
  .feature-grid, .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 7px 14px 7px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 12px;
  }
  section, .section {
    padding: 28px 0;
    margin-bottom: 42px;
  }
  h1, .h1 {
    font-size: 1.95rem;
  }
  h2, .h2 {
    font-size: 1.4rem;
  }
  h3, .h3 {
    font-size: 1.08rem;
  }
  .content-wrapper,
  .feature-grid,
  .client-logos,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .testimonial-card, .feature-grid > div {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
  }
  .card {
    min-width: unset;
    width: 100%;
  }
  .client-logos {
    gap: 20px;
    justify-content: center;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 0 7px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 26px 8px 22px 8px;
  }
}
@media (max-width: 500px) {
  header img, footer img {
    height: 30px;
  }
  p, li, table th, table td {
    font-size: 0.98rem;
  }
  .btn-primary, .btn-secondary, .btn-tertiary {
    font-size: 1rem;
    padding: 12px 18px;
  }
  table th, table td {
    padding: 10px 6px;
  }
}

/* ============ MICRO INTERACTIONS ============ */
.section, .card, .feature-grid > div, .testimonial-card, .highlighted-plan {
  will-change: box-shadow, transform;
  transition: box-shadow var(--transition), transform var(--transition);
}

/* ========== HANDLING CLASSES FROM HTML EXACTLY ========== */
/* These selectors match the classes from the provided HTML */

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