/* ============================
   CSS RESET & BASE
   ============================ */
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,
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 {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background: #fff;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A1A1A;
  background-color: #FFF;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223042;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8C6B43;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.5em;
}
button, .btn {
  font-family: inherit;
  cursor: pointer;
}
:focus {
  outline: 2px solid #223042;
  outline-offset: 2px;
}

/* ----------------------------------
   BRAND COLOR PALETTE & TYPOGRAPHY
   ---------------------------------- */
:root {
  --color-primary: #223042;
  --color-secondary: #8C6B43;
  --color-accent: #F5F3EF;
  --color-black: #1A1A1A;
  --color-white: #fff;
  --color-grey-900: #15191D;
  --color-grey-700: #22262B;
  --color-grey-300: #E3E3E3;
  --color-grey-100: #F5F5F5;
  --color-focus: #8C6B43;
  --shadow-card: 0 2px 24px rgba(34, 48, 66, 0.08), 0 1.5px 8px rgba(0,0,0,0.06);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #223042;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol, li, strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A1A1A;
}
strong {
  font-weight: 600;
  color: #223042;
}

/* Typography scale for responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ----------------------------------
   LAYOUT: Container, Section, Grid etc.
   ---------------------------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Mandatory flex patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  min-width: 280px;
  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;
  background: #fff;
  color: #15191D;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 280px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Flexible feature grid & ATUTY */
.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 32px 28px 22px 28px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 375px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.25);
  opacity: 0.95;
  transition: filter 0.3s;
}
.feature:hover, .feature:focus {
  box-shadow: 0 4px 32px rgba(34,48,66,0.19), 0 2px 16px rgba(0,0,0,0.09);
  transform: translateY(-4px) scale(1.01);
}
.feature:hover img {
  filter: grayscale(0) brightness(0.6);
}

/* Card designs */
.card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(34,48,66,0.15), 0 2px 11px rgba(0,0,0,0.06);
  transform: translateY(-3px) scale(1.003);
}

/* Testimonial styles */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #15191D;
  flex: 1;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
}
.testimonial-name {
  font-weight: 600;
  color: #223042;
}
.testimonial-stars {
  color: #8C6B43;
  font-size: 1.05em;
  letter-spacing: 0.04em;
}

/* CTA section */
.cta {
  background: #F7F7F7;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 48px 20px;
  box-shadow: 0 2px 22px rgba(34,48,66,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
  gap: 28px;
}

/* ----------------------------------
   HEADER & NAVIGATION
   ---------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E6E6EA;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
  padding: 12px 20px 12px 20px;
}
header a img {
  height: 40px;
  min-width: 102px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 20px;
}
header nav a {
  font-weight: 500;
  letter-spacing: 0.015em;
  color: #223042;
  padding: 6px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: #8C6B43;
  border-bottom: 2px solid #8C6B43;
}

.btn.btn-primary {
  background: #223042;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  box-shadow: 0 2px 14px rgba(34,48,66,0.07);
  font-size: 1.12rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  margin-left: 18px;
  margin-bottom: 0;
  display: inline-block;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: #8C6B43;
  color: #fff;
  box-shadow: 0 7px 24px 0 rgba(34,48,66,0.18);
}
.btn.btn-secondary {
  background: #fff;
  color: #8C6B43;
  border: 2px solid #8C6B43;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 1.12rem;
  font-weight: 600;
  transition: color 0.18s, background 0.18s, border-color 0.2s;
  margin-left: 0;
  margin-bottom: 0;
}
.btn.btn-secondary:hover,.btn.btn-secondary:focus{
  background: #8C6B43;
  color: #fff;
}

/* ----------------------------------
   HERO SECTION
   ---------------------------------- */
.hero {
  background: linear-gradient(90deg, #fff 60%, #F5F3EF 100%);
  padding: 78px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container {
  min-height: 320px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 24px;
}
.hero h1 {
  color: #15191D;
}
.hero p {
  font-size: 1.25rem;
  color: #22262B;
  margin-bottom: 12px;
  line-height: 1.55;
}

/* ----------------------------------
   ABOUT SHORT SECTION (INDEX)
   ---------------------------------- */
.about-short {
  background: #F5F3EF;
  border-radius: 14px;
  margin-bottom: 60px;
}
.about-short .content-wrapper {
  gap: 16px;
}
.about-short p {
  font-size: 1.08rem;
  color: #223042;
}
.about-short .btn-secondary {
  margin-top: 18px;
}

/* ----------------------------------
   FOOTER
   ---------------------------------- */
footer {
  background: #223042;
  color: #fff;
  padding-top: 32px;
  padding-bottom: 24px;
  margin-top: 56px;
  border-radius: 18px 18px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-main a img {
  height: 34px;
  margin-bottom: 6px;
}
.footer-description {
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  opacity: 0.86;
  max-width: 310px;
  margin-bottom: 12px;
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  gap: 6px;
  display: flex;
  flex-direction: column;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
  filter: brightness(90%) grayscale(1);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 6px 0;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.88;
  transition: color 0.16s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8C6B43;
  opacity: 1;
}
.footer-legal {
  font-size: 0.96rem;
  color: #B3B8C2;
  opacity: 0.75;
}

/* ----------------------------------
   CONTACT BLOCK (kontakt.html)
   ---------------------------------- */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
}
.contact-item {
  background: #F5F3EF;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(34,48,66,0.05);
  padding: 20px 24px;
  flex: 1 1 220px;
  min-width: 195px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1A1A1A;
  font-size: 1.01rem;
}
.contact-item strong {
  font-weight: 700;
  color: #223042;
}
.contact-item img {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  filter: grayscale(1) brightness(0.3);
}

/* Tips & FAQ (poradnik.html) */
.tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.tips-list ul {
  margin-bottom: 0;
}

/* ----------------------------------
   MOBILE NAVIGATION
   ---------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1201;
  width: 44px;
  height: 44px;
  background: #223042;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 44px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #8C6B43;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1A1A1A;
  color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.4,1,.6,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 2px 22px rgba(34,48,66,0.18);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 2011;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #8C6B43;
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 18px;
  padding-left: 20vw;
  padding-right: 10vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.19s, border-color 0.18s, background 0.18s;
  display: block;
  min-width: 140px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #8C6B43;
  border-bottom: 2.5px solid #8C6B43;
  background: rgba(255,255,255, 0.06);
}

@media (max-width: 1000px) {
  header .container nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1000px) {
  .btn.btn-primary {
    margin-left: 0;
  }
}

/* Hide header button on mobile if inside menu */
@media (max-width: 700px) {
  header .btn.btn-primary {
    display: none !important;
  }
}

/* ----------------------------------
   COOKIE CONSENT BANNER
   ---------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: #1A1A1A;
  color: #fff;
  font-size: 1.03rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-shadow: 0 -2px 26px rgba(34, 48, 66, 0.12);
  padding: 0;
  height: auto;
  min-height: 68px;
  animation: fadeInUpCookie 0.55s;
}
@keyframes fadeInUpCookie {
  from { transform: translateY(64px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .cookie-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  width: 100%;
  max-width: 1200px;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
#cookie-banner .cookie-btn {
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 25px;
  font-weight: 600;
  background: #223042;
  color: #fff;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
}
#cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #223042;
  border: 1.5px solid #8C6B43;
}
#cookie-banner .cookie-btn.accept {
  background: #8C6B43;
}
#cookie-banner .cookie-btn.reject {
  background: #223042;
  color: #fff;
}
#cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: #8C6B43;
  color: #fff;
}

/* Cookie Preferences Modal */
#cookie-modal {
  position: fixed;
  left: 0;
  top: 0; right: 0; bottom: 0;
  z-index: 10005;
  background: rgba(34,48,66,0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .modal-content {
  background: #fff;
  color: #15191D;
  padding: 32px 28px 24px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(34,48,66,0.13);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalShowCookie 0.18s cubic-bezier(.4,1,.7,1);
  position: relative;
}
@keyframes modalShowCookie {
  from { transform: translateY(-40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-modal h3 {
  color: #223042;
  font-size: 1.31rem;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
#cookie-modal .cookie-category {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#cookie-modal label {
  font-size: 1.06rem;
  color: #223042;
  cursor: pointer;
}
#cookie-modal input[type='checkbox'] {
  display: inline-block;
  width: 19px;
  height: 19px;
  accent-color: #8C6B43;
  vertical-align: middle;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #223042;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
#cookie-modal .cookie-btn {
  min-width: 110px;
}

/* ----------------------------------
   RESPONSIVE: FLEX DIRECTIONS, GAPS
   ---------------------------------- */
@media (max-width: 1100px) {
  .feature-grid, .card-container, .testimonial-list {
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 26px;
  }
  .footer-main {
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 4px;
  }
  .cta {
    padding: 24px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 38px;
  }
  .content-wrapper, .about-short .content-wrapper, .cta .content-wrapper {
    gap: 19px !important;
  }
  .feature, .card, .contact-item, .testimonial-card {
    padding-left: 12px;
    padding-right: 12px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .feature-grid, .card-container, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  .footer-main { flex-direction: column; gap: 14px; }
  .footer-contact { gap: 3px; }
  .footer-description { max-width: 100%; }
}

/* Prevent overlap, ensure spacing, no abs positioning for content */
/* Additional GAPS for cards/sections - critical for no-overlapping */
section, .card, .testimonial-card, .feature, .cta, .contact-item {
  margin-bottom: 24px;
}

/* Remove overlap and add visual white-space at small screens */
@media (max-width: 480px) {
  .hero { padding-top: 36px; padding-bottom: 22px; }
  .section { padding: 12px 0; margin-bottom: 22px; }
  .cta { padding: 12px 3px; border-radius: 11px; }
  .feature, .card, .testimonial-card, .contact-item { min-width: unset; }
  .mobile-nav { padding-left: 12vw; padding-right: 5vw; }
}

/* ----------------------------------
   MICRO-INTERACTIONS & EFFECTS
   ---------------------------------- */
.btn,.cookie-btn, .feature, .card, .mobile-menu, #cookie-banner, #cookie-modal .modal-content {
  transition-property: box-shadow, background, color, border, transform, opacity;
  transition-duration: 0.18s, 0.18s, 0.12s, 0.2s, 0.18s, 0.16s;
}

/* ----------------------------------
   MISCELLANEOUS
   ---------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #223042;
  border-radius: 6px;
}

/* Hide cookie banner on accept */
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s;
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
/* Hide modal scroll */
body.modal-open {
  overflow: hidden;
}

/* ----------------------------------
   PRINT OPTIMIZATION (Monochrome)
   ---------------------------------- */
@media print {
  * { color: #000 !important; background: #fff !important; }
  a, .btn, .cookie-btn {
    color: #000 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  img, .header, .footer, #cookie-banner, #cookie-modal {
    display: none !important;
  }
}

/* =======================
   END - CSS
   ======================= */