/* ========= CSS RESET & BASE ========= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F1F3F7;
  color: #233457;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #B17012;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #233457;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.3em;
  margin-top: .4em;
  margin-bottom: .8em;
}
li + li {
  margin-top: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #233457;
  letter-spacing: .02em;
  margin-bottom: .6em;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.15rem; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
input, button, select, textarea {
  font: inherit;
  border-radius: 8px;
  border: none;
}
input[type="text"], input[type="email"], textarea {
  border: 1px solid #e0e2ea;
  padding: 10px 14px;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s, border-color 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  box-shadow: 0 0 0 2px #B17012;
  outline: none;
  border-color: #B17012;
}
label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
strong {
  font-weight: bold;
}
small {
  font-size: 0.9rem;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========= LAYOUT & FLEXBOX UTILS ========= */
.content-wrapper {
  background: #fff;
  box-shadow: 0 4px 22px 0 rgba(194, 136, 44, 0.08);
  border-radius: 28px;
  padding: 36px 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section {
  background: #fff7ec;
  box-shadow: 0 2px 10px 0 rgba(194, 136, 44, 0.05);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 5px 18px rgba(35,52,87,0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(177,112,18,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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 4px 12px 0 rgba(177,112,18,0.09);
  margin-bottom: 20px;
  margin-top: 22px;
  transition: box-shadow .15s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(177,112,18,0.16);
}
.testimonial-card p {
  color: #233457;
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.1rem;
}
.testimonial-card span {
  color: #B17012;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  white-space: nowrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ========= HEADER & NAVIGATION ========= */
header {
  background: #fff;
  border-bottom: 2px solid #F1F3F7;
  padding: 0 0 0 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
header a img {
  max-height: 38px;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  color: #233457;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .14s, color .2s;
}
.desktop-nav a.active,
.desktop-nav a:hover, .desktop-nav a:focus {
  color: #B17012;
  background: #f6e5c4;
}
.cta-btn {
  background: #B17012;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  box-shadow: 0 3px 12px 0 rgba(177,112,18,0.13);
  padding: 14px 30px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.18s, box-shadow .16s, transform .12s;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #233457;
  color: #fffbe9;
  box-shadow: 0 7px 24px 0 rgba(35,52,87,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* ========= MOBILE NAV ========= */
.mobile-menu-toggle {
  background: #F1F3F7;
  color: #B17012;
  border: none;
  border-radius: 12px;
  font-size: 2.1rem;
  padding: 8px 17px;
  display: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(177,112,18,0.13);
  transition: background .1s, color .18s;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 102;
}
.mobile-menu-toggle:active {
  background: #fff0da;
  color: #233457;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.86,.12,.42,.82);
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #F1F3F7;
  color: #B17012;
  font-size: 2.1rem;
  border: none;
  border-radius: 12px;
  align-self: flex-end;
  margin: 0 26px 18px 0;
  padding: 6px 15px;
  cursor: pointer;
  transition: background .15s, color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff0da;
  color: #233457;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.mobile-nav a {
  color: #233457;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 40px;
  border-radius: 14px;
  font-weight: 600;
  width: 85vw;
  text-align: center;
  transition: background .14s,color .14s;
  margin-bottom: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff7ec;
  color: #B17012;
}

@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    gap: 14px;
  }
  .cta-btn {
    padding: 12px 18px;
  }
}
@media (max-width: 767px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 8px;
    padding: 13px 10px;
  }
}

/* ========= HERO & FEATURE SECTIONS ========= */
.feature-grid, .service-list, .tips-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 12px 0;
}
.feature-grid li, .service-list li, .tips-preview-list article {
  flex: 1 1 240px;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(177,112,18,0.06);
  padding: 20px 18px 20px 18px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s;
}
.feature-grid li:hover, .service-list li:hover, .tips-preview-list article:hover {
  box-shadow: 0 8px 28px 0 rgba(177,112,18,0.13);
}
.feature-grid img, .service-list img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  display: block;
}
.service-list {
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

/* ====== SPECIAL OFFER BANNER (e-book) ====== */
.special-offer-banner {
  background: #B17012;
  color: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(177,112,18,0.13);
  padding: 18px 14px;
  margin-top: 28px;
  font-size: 1.15rem;
  text-align: center;
}

/* ========= TABLES ========= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(177,112,18,0.07);
  overflow: hidden;
  margin: 18px 0 18px 0;
  font-size: 1rem;
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #fffbe9;
  color: #B17012;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
td {
  border-bottom: 1px solid #f1eee7;
}
tr:last-child td {
  border-bottom: none;
}

/* ========= FOOTER ========= */
footer {
  background: #233457;
  color: #fff;
  padding: 0 0 0 0;
  border-top: 2px solid #C2882C;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding: 34px 20px 20px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background .13s, color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #B17012;
  color: #fffbe9;
}
footer p {
  margin-bottom: 7px;
  font-size: 1.02rem;
}
footer img {
  display: inline-block;
  vertical-align: middle;
  max-height: 24px;
  margin-right: 8px;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  background: #fffbe9;
  border-radius: 50%;
  padding: 6px;
  transition: background .14s;
}
.social-links a:hover, .social-links a:focus {
  background: #B17012;
}
.social-links img {
  width: 26px; height: 26px; border-radius: 50%;
}
@media (max-width: 820px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: left;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 9px;
  }
}


/* ========= COOKIE CONSENT BANNER ========= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 16000;
  background: #fffbe9;
  color: #233457;
  box-shadow: 0 -2px 24px 0 rgba(194,136,44,0.12);
  padding: 23px 18px 17px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: transform .29s cubic-bezier(.73,0,.45,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 180px;
  font-size: 1rem;
  margin-right: 12px;
}
.cookie-banner .cookie-btn {
  background: #B17012;
  color: #fff;
  border-radius: 23px;
  padding: 12px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  margin-left: 11px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(177,112,18,0.11);
  transition: background .12s, color .14s, transform .11s;
}
.cookie-banner .cookie-btn.secondary {
  background: #F1F3F7;
  color: #B17012;
  border: 1.5px solid #B17012;
}
.cookie-banner .cookie-btn:hover {
  background: #233457;
  color: #fffbe9;
  transform: translateY(-2px) scale(1.02);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,52,87,0.18);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s cubic-bezier(.67,.01,.43,1);
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fffbe9;
  border-radius: 24px;
  box-shadow: 0 8px 36px 0 rgba(177,112,18,0.18);
  padding: 34px 22px 28px 22px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal__content h2 {
  color: #233457;
  margin-bottom: 10px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-modal__category input[type=checkbox] {
  accent-color: #B17012;
  width: 22px;
  height: 22px;
}
.cookie-modal__category label {
  font-weight: 600;
  font-size: 1.07rem;
}
.cookie-modal__footer {
  display: flex;
  gap: 12px;
  margin-top: 9px;
  justify-content: flex-end;
}
.cookie-modal__footer .cookie-btn {
  margin: 0;
}
.cookie-modal__close {
  position: absolute;
  right: 24px;
  top: 18px;
  background: #fff0da;
  color: #B17012;
  border: none;
  border-radius: 12px;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 3px 13px;
  transition: background .13s, color .14s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #B17012;
  color: #fffbe9;
}


/* ========= RESPONSIVE DESIGN ========= */
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    padding: 18px 8px;
    margin-bottom: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .service-list, .tips-preview-list {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 6px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 14px 8px;
  }
}


/* ========= ADDITIONAL COMPONENTS & STATES ========= */
::-webkit-scrollbar {
  width: 9px;
  background: #F1F3F7;
}
::-webkit-scrollbar-thumb {
  background: #C2882C;
  border-radius: 7px;
}

/* Listy kontaktu z ikonami */
ul li img, ul li svg {
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff6e2;
  box-shadow: 0px 2.4px 6.6px 0 rgba(194,136,44,0.06);
}


/* Buttons generic */
button {
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 21px;
  background: #B17012;
  color: #fff;
  transition: background .17s, box-shadow .13s;
}
button:hover, button:focus {
  background: #233457;
  color: #fffbe9;
}

/* Form styling */
form {
  margin: 18px 0 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
@media (max-width:600px){
  form {
    flex-direction: column;
    gap: 6px;
  }
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px #fffbe9 inset;
  -webkit-text-fill-color: #233457;
}

/* Visually hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== FOCUS STATES FOR ACCESSIBILITY ========== */
*:focus-visible {
  outline: 2.5px solid #B17012;
  outline-offset: 2px;
}

/* ========== PRINT OPTIMIZATION ========== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer, nav, .cta-btn { display: none !important; }
  body { background: #fff!important; color: #233457!important; }
}
