/* RESET & BASE STYLES -------------------------------------------------- */
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, sans-serif;
  background: #F9F6F3;
  color: #43503C;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
}
a { color: #7E542D; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #43503C; text-decoration: underline; }
strong { font-weight: bold; }

@media (max-width: 400px) {
  html { font-size: 15px; }
}
@media (min-width: 401px) {
  html { font-size: 16px; }
}

/* LOAD FONTS ------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #43503C;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.4rem; line-height: 1.1; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }

p,
li,
span,
input,
textarea,
select,
table,
th,
td {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #43503C;
}
p { margin-bottom: 16px; }
ul li, ol li { margin-bottom: 12px; }

/* PASTEL/VISUAL THEME --------------------------------------------- */
:root {
  --primary: #43503C;
  --secondary: #7E542D;
  --accent: #F5F1ED;
  --bg-light: #F9F6F3;
  --bg-pastel-pink: #F7E6E6;
  --bg-pastel-green: #E6F2ED;
  --bg-pastel-yellow: #FDF7E3;
  --pastel-blue: #E3F0FA;
  --pastel-lavender: #EAE8F6;
  --shadow: 0 2px 24px rgba(67,80,60, 0.08);
  --border-radius: 18px;
  --border-radius-card: 22px;
  --text-on-light: #43503C;
  --text-on-dark: #ffffff;
}

/* LAYOUT CONTAINERS ----------------------------------------------- */
.container {
  max-width: 1150px;
  padding: 0 18px;
  margin: 0 auto;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-pastel-green);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  /* Each section can override its background if needed */
}
@media (max-width: 700px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container { padding: 0 6px; }
}

/* NAVIGATION ------------------------------------------------------ */
header {
  background: linear-gradient(180deg, #F7E6E6 0%, #EAE8F6 100%);
  box-shadow: 0 2px 12px rgba(67,80,60,0.04);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  padding: 18px 0 12px 0;
}
.main-nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.22s, color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--bg-pastel-yellow);
  color: var(--secondary);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 14px;
  display: inline-block;
}
.cta-btn {
  background: linear-gradient(90deg, #EAE8F6 0%, #E6F2ED 100%);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.14rem;
  font-weight: bold;
  border: none;
  border-radius: 24px;
  padding: 11px 33px;
  box-shadow: 0 2px 8px rgba(67,80,60,0.08);
  transition: background 0.2s, color 0.24s, transform 0.2s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus{
  background: linear-gradient(90deg, #FDF7E3 0%, #F7E6E6 100%);
  color: var(--secondary);
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; }
  .main-nav { display: none; }
  .cta-btn { margin-left: 0; }
}

/* MOBILE MENU ----------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 22px;
  z-index: 150;
  background: var(--bg-pastel-green);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--secondary); }

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #F7E6E6 0%, #E3F0FA 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.82,.21,.25,1.01);
  box-shadow: -2px 0 24px 4px rgba(67,80,60,0.10);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: var(--bg-pastel-yellow);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  margin: 30px 0 18px 0;
  cursor: pointer;
  border-radius: 16px;
  align-self: flex-end;
  margin-right: 32px;
  padding: 6px 15px;
  box-shadow: var(--shadow);
  transition: background 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--bg-pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}
.mobile-nav a {
  font-size: 1.32rem;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.23s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bg-pastel-green);
  color: var(--secondary);
}


/* PAGE SECTIONS, SPACING, CONTAINERS -------------------------------- */
.text-section {
  background: var(--bg-pastel-pink);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow);
  padding: 36px 26px 30px 26px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 600px) {
  .text-section {
    padding: 16px 6px;
    margin-bottom: 21px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-radius: var(--border-radius-card);
  background: var(--bg-pastel-yellow);
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 20px;
  min-width: 250px;
  max-width: 360px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(126,84,45,0.13);
  transform: translateY(-2px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 800px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-pastel-green);
  padding: 22px 18px 17px 18px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow);
  min-width: 230px;
  max-width: 330px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.feature-item img {
  height: 42px;
  width: 42px;
  margin-bottom: 8px;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 18px 0 rgba(67,80,60,.11);
  background: #EAE8F6;
}

/* TESTIMONIALS ---------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 18px 32px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px 0 rgba(67,80,60,0.11);
  max-width: 520px;
  transition: box-shadow 0.16s, transform 0.17s;
}
.testimonial-card p {
  font-size: 1.16rem;
  font-style: italic;
  margin-bottom: 6px;
  color: #43503C;
}
.testimonial-card span {
  color: #7E542D;
  font-size: 1rem;
  font-weight: bold;
}
.testimonial-card:hover { box-shadow: 0 8px 28px 0 rgba(67,80,60,0.14); transform: translateY(-2px) scale(1.015); }
@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px 8px 12px 9px;
    max-width: 100%;
  }
}

/* TABLES (CENNIK) ------------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 28px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
th, td {
  padding: 13px 16px;
  font-size: 1rem;
  text-align: left;
}
th {
  background: #E6F2ED;
  color: #43503C;
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #EEE;
}
td {
  border-bottom: 1px solid #F2F2F2;
}
tr:last-child td {
  border-bottom: none;
}

/* BUTTONS --------------------------------------------------------- */
button, .cta-btn, input[type="submit"] {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  background: linear-gradient(90deg, #E3F0FA 0%, #FDF7E3 100%);
  color: var(--primary);
  border: none;
  padding: 10px 32px;
  border-radius: 23px;
  box-shadow: 0 1px 6px 0 rgba(67,80,60,.06);
  cursor: pointer;
  font-size: 1.1rem;
  margin: 8px 0;
  letter-spacing: 0.04em;
  transition: background 0.21s, color 0.21s, box-shadow 0.21s, transform 0.15s;
}
button:hover, button:focus, input[type="submit"]:hover, .cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #FDF7E3 0%, #F7E6E6 100%);
  color: var(--secondary);
  box-shadow: 0 4px 14px 0 rgba(126,84,45,0.10);
  transform: translateY(-1px) scale(1.035);
  outline: none;
}

/* FOOTER ---------------------------------------------------------- */
footer {
  background: #F5F1ED;
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.2s;
  padding: 7px 14px;
  border-radius: 9px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--bg-pastel-yellow);
  color: var(--secondary);
}
.footer-contact p {
  color: #7E542D;
  font-size: 0.96rem;
  margin: 0;
}
@media (max-width: 700px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 7px; }
}

/* FORMS & INPUTS -------------------------------------------------- */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border: 1px solid #D7D5D2;
  border-radius: 12px;
  background: #FFF;
  color: #43503C;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border: 1.3px solid #7E542D;
}

/* COOKIE CONSENT BANNER -------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #E6F2ED 0%, #FDF7E3 100%);
  color: #43503C;
  box-shadow: 0 -2px 20px 0 rgba(67,80,60,0.10);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  z-index: 1180;
  padding: 22px 8vw 22px 8vw;
  font-size: 1rem;
  border-radius: 22px 22px 0 0;
  animation: fadeInBanner 0.64s;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-btn {
  background: linear-gradient(90deg, #F7E6E6 0%, #EAE8F6 100%);
  color: var(--primary);
  border-radius: 18px;
  padding: 9px 19px;
  margin-left: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(67,80,60, .06);
  transition: background 0.18s, color 0.18s;
}
.cookie-consent-banner .cookie-btn:hover { background: #FFF8F3; color: #7E542D; }
@media (max-width: 700px) {
  .cookie-consent-banner { flex-direction: column; gap: 14px; padding: 13px 5px; }
}

/* COOKIE SETTINGS MODAL -------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(67, 80, 60, 0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: fadeInModal 0.35s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-dialog {
  background: #FFFFFF;
  padding: 36px 42px 30px 42px;
  border-radius: 24px;
  box-shadow: 0 10px 50px 0 rgba(67,80,60,0.10);
  min-width: 300px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.cookie-modal-dialog h2 {
  margin: 0 0 10px 0;
  color: #43503C;
  font-size: 1.4rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  font-size: 1.03rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #43503C;
}
.cookie-category .cookie-label {
  font-weight: 600;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .close-modal-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: #7E542D;
  font-size: 1.8rem;
  cursor: pointer;
  margin-top: -24px;
  margin-bottom: 8px;
}
.cookie-modal .close-modal-btn:hover { color: #43503C; }
@media (max-width: 500px) {
  .cookie-modal-dialog {
    padding: 18px 6px 15px 12px;
    border-radius: 13px;
  }
  .cookie-modal-dialog h2 { font-size: 1.07rem; }
}

/* ANIMATIONS & MICRO-INTERACTIONS --------------------------------- */
.card, .feature-item, .testimonial-card, .cta-btn, .cookie-consent-banner, .mobile-menu, .main-nav a, .footer-nav a, button, input[type="submit"] {
  transition: box-shadow 0.16s, background 0.18s, color 0.16s, transform 0.17s;
}

/* RESPONSIVE TYPOGRAPHY & LAYOUT ---------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .feature-grid { flex-direction: column; gap: 13px; }
  .footer-nav { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 440px) {
  h1 { font-size: 1.19rem; }
  h2 { font-size: 1rem; }
  p, li, span { font-size: 0.96rem; }
}

/* UTILITY: FLEXBOX SPACING / NO OVERLAP --------------------------- */
.section, .card, .feature-item, .testimonial-card, .content-grid, .card-container, .footer-nav, .mobile-nav {
  margin-bottom: 20px;
}
.content-wrapper {
  margin-bottom: 20px;
}

/* REMOVE OUTER MB ON LAST ELEMENTS */
.section:last-child, .content-wrapper:last-child, .testimonial-card:last-child, .feature-item:last-child, .card:last-child {
  margin-bottom: 0;
}

/* ADDITIONAL SOFT PASTEL ATMOSPHERE ----------------------------- */
body {
  background: linear-gradient(120deg, #F7E6E6 0%, #E6F2ED 100%); 
}
.section:nth-child(2n) {
  background: var(--bg-pastel-yellow);
}
.section:nth-child(3n) {
  background: var(--bg-pastel-pink);
}

/* MEDIA QUERIES FOR FLEX LAYOUTS ------------------------------- */
@media (max-width: 900px) {
  .container { max-width: 97vw; padding: 0 4vw; }
}

/* Z-INDEX LAYERING FOR NAV/MODAL/COOKIE ------------------------ */
header { z-index: 102; position: relative; }
.mobile-menu { z-index: 220; }
.cookie-consent-banner { z-index: 1180; }
.cookie-modal { z-index: 1200; }

/* ACCESSIBILITY ------------------------------------------------- */
a, button, input, textarea, select { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #C7B4E1;
  outline-offset: 2px;
}

/* HIDE SCROLL IF MENU/MODAL IS OPEN (APPLIED BY JS) ------------- */
body.menu-open, body.cookie-modal-open { overflow: hidden; }

/* PRINT SUPPORT (OPTIONAL) -------------------------------------- */
@media print {
  header, nav, .mobile-menu, .cookie-consent-banner, .cookie-modal, footer { display: none !important; }
  .section, .container, .text-section, .content-wrapper, .feature-item, .testimonial-card, .card { box-shadow: none !important; }
  body { background: #fff; color: #000; }
}
