/* ---- CSS RESET ---- */
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 {
  margin: 0;
  padding: 0;
  border: 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.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--color-accent, #F2F6F9);
  color: var(--color-primary, #1C3652);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }

/* ---- CSS VARIABLES (fallbacks) ---- */
:root {
  --color-primary: #1C3652;
  --color-secondary: #3BC888;
  --color-accent: #F2F6F9;
  --color-danger: #FD4766;
  --color-yellow: #FFE861;
  --color-orange: #FFB84E;
  --color-pink: #FF84C2;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---- GENERAL TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; }
p, li, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #27384A;
  margin-bottom: 12px;
}
@media (min-width: 500px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
}
strong {
  color: var(--color-secondary);
  font-weight: 700;
}
.text-section h2, h2 + ul {
  margin-top: 8px;
}

/* ---- LAYOUT HELPERS ---- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
@media (min-width: 900px) {
  .container {
    padding: 0 32px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 18px 32px 18px;
  box-shadow: 0 8px 40px 0 rgba(38,80,140,0.08), 0 1.5px 5px 0 rgba(59,200,136,0.06);
  margin-bottom: 24px;
  align-items: flex-start;
}
@media (min-width: 700px) {
  .content-wrapper {
    padding: 38px 36px 36px 36px;
    margin-bottom: 32px;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- FLEX PATTERNS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(59,200,136,0.12), 0 0.5px 2px rgba(38,80,140,0.07);
  padding: 28px 18px 24px 18px;
  width: 100%;
  transition: transform .18s cubic-bezier(.4,.52,0,1.15), box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-2deg);
  box-shadow: 0 10px 44px 0 rgba(59,200,136,0.22);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 3px 20px #E7FDF4;
  border-left: 6px solid var(--color-secondary);
  border-radius: 20px;
  gap: 20px;
  padding: 24px 18px 20px 24px;
  margin-bottom: 20px;
  width: 100%;
  z-index: 1;
  transition: box-shadow .18s;
  /* For playful movement on hover, see below */
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 #CFFBE5;
  transform: translateY(-4px) scale(1.022) rotate(0.6deg);
}
.testimonial-card p {
  color: #27273B;
  font-size: 1.11rem;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- PLAYFUL DYNAMIC STYLE ---- */
body {
  background: var(--color-accent);
  accent-color: var(--color-secondary, #3BC888);
}

/* Decorative playful shape, use on backgrounds if desired */
.bg-playful-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* ---- HEADER + NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(44,200,166,0.06), 0 1px 3px 0 rgba(28,54,82,0.04);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 132;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand-logo img {
  height: 46px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  font-weight: 600;
  font-size: 1.09rem;
}
.main-nav a {
  color: var(--color-primary);
  border-radius: 6px;
  padding: 6px 13px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-yellow);
  color: var(--color-secondary);
}

.btn-primary {
  appearance: none;
  padding: 11px 32px;
  border-radius: 32px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .13s;
  box-shadow: 0 1.5px 7px #E7FAF1;
  margin-left: 18px;
  display: inline-block;
  vertical-align: middle;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #FFD43B;
  transform: scale(1.06) rotate(-1.6deg);
}
.btn-link {
  color: var(--color-primary);
  background: none !important;
  border: none;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 0 3px;
  margin-left: 0;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: underline dotted var(--color-secondary, #3BC888) 2px;
  border-radius: 8px;
  transition: color .16s, background .14s;
}
.btn-link:hover, .btn-link:focus {
  background: var(--color-yellow);
  color: var(--color-secondary);
}

/* --- Hamburger/Mobile Menu --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  padding: 8px 14px;
  border: none;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 1.5px 7px #F8F8D2;
  cursor: pointer;
  margin-left: 10px;
  z-index: 233;
  transition: background .17s, color .13s, transform .13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-pink);
  color: var(--color-primary);
  transform: scale(1.12) rotate(6deg);
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hide main nav on small screens */
@media (max-width: 899px) {
  .main-nav, .btn-primary {
    display: none;
  }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(249,251,254,0.92);
  z-index: 9999;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-120vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .33s cubic-bezier(.82,.55,0,1.19), opacity .19s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 26px 4px 0;
  background: var(--color-danger,#FD4766);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 1.5px 12px #FFD4D4;
  transition: background .17s, transform .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-yellow);
  transform: scale(1.09) rotate(-8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 5vh 0 0 0;
  align-items: center;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.23rem;
  color: var(--color-primary);
  background: var(--color-yellow);
  border-radius: 14px;
  padding: 14px 36px;
  margin-bottom: 4px;
  font-weight: 900;
  box-shadow: 0 2px 14px #fffdd6;
  transition: background .15s, color .13s, transform .13s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff !important;
  transform: scale(1.08) rotate(-2deg);
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* --- Sections --- */
section {
  position: relative;
}

/* --- Pricing highlight inside lists --- */
.price {
  color: var(--color-secondary);
  font-weight: 900;
  margin-left: 12px;
  font-size: 1.1em;
  background: var(--color-yellow);
  border-radius: 8px;
  padding: 3px 10px;
}

/* --- List & content styles --- */
ul, ol {
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 9px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
ul li strong, ol li strong {
  font-family: var(--font-display);
  font-size: 1.06em;
}

/* --- Footer --- */
footer {
  background: #fff;
  box-shadow: 0 -3px 24px #C4F5E6;
  border-radius: 20px 20px 0 0;
  margin-top: 40px;
  padding: 40px 0 14px 0;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-brand, .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 5px;
}
.footer-brand p {
  color: #44537D;
  font-size: 1rem;
}
.footer-contact ul li, .footer-contact ul li a {
  color: #27384A;
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 10px 0;
}
.footer-nav a {
  color: var(--color-primary);
  background: var(--color-yellow);
  border-radius: 8px;
  font-weight: 700;
  padding: 7px 16px;
  font-size: 1rem;
  transition: background .13s, color .12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 38px;
  }
}

/* ---- Microinteractions & Animations ---- */
[data-animate], .btn-primary, .card, .testimonial-card {
  transition: box-shadow .15s, background .16s, transform .17s;
}
section[data-animate] {
  animation: bounce-in-up 0.75s cubic-bezier(.4,2.4,.4,0.98) both;
}
@keyframes bounce-in-up {
  0% { opacity: .1; transform: translateY(40px) scale(0.95); }
  60% { transform: translateY(-6px) scale(1.03); }
  90% { transform: translateY(2px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.card[data-animate]:hover {
  animation: swoosh-playful 0.22s cubic-bezier(.72,-0.02,.33,1.14) alternate;
  box-shadow: 0 7px 36px rgba(38,80,140,0.13);
}
@keyframes swoosh-playful {
  from { transform: translateY(0) rotate(-0.5deg); }
  to { transform: translateY(-10px) rotate(3.5deg); }
}

.btn-primary:active {
  background: var(--color-pink);
  color: #fff;
  transform: scale(0.97);
}

/* ---- Responsive Design: Mobile-First ---- */
@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper {
    padding: 20px 8px 18px 8px;
    border-radius: 13px;
  }
  .testimonial-card {
    padding: 16px 8px 13px 12px;
    border-radius: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  .btn-primary {
    padding: 9px 16px;
    font-size: 1rem;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 6px 7px;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 8px; }
  header .container { flex-direction: row; gap: 10px; }
  .content-grid { gap: 10px; }
}

/* ---- Cookie Consent Banner + Modal ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  width: 100%;
  background: #fffefb;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -3px 22px #E7FBEF;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4vw 16px 4vw;
  gap: 18px;
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.71,1.86,.32,0.38), opacity .09s;
}
.cookie-banner.hide {
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 0;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-right: 8px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-yellow);
  color: var(--color-primary, #1C3652);
  cursor: pointer;
  box-shadow: 0 1px 8px #FFFEDD;
  transition: background .13s, color .13s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-yellow);
}
.cookie-btn.reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-primary);
  color: var(--color-yellow);
}
.cookie-btn.settings {
  background: var(--color-pink);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-yellow);
  color: var(--color-secondary);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 8px 13px 8px;
    font-size: 0.97rem;
  }
  .cookie-actions { gap: 7px; }
}

/* ---- Cookie Modal ---- */
.cookie-modal {
  position: fixed;
  z-index: 100002;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(67,214,186,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity .25s, transform .26s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 38px 24px 28px 24px;
  box-shadow: 0 7px 44px #b0f7e6;
  max-width: 380px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.23rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  font-family: var(--font-body);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  margin: 0;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 14px;
}
.cookie-modal-content .cookie-btn {
  min-width: 90px;
}
.cookie-modal-close {
  background: var(--color-danger,#FD4766);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  padding: 7px 18px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: -10px;
  margin-top: -20px;
  transition: background .13s;
}
.cookie-modal-close:hover { background: var(--color-secondary); color: #fff; }

/* --- Custom playful font fallback --- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700|Open+Sans:400,700&display=swap');

/* ---- Other Visual Details ---- */
::-webkit-selection { background: var(--color-yellow); color: var(--color-primary); }
::selection        { background: var(--color-yellow); color: var(--color-primary); }

/* --- Form Elements / Newsletter Placeholders (as in nowosci) --- */
input, textarea, select {
  border-radius: 16px;
  border: 1.5px solid #E3F5F2;
  background: #F5FDFE;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: box-shadow .12s, border-color .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 1px 8px #E7FDF4;
}

/* --- Links in content (like .text-section, FAQ) --- */
.content-wrapper a:not(.btn-primary):not(.btn-link) {
  color: var(--color-secondary);
  text-decoration: underline dashed var(--color-secondary) 1px;
  transition: color .14s, background .16s;
}
.content-wrapper a:not(.btn-primary):not(.btn-link):hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 6px;
}

/* --- Final responsive fallback --- */
@media (max-width: 480px) {
  .section {
    margin-bottom: 40px;
    padding: 16px 2px;
  }
  .testimonial-card { padding: 12px 6px 8px 11px; }
  .footer-brand img { height: 28px; }
}

/* ---- Hide visually for accessibility ---- */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0) !important; border: 0 !important; white-space: nowrap !important; }
