/* ----------- 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,
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #143048;
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background-color: #FDF6F2;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
main {
  flex: 1 1 auto;
}

/* ----------- TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143048;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  margin-bottom: 14px;
  font-size: 1rem;
}
ul, ol {
  padding-left: 22px;
}
strong, b {
  font-weight: 700;
}

/* ----------- BUTTONS & LINKS ----------- */
.cta-btn, button, .cookie-btn, .cookie-modal-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: #FFA658;
  color: #143048;
  padding: 14px 32px;
  border: none;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin: 12px 0 0 0;
  text-decoration: none;
  box-shadow: 0 3px 16px rgba(20, 48, 72, 0.07);
  transition: background 0.16s, color 0.16s, transform 0.12s;
}
.cta-btn:hover, button:hover, .cookie-btn:hover, .cookie-modal-btn:hover {
  background: #FFB978;
  color: #143048;
  transform: translateY(-1px) scale(1.022);
}
button:focus,
.cta-btn:focus,
.cookie-btn:focus {
  outline: 2px solid #143048;
}
a {
  color: #F47E3D;
  text-decoration: none;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #143048;
  text-decoration: underline;
}

/* ----------- HEADER & NAVIGATION ----------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #f2f2f2;
  position: sticky;
  top: 0;
  z-index: 1010;
}
.nav-container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143048;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.14s, color 0.16s;
}
.main-nav a:hover {
  background: #FDF6F2;
  color: #F47E3D;
}
header img {
  max-height: 46px;
  margin-right: 12px;
  border-radius: 10px;
}
.mobile-menu-toggle {
  display: none;
  background: #FFD185;
  color: #143048;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFB978;
}

/* ----------- MOBILE MENU ----------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 84vw;
  max-width: 375px;
  background: #fffbe9;
  box-shadow: -6px 0 32px rgba(20,48,72,0.13);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.6,0.1,0.1,1);
  display: flex;
  flex-direction: column;
  padding: 32px 18px 18px 18px;
  gap: 20px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FFB978;
  border: none;
  color: #143048;
  border-radius: 50%;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(20,48,72,.07);
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFA658;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143048;
  font-size: 1.14rem;
  font-weight: 600;
  padding: 13px 10px;
  border-radius: 18px;
  background: transparent;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFD185;
  color: #143048;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ----------- HERO SECTION ----------- */
.hero {
  background: #FFD185;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 6px 24px rgba(244, 126, 61, 0.07);
  margin-bottom: 60px;
  padding: 44px 0 54px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #143048;
  margin-bottom: 14px;
  text-align: center;
}
.hero p {
  color: #143048;
  font-size: 1.22rem;
  margin-bottom: 16px;
  text-align: center;
}

/* ----------- COMMON SPACING ----------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
@media (max-width: 600px) {
  section, .section {
    padding: 28px 4px;
    margin-bottom: 42px;
  }
}

/* ----------- FEATURES & CARDS ----------- */
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-block {
  background: #fffbe9;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(244,126,61,0.05), 0 1.5px 4px rgba(20,48,72,0.06);
  padding: 32px 22px 22px 22px;
  min-width: 245px;
  flex: 1 1 270px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
  border: 1px solid #ffe5bb;
}
.feature-block:hover {
  box-shadow: 0 10px 36px rgba(244,126,61,0.13);
  transform: translateY(-3px) scale(1.03);
}
.feature-block img {
  margin-bottom: 10px;
  border-radius: 50%;
  background: #FFB978;
  padding: 10px;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(244,126,61,0.06);
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #ffd497;
  padding: 26px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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: 900px) {
  .feature-grid, .feature-list, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-block {
    min-width: 200px;
    padding: 22px 9px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .feature-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-block {
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ----------- TESTIMONIALS ----------- */
.testimonials {
  background: #FFF6EC;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(20,48,72,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(244,126,61,0.08);
  min-width: 280px;
  max-width: 350px;
  border: 1.5px solid #FFD185;
  margin-bottom: 24px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.testimonial-card p {
  color: #143048;
  font-size: 1.09rem;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  color: #FF7300;
  opacity: 0.9;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px rgba(244,126,61,0.15), 0 1px 2px rgba(20,48,72,0.05);
  transform: translateY(-2px) scale(1.025);
}
@media (max-width: 768px) {
  .testimonial-slider {
    gap: 18px;
    flex-direction: column;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}

/* CTA SECTION ----------- */
.cta-section {
  background: #FFEBCC;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 2px 10px rgba(255,186,120,0.10);
  padding: 36px 10px;
}
.cta-section h2 {
  color: #143048;
  font-size: 2.1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.cta-section .cta-btn {
  margin-top: 0;
}

/* ----------- TABLES & PRICING ----------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffbe9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 1px 6px rgba(244,126,61,0.04);
}
.pricing-table th, .pricing-table td {
  padding: 16px 12px;
  text-align: left;
}
.pricing-table th {
  background: #FFD185;
  color: #143048;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.pricing-table tr:not(:first-child) {
  border-top: 1.5px solid #ffe5bb;
}
.pricing-table td {
  font-size: 1rem;
  color: #143048;
}

/* ----------- FAQ SECTION ----------- */
.faqs {
  background: #FFFBF5;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(244,126,61,0.05);
  padding: 30px 20px;
  margin-bottom: 60px;
}
.faq-list {
  list-style-type: disc;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(244,126,61,0.05);
  padding: 15px 16px;
  color: #143048;
}

/* ----------- CONTENT UTILITIES ----------- */
.text-section {
  margin-bottom: 18px;
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}
.text-section img[alt^="Adres"],
.text-section img[alt^="Telefon"],
.text-section img[alt^="E-mail"],
.text-section img[alt^="Godziny"],
.text-section img[alt^="Mapa"] {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 8px -6px 0;
  border-radius: 50%;
  background: #FFD185;
}

/* ----------- CASE STUDY & GUIDE LISTS ----------- */
.case-study-box {
  background: #FFFBF5;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(244,126,61,0.04);
  margin-bottom: 24px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ffe5bb;
}
.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .guide-list {
    flex-direction: column;
    gap: 10px;
  }
  .case-study-box {
    padding: 18px 6px;
  }
}

/* ----------- FOOTER ----------- */
footer {
  background: #ffe2b8;
  color: #143048;
  border-top: 1px solid #fffbe9;
  padding: 0 0 8px 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 50px 0 20px 0;
}
.footer-logo img {
  width: 66px;
  margin-bottom: 18px;
  border-radius: 15px;
}
.footer-contact, .footer-menu, .footer-social {
  flex: 1 1 170px;
  min-width: 180px;
  margin-right: 10px;
}
.footer-menu nav,
.footer-social nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-social nav {
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.footer-social img {
  width: 29px;
  transition: transform 0.17s;
}
.footer-social a:hover img, .footer-social a:focus img {
  transform: scale(1.11) rotate(-3deg);
}
footer a {
  color: #143048;
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover, footer a:focus {
  color: #F47E3D;
  text-decoration: underline;
}
.copyright {
  margin: 0 auto;
  text-align: center;
  padding: 16px 0 4px 0;
  color: #143048;
  font-size: 0.98rem;
}
@media (max-width: 850px) {
  .footer-container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-contact, .footer-menu, .footer-social {
    margin-right: 0;
    min-width: unset;
    width: 100%;
  }
}

/* ----------- COOKIE CONSENT BANNER ----------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF6EC;
  color: #143048;
  box-shadow: 0 -2px 18px rgba(244,126,61,0.09);
  z-index: 2011;
  padding: 22px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  animation: cookie-fade-in 0.4s;
}
.cookie-banner .cookie-btn {
  background: #FFA658;
  color: #143048;
  margin: 0 9px 0 0;
  min-width: 120px;
  padding: 13px 20px;
  border-radius: 24px;
  font-size: 1.04rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 1px 7px rgba(20,48,72,0.05);
  transition: background 0.17s;
  display: inline-block;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #FFB978;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 2110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 14, 1, 0.31);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #FFF6EC;
  border-radius: 18px;
  padding: 32px 24px 28px 24px;
  box-shadow: 0 2px 24px rgba(244,126,61,0.12);
  min-width: 300px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h4 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
}
.cookie-modal-btn {
  margin-top: 16px;
  background: #FFA658;
  color: #143048;
  font-size: 1.07rem;
  border-radius: 23px;
  padding: 12px 28px;
  font-weight: 700;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  border: none;
  font-size: 1.43rem;
  background: transparent;
  color: #143048;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: background 0.12s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #FFB978;
}
@keyframes cookie-fade-in {
  0% {opacity:0; transform: translateY(40px);}
  100% {opacity:1; transform: translateY(0);}
}

/* ----------- UTILITY FLEXBOX CLASSES ----------- */
.flex {
  display: flex !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.align-center {
  align-items: center !important;
}
.align-start {
  align-items: flex-start !important;
}
.justify-between {
  justify-content: space-between !important;
}
.justify-center {
  justify-content: center !important;
}
.gap-20 {
  gap: 20px !important;
}

/* ----------- LEGAL SECTION & THANK YOU ----------- */
.legal-section, .thank-you-section {
  background: #FFFBF5;
  border-radius: 17px;
  box-shadow: 0 1px 8px rgba(244,126,61,0.05);
  padding: 38px 20px;
  margin-bottom: 60px;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 600px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .hero h1 { font-size: 2rem; }
  .cta-section h2 { font-size: 1.3rem; }
  h1, h2 { font-size: 1.21rem; }
  .legal-section, .thank-you-section, .cta-section, .faqs, .testimonials, .case-study-box {
    padding: 18px 2px;
    margin-bottom: 32px;
  }
}

/* ----------- ACCENT & BRANDING COLORS ----------- */
:root {
  --brand-primary: #143048;
  --brand-secondary: #6DC1F2;
  --brand-accent: #F2F2F2;
  --brand-warm-light: #FFD185;
  --brand-warm-bg: #FFF6EC;
  --brand-orange: #FFA658;
}

/* ----------- ROLE-SPECIFIC CSS SPACING ----------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ----------- ACCESSIBILITY IMPROVEMENTS ----------- */
:focus {
  outline: 2px dashed #143048;
  outline-offset: 2px;
}

/* ----------- CUSTOM SCROLLBAR ----------- */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  background: #FFD185;
  border-radius: 8px;
}

/* ----------- Micro-interactions ----------- */
.cta-btn, .cookie-btn, .cookie-modal-btn {
  box-shadow: 0 2px 15px rgba(244,126,61,0.09);
}
.feature-block, .card, .testimonials, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.13s;
}

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