/* === CSS RESET & NORMALIZE (Minimal) === */
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 {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #fff6e3;
  color: #23466e;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff6e3;
  color: #23466e;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23466e;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffb324;
  outline: none;
}
ul, li {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* === ROOT COLORS & FONTS === */
:root {
  --primary: #23466e;
  --secondary: #fff6e3;
  --accent: #ffb324;
  --white: #fff;
  --black: #1b1b1b;
  --muted: #f5e6c8;
  --shadow: 0 3px 16px 0 rgba(35, 70, 110, 0.09);
  --card-radius: 16px;
  --section-radius: 24px;
  --ease: cubic-bezier(0.33,1,0.68,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === GENERAL LAYOUT CLASSES === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--section-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(35,70,110,0.16);
  transform: translateY(-3px) scale(1.02);
}
.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: var(--muted);
  color: #23466e;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
  margin-bottom: 20px;
  transition: box-shadow 0.18s var(--ease), transform 0.16s var(--ease);
}
.testimonial-card:hover {
  box-shadow: 0 3px 24px rgba(255,179,36,0.09);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}
@media (min-width: 600px) {
  h1, .h1 { font-size: 2.7rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 8px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}
p, li, td {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--primary);
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
small {
  font-size: 0.9rem;
  color: #666;
}

/* === BUTTONS === */
.cta-btn, .cookie-consent-btn, .cookie-settings-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 30px;
  border: none;
  border-radius: 35px;
  box-shadow: 0 2px 10px rgba(255,179,36,0.10);
  margin: 10px 0 0 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
}
.cta-btn:hover, .cta-btn:focus,
.cookie-consent-btn:hover, .cookie-settings-btn:hover {
  background: #ffca56;
  color: #23466e;
  box-shadow: 0 3px 20px rgba(35,70,110,0.09);
  transform: scale(1.04);
}

/* Nav links */
.desktop-nav a, .footer-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 10px;
  border-radius: 22px;
  padding: 8px 16px;
  color: var(--primary);
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.desktop-nav a:hover, .desktop-nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* === HEADER === */
header {
  background: var(--secondary);
  box-shadow: 0 2px 28px 0 rgba(255,179,36,0.12);
  padding: 0;
  position: relative;
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 80px;
  padding: 0 18px;
}
.logo {
  display: flex;
  align-items: center;
  height: 62px;
}
/* Nav positioning */
.desktop-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}


/* === HERO SECTION === */
.hero {
  background: var(--accent);
  background-blend-mode: lighten;
  box-shadow: 0 12px 52px 0 rgba(255,179,36,0.05);
  border-radius: var(--section-radius);
  margin-bottom: 38px;
  padding: 50px 0 38px 0;
}
.hero .container, .cta .container {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* === FEATURES GRID === */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features .feature-grid li {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  flex: 1 1 215px;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.features .feature-grid li:hover {
  box-shadow: 0 6px 32px rgba(255,179,36,0.10);
  transform: translateY(-2px) scale(1.03);
}
.features .feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

/* === SERVICES & CARDS === */
.service-cards, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.service-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 24px 16px 18px 16px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.service-card:hover {
  box-shadow: 0 3px 20px var(--accent);
  transform: scale(1.025);
}
.service-card .service-price {
  font-weight: 700;
  color: var(--accent);
  margin-top: 5px;
  font-size: 1rem;
}

/* === TESTIMONIALS === */
.testimonials .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-style: italic;
  color: #1b273c;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #23466e;
  margin-top: 10px;
  font-family: var(--font-display);
}

/* === CTA SECTIONS === */
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.quick-contact-info {
  background: var(--muted);
  border-radius: 13px;
  padding: 20px 14px;
  margin: 28px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 5px rgba(35,70,110,0.06);
  max-width: 350px;
}
.quick-contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 7px;
}

/* === ABOUT PAGE === */
.about .text-section,
.mission .content-wrapper,
.why-us .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.values-list, .expertise-list, .unique-propositions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guarantee-section {
  background: var(--muted);
  border-radius: 13px;
  padding: 18px 14px;
  margin-top: 12px;
  box-shadow: 0 1px 4px rgba(35,70,110,0.06);
}

/* === PRICING === */
.price-list {
  margin: 22px 0 12px 0;
  width: 100%;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  font-size: 1rem;
}
.price-list th, .price-list td {
  padding: 18px 10px 12px 10px;
  text-align: left;
  border-bottom: 1px solid #ead18f;
  font-family: var(--font-body);
}
.price-list th {
  background: var(--muted);
  color: var(--primary);
  font-family: var(--font-display);
}
.price-list tr:last-child td {
  border-bottom: none;
}
.pricing-notes {
  background: var(--muted);
  border-radius: 10px;
  padding: 15px 13px;
  margin: 0 0 16px 0;
  color: #50688c;
  font-size: 0.97rem;
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(255,179,36,0.05);
  padding: 15px 14px;
}
.faq-item h3 {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* === TIPS / PORADY === */
.tips-hero, .tips-list {
  background: var(--white);
  border-radius: var(--section-radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  padding: 30px 12px;
}
.categories-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.filter-item {
  background: var(--muted);
  border-radius: 15px;
  padding: 5px 15px;
  font-size: 0.99rem;
  color: var(--primary);
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.article-list li a {
  font-size: 1.16rem;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 3px;
  transition: color 0.16s;
}
.article-list li a:hover {
  color: var(--accent);
}

/* === CONTACT PAGE === */
.contact-hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.contact-hero .text-section ul {
  margin: 0 0 10px 0;
}
.contact-hero .text-section li {
  margin-bottom: 8px;
}
.contact-form .quick-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.contact-form .quick-links a {
  background: var(--muted);
  border-radius: 13px;
  padding: 7px 17px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s;
}
.contact-form .quick-links a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* === LEGAL === */
.legal .content-wrapper {
  gap: 16px;
}
.legal ul {
  margin: 10px 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: disc inside;
}

/* === CONFIRMATION PAGE === */
.confirmation .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 19px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.thank-you-message, .next-steps-info {
  background: var(--muted);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 auto 8px auto;
}
.next-steps-info ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 13px 0 0 0;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 12px 0;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo img {
  width: 62px;
  height: 62px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.footer-nav a {
  color: var(--accent);
  padding: 6px 12px;
  background: transparent;
  border-radius: 18px;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}
.footer-info {
  color: #e2e6ef;
  font-size: 0.97rem;
  margin-top: 10px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: block;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 1px 7px rgba(255,179,36,0.07);
  transition: background 0.18s, box-shadow 0.18s;
  z-index: 300;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffca56;
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 6px 38px rgba(35,70,110,0.21);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.33s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 0 18px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  margin: 20px 0px 15px 0;
  cursor: pointer;
  align-self: flex-end;
  box-shadow: 0 2px 7px rgba(255,179,36,0.07);
  transition: background 0.16s;
  z-index: 20001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffca56;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--primary);
  background: var(--muted);
  border-radius: 17px;
  padding: 15px 17px;
  font-weight: 700;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 2px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
}
@media (min-width: 1001px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -3px 23px rgba(35,70,110,0.08);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 18px 12px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9500;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.27s, transform 0.34s var(--ease);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-consent-btn, .cookie-settings-btn {
  padding: 9px 20px;
  font-size: 1rem;
  border-radius: 24px;
  font-weight: 600;
  background: var(--accent);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-consent-btn.reject {
  background: #ffe2a2;
  color: var(--primary);
}
.cookie-consent-btn:hover, .cookie-settings-btn:hover {
  background: #ffca56;
  color: var(--primary);
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(35,70,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 28px rgba(35,70,110,0.21);
  border-radius: 23px;
  padding: 36px 20px 27px 20px;
  max-width: 410px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-in 0.25s var(--ease);
  position: relative;
}
@keyframes modal-in { from{transform:translateY(80px); opacity:0;}to{transform:translateY(0); opacity:1;} }
.cookie-modal .modal-close {
  position: absolute;
  right: 24px; top: 15px;
  background: #ffe2a2;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .modal-close:hover {
  background: var(--accent);
}
.cookie-preference-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--muted);
  margin: 0;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 1rem;
}
.cookie-preference-item .toggle {
  margin-left: auto;
}
.cookie-preference-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}
/* Essential cookies always checked & disabled */
.cookie-preference-item.essential input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: not-allowed;
}

/* === UTILITIES & MICROINTERACTIONS === */
.shadow-sm { box-shadow: var(--shadow); }
.rounded { border-radius: var(--card-radius); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: 0;
}

/* === RESPONSIVENESS (MOBILE FIRST) === */
@media (max-width: 1000px) {
  .container, .content-wrapper {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .features .feature-grid, .service-cards, .service-grid,
  .testimonials .testimonial-list {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 7px;
    margin-bottom: 38px;
    border-radius: 13px;
  }
  .content-wrapper {
    padding: 0;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }
  .hero {
    padding: 32px 0 24px 0;
    border-radius: 15px;
  }
  .features .feature-grid li,
  .service-card {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 18px 10px;
  }
  .testimonials .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .cta .content-wrapper,
  .contact-hero .content-wrapper {
    align-items: flex-start;
    gap: 14px;
  }
  .quick-contact-info {
    max-width: 100vw;
    border-radius: 7px;
    padding: 14px 7px;
  }
  .price-list th, .price-list td {
    padding: 11px 7px 9px 7px;
  }
}
@media (max-width: 540px) {
  h1, .h1 { font-size: 1.2rem; }
  h2, .h2 { font-size: 1.05rem; }
  .logo img, .footer-logo img { width: 46px; height: 46px; }
}
@media (max-width: 410px) {
  .mobile-nav a {
    font-size: 1rem;
    padding: 12px 9px;
  }
  .cookie-modal { padding: 22px 5px 18px 5px; }
}

/* === CUSTOM FONTS (LOAD VIA GOOGLE FONTS) === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

