/* ========================== CSS RESET & NORMALIZE =========================== */
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, menu, 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, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.44;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FCFAF6;
  color: #265F4B;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: disc inside;
  margin-left: 1.2em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ================= BRAND COLORS & TYPOGRAPHY ================= */
:root {
  --primary: #265F4B;
  --primary-dark: #18412F;
  --secondary: #FCFAF6;
  --secondary-light: #FFFFFF;
  --accent: #F7B633;
  --accent-dark: #D19315;
  --border-radius: 18px;
  --border-radius-sm: 12px;
  --shadow-section: 0px 3px 16px rgba(38, 95, 75, .07);
  --shadow-card: 0px 2px 9px rgba(38,95,75,0.11);
  --shadow-btn: 0px 3px 12px rgba(247,182,51,0.13);
  --focus-outline: 2px solid var(--accent);
  --transition: .28s cubic-bezier(.6,.01,0,1);
  --gap: 24px;
  --text-color: #265F4B;
  --text-color-secondary: #5A665A;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
}

/* ============== GENERAL CONTAINER & LAYOUTS =============== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-section);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ============= TYPOGRAPHY =============== */
h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.28rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.07rem;
  font-weight: 400;
  margin-bottom: 8px;
}
p, li, table {
  font-family: var(--body-font);
  color: var(--text-color-secondary);
  font-size: 1.07rem;
  margin-bottom: 15px;
  font-weight: 400;
}
p:last-child,
ul:last-child,
li:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ============== HEADER & NAVIGATION =============== */
header {
  background: var(--secondary-light);
  box-shadow: 0 2px 8px rgba(38, 95, 75, 0.06);
  padding: 0;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}
header img[alt="Glim Mix Zwierzaki"] {
  height: 52px;
  border-radius: var(--border-radius-sm);
  background: var(--secondary);
  box-shadow: 0 1px 4px rgba(38, 95, 75, 0.07);
  padding: 3px 8px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 5px 0;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  outline: none;
}
.cta-button {
  background: var(--accent);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.13rem;
  padding: 11px 28px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  margin-left: 22px;
  transition: background var(--transition), box-shadow var(--transition), transform .18s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(245, 196, 68, 0.17);
  transform: translateY(-2px) scale(1.03);
  outline: var(--focus-outline);
}

/* ========== Mobile Burger Menu ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  padding: 6px 16px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), transform var(--transition);
  z-index: 302;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent-dark);
  outline: var(--focus-outline);
  transform: scale(1.06);
}
.mobile-menu {
  position: fixed;
  z-index: 301;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--secondary-light);
  box-shadow: 0 4px 32px rgba(38,95,75,.14);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.73,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 60px 36px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  padding: 0 10px;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background .19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  transition: color .25s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  outline: var(--focus-outline);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== MAIN LAYOUT SECTIONS =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-section);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .23s, transform .25s;
}
.card:hover {
  box-shadow: 0 7px 22px rgba(38,95,75,0.13);
  transform: translateY(-2px) scale(1.012);
}
.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;
}

/* =============== FEATURES GRID & FEATURE ITEM =============== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius-sm);
  padding: 24px 22px 20px 22px;
  box-shadow: var(--shadow-card);
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .21s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 1px 6px rgba(38,95,75,.07);
  margin-bottom: 9px;
}
.feature-item h3 {
  font-size: 1.22rem;
  color: var(--primary);
  font-family: var(--heading-font);
}
.feature-item p {
  margin-bottom: 0;
  font-size: 1.02rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 30px rgba(38,95,75,0.14);
  transform: translateY(-2px) scale(1.015);
}

/* ================= TESTIMONIALS ===================== */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 0 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  position: relative;
  color: #23281d;
  font-size: 1.05rem;
  transition: box-shadow .18s, transform .19s;
}
.testimonial-card p {
  font-family: var(--body-font);
  color: #33482c;
  font-size: 1.07rem;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.45;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}
.testimonial-card:hover {
  box-shadow: 0 9px 40px rgba(38,95,75,0.16);
  transform: translateY(-2px) scale(1.012);
}

/* ==================== PRICING TABLE ===================== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  margin: 18px 0 33px 0;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  text-align: left;
  font-size: 1.05rem;
  border-bottom: 1px solid #EFEAE1;
}
.pricing-table th {
  background: var(--secondary);
  font-family: var(--heading-font);
  color: var(--primary);
  font-weight: 600;
}
.pricing-table tr:last-child td {
  border-bottom: 0;
}

/* ===================== ARTICLE/TIPS LIST =================== */
.tips-list, .service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 24px 0;
}
.tips-list li, .service-list li {
  background: #fff;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 26px 18px 26px;
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.54;
  color: var(--text-color-secondary);
  transition: box-shadow .23s, transform .22s;
}
.tips-list li:hover, .service-list li:hover {
  box-shadow: 0 8px 28px rgba(38,95,75,0.15);
  transform: translateY(-2px) scale(1.012);
}
.tips-list h2, .service-list h2 {
  font-size: 1.18rem;
  font-family: var(--heading-font);
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 600;
}
.tips-list p,
.service-list p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.category-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.category-filters button {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  margin-bottom: 7px;
  box-shadow: 0 1px 7px rgba(235,184,68,.08);
  transition: border .15s, color .18s, background .2s;
}
.category-filters button:hover, .category-filters button:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
  border-color: var(--accent-dark);
}

/* ===================== USP ICONS / LEGAL-SECTIONS ==================== */
.usp-icons {
  display: flex;
  flex-direction: row;
  gap: 23px;
  margin-top: 20px;
  align-items: center;
}
.usp-icons img {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(38,95,75,.08);
}
.legal-section {
  background: #fff;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  color: var(--text-color-secondary);
  margin: 18px 0;
  font-size: 1.02rem;
  line-height: 1.48;
}
.legal-section h2 {
  font-size: 1.13rem;
  margin-top: 19px;
  margin-bottom: 7px;
}
.legal-section ul {
  margin-bottom: 13px;
  padding-left: 16px;
}

/* ================== CTA & MISCELLANEOUS STYLES ==================== */
.text-section {
  margin: 18px 0 0 0;
}
.text-section ul {
  margin-left: 25px;
  margin-top: 9px;
  margin-bottom: 9px;
  color: var(--text-color-secondary);
}

/* ================ FOOTER ================ */
footer {
  background: #ecebe7;
  margin-top: 40px;
  padding: 10px 0 0 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 12px rgba(38,95,75,.07);
}
footer .container {
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 20px 22px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--text-color-secondary);
  position: relative;
  transition: color .19s;
}
.footer-nav a:hover {
  color: var(--accent-dark);
}
.contact-info {
  font-size: 1.02rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0.8);
}
.contact-info a {
  text-decoration: underline;
  color: var(--accent);
  font-weight: 500;
}
footer .container:last-child {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-top: 0;
  padding-bottom: 20px;
}
footer p {
  font-size: 0.95rem;
  color: var(--text-color-secondary);
}

/* =================== COOKIE CONSENT BANNER ==================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right:0;
  background: #fffbe7;
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(38,95,75,.13);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  padding: 22px 18px 22px 18px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 4000;
  font-size: 1.06rem;
  animation: slide-up-banner .55s cubic-bezier(.6,.07,.1,1);
}
@keyframes slide-up-banner {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-consent-banner p {
  flex: 1;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 8px 24px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(247,182,51,0.11);
  transition: background .19s, color .18s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--accent-dark);
}
.cookie-btn.reject {
  background: #f3e9d4;
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #edd1a7;
  color: var(--primary-dark);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1.3px solid var(--accent);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--accent);
  color: #fff;
}

/* ====== COOKIE PREFERENCES MODAL ======= */
.cookie-modal {
  position: fixed;
  z-index: 4002;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,95,75,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal .27s cubic-bezier(.4,.07,.10,1);
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 60px rgba(38,95,75,.16);
  padding: 34px 24px 22px 24px;
  min-width: 300px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  font-family: var(--heading-font);
  color: var(--primary);
}
.cookie-modal-content .category-toggle {
  display: flex;
  align-items: center;
  margin: 9px 0;
  font-size: 1rem;
}
.cookie-modal-content label {
  cursor: pointer;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin-right: 13px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  flex-direction: row;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 17px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background .14s;
}
.cookie-modal-close:hover {
  background: #f0ede7;
}

/* ====================== RESPONSIVE ======================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .footer-nav {
    flex-direction: row;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 30px 10px 16px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .content-wrapper {
    padding: 0;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 11px;
    padding: 11px 7px;
  }
  .section, section {
    margin-bottom: 28px;
    padding: 22px 5vw;
    border-radius: var(--border-radius-sm);
  }
  .features-grid, .testimonials-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .feature-item {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .testimonial-card {
    max-width: 97vw;
    padding: 14px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 540px) {
  h1 {
     font-size: 2rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .pricing-table th, .pricing-table td {
    padding: 10px 4px;
    font-size: 1rem;
  }
  .cta-button {
    width: 97vw;
    margin: 12px 0 0 0;
    text-align: center;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 6vw;
    font-size: 0.95rem;
  }
}

/* ====================== ANIMATIONS & EFFECTS ==================== */
button, .cta-button, .cookie-btn {
  transition: background .2s, color .18s, box-shadow .18s, transform .13s;
}
table, th, td {
  transition: background .15s, color .14s;
}

/* Accessibility: focus */
a:focus, button:focus, .cta-button:focus, .category-filters button:focus {
  outline: var(--focus-outline) !important;
  outline-offset: 2px;
  background: #fffbe7;
}

/* Prevent overlapping, always have gap/margin */
.features-grid > *,
.card-container > *,
.testimonials-list > *,
.content-grid > *,
.card > *,
.section > *,
.content-wrapper > * {
  margin-bottom: 20px;
}
.features-grid > *:last-child,
.card-container > *:last-child,
.testimonials-list > *:last-child,
.content-grid > *:last-child,
.card > *:last-child,
.section > *:last-child,
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* End of CSS */
