/* -------------------------------
   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, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7FAFC;
  color: #1b2d32;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: disc inside;
}
strong { font-weight: 700; }

/* --------------------
   SOFT PASTEL BRAND COLORS
---------------------- */
:root {
  --clr-primary: #186177;
  --clr-primary-light: #4ca5c6;
  --clr-secondary: #F7FAFC;
  --clr-accent: #4A9B71;
  --clr-pastel-lavender: #e6edfa;
  --clr-pastel-sky: #dff9fb;
  --clr-pastel-green: #e3fae5;
  --clr-pastel-sand: #fff8ea;
  --clr-pastel-rose: #ffe3eb;
  --clr-soft-grey: #e4e7ed;
  --clr-darker: #123645;
  --clr-shadow: rgba(34, 62, 90, 0.07);
  --shadow-card: 0 4px 28px var(--clr-shadow);
  --radius: 18px;
  --radius-sm: 10px;
  --gradient-hero: linear-gradient(120deg, #e6edfa 0%, #e3fae5 100%);
  --gradient-section: linear-gradient(109deg, #e6edfa 0%, #fff8ea 100%);
}

/* -------------------------
   FONT FACE  (ensure to load in project)
--------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body, html {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--clr-secondary);
  color: var(--clr-darker);
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--clr-primary);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  @media (min-width: 768px) {
    font-size: 2.75rem;
  }
}
h2 {
  font-size: 1.6rem;
  margin-top: 30px;
}
h3 {
  font-size: 1.2rem;
}
p, li, details p {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #223e5a;
}

/* Visual Hierarchy for Section Spacing */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gradient-section);
  border-radius: var(--radius);
}


/* ------------------
   CONTAINER AND GRID SYSTEM (Flexbox ONLY!)
------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.features-grid > div {
  flex: 1 1 240px;
  background: var(--clr-pastel-sky);
  border-radius: var(--radius-sm);
  padding: 28px 22px 22px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, background 0.22s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
}
.features-grid > div:hover {
  background: var(--clr-pastel-lavender);
  box-shadow: 0 8px 32px rgba(34, 62, 90, 0.13);
}

/* Spacing Patterns per Constraints */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clr-pastel-sand);
  border-radius: var(--radius);
  padding: 30px 24px 24px 24px;
  box-shadow: var(--shadow-card);
  flex: 1 1 320px;
}
.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: var(--clr-pastel-rose);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  color: #223e5a;
  min-width: 220px;
  max-width: 700px;
  font-size: 1.05rem;
  flex-wrap: wrap;
  flex-direction: column;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--clr-primary);
  margin-left: 0;
  margin-top: 7px;
  font-size: 1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ol, ul {
  margin: 0 0 18px 20px;
  line-height: 1.7;
}

/* Tables (for Cennik) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
}
th, td {
  padding: 15px 14px;
  text-align: left;
  font-size: 1rem;
  vertical-align: top;
}
th {
  background: var(--clr-pastel-lavender);
  color: var(--clr-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--clr-pastel-green);
}
td {
  border-bottom: 1px solid var(--clr-pastel-sand);
  color: #35576a;
}
tr:last-child td {
  border-bottom: none;
}

/* --------------
   BUTTON STYLES
---------------*/
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.85em 2em;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 17px rgba(51,103,145,0.07);
  margin-top: 12px;
  transition: background 0.22s, color 0.21s, box-shadow 0.2s;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 5px 24px rgba(39,117,78,0.15);
}
.btn-secondary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--clr-primary-light);
}

/* Main Links */
nav > a {
  margin-right: 12px;
  color: var(--clr-primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.21s, color 0.17s;
}
nav > a:hover, nav > a:focus {
  background: var(--clr-pastel-lavender);
  color: var(--clr-accent);
}

/* ---------------
   HEADER & HERO
----------------*/
header {
  background: #fff;
  box-shadow: 0 3px 36px rgba(17,86,125,0.03);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
header img {
  height: 47px;
  width: auto;
  margin: 0 12px 0 0;
}
.hero {
  padding: 58px 0 38px 0;
  background: var(--gradient-hero);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 44px rgba(24,97,119,0.08);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--clr-primary);
  margin-bottom: 16px;
}
.hero p {
  max-width: 670px;
  font-size: 1.16rem;
  color: #1b2940;
  margin-bottom: 24px;
}
.hero .btn-primary {
  margin-top: 0;
}

/* ------------------------------------------------------
   MOBILE NAVIGATION (BURGER MENU, OVERLAY, SLIDE ANIMATION)
--------------------------------------------------------*/
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--clr-primary);
  cursor: pointer;
  margin-left: 20px;
  display: none;
  vertical-align: middle;
  padding: 7px 4px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--clr-pastel-lavender);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: rgba(240,243,255, 0.97);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.63,.09,.31,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 35px;
  padding-left: 0;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 60px rgba(24,97,119,0.12);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--clr-primary);
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 1140;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--clr-pastel-lavender);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 30px 16px 24px 34px;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: var(--clr-primary);
  padding: 12px 4px;
  margin-bottom: 3px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--clr-pastel-lavender);
  color: var(--clr-accent);
}

/* Show/Hide nav on mobile */
@media (max-width: 992px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ------------------------------
   MAIN SECTIONS PADDING & SPACING
------------------------------- */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* Section backgrounds for separation (soft pastel look) */
section:not(.hero):nth-child(odd) {
  background: var(--clr-pastel-green);
  border-radius: var(--radius);
}
section:not(.hero):nth-child(even) {
  background: var(--clr-pastel-sand);
  border-radius: var(--radius);
}
section.hero {
  background: var(--gradient-hero);
}

/* ----------------------
   TESTIMONIAL SECTION
----------------------- */
.testimonials .testimonial-card {
  background: var(--clr-pastel-rose);
  margin-bottom: 24px;
  color: #223e5a;
  box-shadow: 0 3px 18px rgba(34,62,90,0.12);
}
.testimonials .testimonial-card p {
  font-style: italic;
  color: #3b4659;
  font-size: 1.08rem;
}
.testimonials .testimonial-card strong {
  font-size: 1rem;
  color: var(--clr-primary);
  font-weight: 700;
}

/* ---------------
   FOOTER
----------------*/
footer {
  background: #fff;
  box-shadow: 0 0 26px 0 rgba(23,97,119,.04);
  padding: 30px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--clr-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 14px 4px 4px;
  border-radius: 7px;
}
footer nav a:hover {
  background: var(--clr-pastel-lavender);
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.99rem;
  color: #2a4e60;
}
footer .contact-info img {
  height: 17px;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
  opacity: 0.7;
}
footer .contact-info span {
  display: flex;
  align-items: center;
}

/* -----------------------------
   FORMS/DETAILS & SUMMARY
------------------------------ */
details {
  background: var(--clr-secondary);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(24,80,119,0.07);
  margin-bottom: 18px;
  padding: 8px 12px 8px 18px;
  color: #1c3648;
  cursor: pointer;
  transition: background 0.24s;
  border-left: 4px solid var(--clr-primary-light);
}
details[open] {
  background: var(--clr-pastel-green);
}
details summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--clr-primary);
  cursor: pointer;
  margin-bottom: 5px;
  transition: color 0.17s;
}
details summary:hover {
  color: var(--clr-accent);
}

/* ---------------------------
   CONTACT INFO AND ICONS
----------------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info p,
.contact-info span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b4d63;
}
.contact-info a {
  color: var(--clr-accent);
  text-decoration: underline;
  margin-left: 5px;
}
.contact-info a:hover {
  color: var(--clr-primary);
}
.contact-info img {
  height: 21px;
  width: auto;
  margin-right: 7px;
  opacity: 0.75;
}

/* -----------------------
   COOKIE CONSENT BANNER
------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--clr-pastel-lavender);
  color: #183241;
  padding: 22px 16px 22px 16px;
  box-shadow: 0 -6px 24px rgba(24,97,119,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  border-top: 1px solid var(--clr-shadow);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.35s;
  border-radius: 18px 18px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  background: var(--clr-accent);
  color: #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 16px rgba(39,117,78,0.10);
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-soft-grey);
}
.cookie-btn.danger {
  background: #ffe3eb;
  color: #d01a4b;
  border: 1px solid #ffdbe4;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--clr-primary-light);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  z-index: 10001;
  box-shadow: 0 8px 34px rgba(24,97,119,0.15);
  border-radius: 14px;
  padding: 36px 28px 22px 28px;
  min-width: 90vw;
  max-width: 400px;
  opacity: 1;
  transition: opacity 0.32s, transform 0.32s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.92);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--clr-primary);
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  padding: 12px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-toggle {
  margin-left: auto;
}
/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--clr-pastel-lavender);
  transition: background 0.28s;
  border-radius: 24px;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background-color: var(--clr-primary);
  border-radius: 50%;
  transition: transform 0.28s, background 0.22s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--clr-pastel-green);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: var(--clr-accent);
}
/* Modal close */
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 19px;
  background: none;
  border: none;
  color: var(--clr-primary);
  font-size: 2.1rem;
  cursor: pointer;
  transition: background 0.18s;
  border-radius: 8px;
  padding: 0 7px;
}
.cookie-modal-close:hover {
  background: var(--clr-pastel-lavender);
}

/* --------------
    UTILITIES
----------------*/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* -------------------------
   MEDIA QUERIES (RESPONSIVE)
--------------------------- */
@media (max-width: 1024px) {
  .features-grid > div,
  .card {
    min-width: 200px;
    padding: 20px 12px 18px 14px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .features-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .section {
    padding: 32px 8px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    padding: 16px 4vw;
  }
  .hero {
    padding: 40px 0 28px 0;
  }
  .hero h1 {
    font-size: 1.67rem;
    margin-bottom: 8px;
  }
  .features-grid,
  .content-grid, .card-container {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .features-grid > div {
    width: 100%;
    min-width: 0;
    padding: 18px 10px 13px 13px;
    margin-bottom: 14px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px 13px;
    min-width: 0;
    max-width: 100%;
  }
  .section {
    padding: 20px 8px;
  }
  main > section {
    margin-bottom: 34px;
    padding: 23px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  table th, table td {
    padding: 7px 6px;
    font-size: 0.97rem;
  }
}

/* Tiny screens */
@media (max-width: 430px) {
  .container {
    padding: 0 1vw;
  }
  header img {
    height: 36px;
  }
  .hero, .section {
    border-radius: 0;
  }
  .cookie-modal {
    min-width: 97vw;
    padding: 19px 3vw 19px 3vw;
  }
}

/* -------------------------
   MICRO-INTERACTIONS, ANIMATIONS, HOVER
--------------------------- */
.card, .features-grid > div, .testimonial-card, .section, details {
  transition: box-shadow 0.24s, background 0.21s, transform 0.2s;
}
.card:hover, .features-grid > div:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 32px rgba(34,62,90,0.11);
}
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.22s, color 0.17s, box-shadow 0.17s, transform 0.15s;
}
.btn-primary:active, .btn-secondary:active,
.cookie-btn:active {
  transform: scale(0.97);
}
.mobile-menu, .cookie-modal, .cookie-banner {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Hide visually only helper */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* -------------- END -------------- */
