/* ---------------- CSS RESET ------------------ */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F8FA;
  color: #1C355E;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #1C355E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6CB2E2;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1C355E;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}
blockquote {
  border-left: 5px solid #6CB2E2;
  background: #E8ECF3;
  margin: 24px 0;
  padding: 20px 28px;
  font-style: italic;
  color: #1C355E;
  border-radius: 0 8px 8px 0;
}

/* ------------- CONTAINER & LAYOUT -------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(28,53,94,0.06);
}

/* ------------- HEADER & NAVIGATION --------------- */
header {
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(28,53,94,0.04);
  position: relative;
  z-index: 1000;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.logo img {
  display: block;
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E8ECF3;
  color: #1C355E;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 13px 32px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 16px 0 rgba(28,53,94,0.08);
  letter-spacing: 0.04em;
}
.btn-primary {
  background: #1C355E;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #27487E;
  color: #fff;
  box-shadow: 0 2px 18px 0 #6CB2E220;
}
.btn-secondary {
  background: transparent;
  color: #1C355E;
  border: 2px solid #6CB2E2;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6CB2E2;
  color: #fff;
  border-color: #6CB2E2;
  box-shadow: 0 2px 14px 0 #6CB2E220;
}

/* Hamburger/mobile nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1C355E;
  cursor: pointer;
  z-index: 1101;
  transition: color 0.14s;
  margin-left: 16px;
}
.mobile-menu-toggle:focus {
  color: #6CB2E2;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: #1C355E;
  color: #fff;
  z-index: 1100;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.42,.83,.59,1.24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #fff;
  background: none;
  border: none;
  margin: 16px 0 0 16px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1110;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin: 50px 0 0 0;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  background: none;
  padding: 12px 0;
  transition: color 0.18s, background 0.18s;
  border-radius: 9px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6CB2E2;
  background: #25437C;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 920px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ------------- HERO, SECTIONS, CTA --------------- */
.hero {
  background: #1C355E;
  color: #fff;
  padding: 56px 0 44px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 2.6rem;
}
.hero p {
  font-size: 1.15rem;
  color: #E8ECF3;
  margin-bottom: 22px;
}
.hero .btn-primary {
  background: #6CB2E2;
  color: #1C355E;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #1C355E;
  color: #fff;
  border: 2px solid #6CB2E2;
}

.section, .about-preview, .services-preview, .cta, .newsletter, .thank-you, .policy {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.cta {
  background: #6CB2E2;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 12px 0 rgba(28,53,94,0.05);
}
.cta .content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}
.cta h2 {
  color: #1C355E;
}
.cta .btn-primary {
  background: #1C355E;
  color: #fff;
}

/* ------------- FLEXBOX LAYOUTS --------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(28,53,94,0.06);
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 264px;
  max-width: 360px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(28,53,94,0.08);
  border-left: 6px solid #6CB2E2;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------- FEATURES --------------- */
.features {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 60px;
}
.features .features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 36px;
  margin-top: 16px;
}
.feature {
  background: #E8ECF3;
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 256px;
  max-width: 340px;
  flex: 1 1 270px;
  box-shadow: 0 4px 12px 0 rgba(28,53,94,0.06);
  margin-bottom: 16px;
  transition: transform 0.17s, box-shadow 0.17s;
}
.feature:hover, .feature:focus-within {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 6px 22px 0 rgba(108,178,226,0.15);
}
.feature img {
  height: 42px;
  width: 42px;
  margin-bottom: 12px;
}
.feature h3 {
  color: #1C355E;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  color: #27487E;
  font-size: 1rem;
}

/* ------------- TESTIMONIALS --------------- */
.testimonials {
  background: #E8ECF3;
  padding: 44px 0;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 20px;
}
.testimonial-card {
  color: #1C355E;
  background: #fff;
  border-left: 6px solid #6CB2E2;
  margin-bottom: 20px;
  min-width: 220px;
  flex-wrap: wrap;
  box-shadow: 0 2px 14px 0 rgba(108,178,226,0.06);
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(28,53,94,0.10);
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #27487E;
  margin-left: auto;
  font-style: normal;
}

/* About preview & services preview cards */
.about-preview, .services-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(28,53,94,0.06);
  margin-bottom: 60px;
}
.about-preview h2, .services-preview h2 {
  color: #1C355E;
  margin-bottom: 12px;
}
.about-preview p, .services-preview p,
.about-preview ul, .services-preview ul {
  font-size: 1.06rem;
  color: #27487E;
}
.about-preview .btn-secondary {
  margin-top: 18px;
}
.services-preview ul {
  margin-bottom: 14px;
  margin-left: 18px;
}

/* ------------- SUPPORT (WSparcie) --------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.faq-list li {
  background: #E8ECF3;
  border-radius: 10px;
  padding: 20px 16px;
}
.faq-list p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ------------- STRATEGIE (Strategie finansowe) --------------- */
.strategy-desc h3 {
  font-size: 1.1rem;
  color: #1C355E;
  margin-bottom: 5px;
  margin-top: 10px;
}
.strategy-comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(28,53,94,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.strategy-comparison caption {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #1C355E;
  margin-bottom: 8px;
  font-weight: 600;
}
.strategy-comparison th, .strategy-comparison td {
  padding: 16px 18px;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid #E8ECF3;
}
.strategy-comparison th {
  background: #6CB2E2;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.strategy-comparison tr:last-child td {
  border-bottom: none;
}
.strategy-comparison td {
  color: #1C355E;
}

.infographic img {
  margin-top: 16px;
  width: 120px;
  height: auto;
  display: block;
}

/* ------------- NEWSLETTER / THANK-YOU --------------- */
.newsletter, .thank-you {
  background: #E8ECF3;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(108,178,226,0.06);
}
.newsletter h2 {
  color: #1C355E;
}

/* ------------- FOOTER --------------- */
footer {
  background: #1C355E;
  color: #fff;
  padding: 48px 0 20px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6CB2E2;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.97rem;
  align-items: center;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
}
.footer-copy {
  font-size: 0.97rem;
  color: #E8ECF3;
  margin-top: 8px;
}

/* ------------- MAP PLACEHOLDER --------------- */
.map-placeholder {
  background: #E8ECF3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  border-radius: 8px;
  margin-top: 18px;
}

/* ------------- POLICY & LEGAL PAGES --------------- */
.policy .text-section {
  margin-top: 18px;
}
.policy ul {
  margin-left: 28px;
  margin-bottom: 10px;
}
.policy li {
  margin-bottom: 7px;
}

/* ------------- TEAM / ABOUT PAGE --------------- */
.team ul, .why-us ul, .trust-stats ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
.trust-stats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.trust-stats strong {
  color: #6CB2E2;
}

/* ------------- FORMS & LISTS --------------- */
.contact-form ul,
.office-info ul,
.contact-intro ul {
  margin-left: 14px;
  margin-bottom: 6px;
}
.contact-form ul li,
.office-info ul li,
.contact-intro ul li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1C355E;
  font-size: 1rem;
}

.contact-form ul img,
.office-info ul img,
.contact-intro ul img {
  width: 20px;
  height: 20px;
}

/* ------------- UTILITY CLASSES --------------- */
.text-section {
  margin-top: 18px;
  margin-bottom: 10px;
}
.text-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
.text-section h2, .text-section h3 {
  margin-top: 16px;
}

/* ------------- SPACING FOR FLEX CONTAINERS --------------- */
/* (Mandatory flexbox spacing rules applied above) */

/* ------------- RESPONSIVE MEDIA QUERIES --------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 94vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .features .features-grid {
    gap: 20px;
  }
  .feature {
    min-width: 180px;
    max-width: unset;
  }
}
@media (max-width: 768px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  header .container {
    min-height: 58px;
    gap: 10px;
    padding: 0 8px;
  }
  .main-nav, .btn-primary {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, .about-preview, .services-preview,
  .newsletter, .thank-you, .policy, .cta {
    padding: 24px 6px;
    border-radius: 10px;
    margin-bottom: 40px;
  }
  .card-container {
    gap: 12px;
  }
  .features .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    width: 100%;
    padding: 22px 12px;
    min-width: unset;
    box-shadow: 0 2px 10px 0 rgba(108,178,226,0.07);
  }
  .card {
    min-width: unset;
    max-width: 100%;
    padding: 18px 12px 14px 12px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .trust-stats ul {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .logo img {
    max-height: 34px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  h1, h2, h3 {
    font-size: 1.06rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.97rem;
    padding: 10px 18px;
  }
}
/* ------------- ANIMATIONS & MICRO-INTERACTIONS --------------- */
.btn-primary, .btn-secondary, .feature, .card, .testimonial-card, .mobile-nav a {
  transition: box-shadow 0.18s, background 0.18s, color 0.15s, transform 0.13s;
}

/* ------------- COOKIE CONSENT BANNER --------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1C355E;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 -1px 24px 0 rgba(28,53,94,0.20);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  gap: 28px;
  animation: cookieBannerShow 0.7s cubic-bezier(.5,1.7,.37,.84);
}
@keyframes cookieBannerShow {
  0% { transform: translateY(100%); opacity: 0; }
  85% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 20px;
}
.cookie-banner button {
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.14s;
  outline: none;
}
.cookie-banner .accept {
  background: #6CB2E2;
  color: #1C355E;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #E8ECF3;
  color: #1C355E;
}
.cookie-banner .reject {
  background: transparent;
  color: #fff;
  border: 2px solid #6CB2E2;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #6CB2E2;
  color: #1C355E;
}
.cookie-banner .settings {
  background: #E8ECF3;
  color: #1C355E;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #6CB2E2;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 4px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-btn-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-left: 0;
  }
  .cookie-banner p {
    font-size: 0.97rem;
  }
}

/* COOKIE BANNER MODAL (Cookie settings) */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,53,94,0.44);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.35s cubic-bezier(.42,.93,.45,1.41);
}
@keyframes cookieModalIn {
  0% { opacity:0; transform: scale(0.98); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal {
  background: #fff;
  color: #1C355E;
  border-radius: 16px;
  box-shadow: 0 4px 36px 0 rgba(28,53,94,0.13);
  max-width: 430px;
  width: 95vw;
  padding: 38px 20px 28px 20px;
  z-index: 2550;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 3px;
  color: #1C355E;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 10px 0 10px 0;
}
.cookie-modal .cookie-category input[type=checkbox],
.cookie-modal .cookie-category input[type=radio] {
  width: 19px;
  height: 19px;
  accent-color: #6CB2E2;
  margin-right: 8px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-modal .cookie-btn-group {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #6CB2E2;
  cursor: pointer;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 16px 6px 12px 6px;
    font-size: 0.95rem;
  }
  .cookie-modal h3 {
    font-size: 1.09rem;
  }
  .cookie-modal-close {
    font-size: 1.7rem;
    right: 7px;
    top: 2px;
  }
}

/* ------------- GEOMETRIC/STRUCTURED STYLE DECOR (angular shadows, shapes) --------------- */
.feature, .card, .testimonial-card, .policy, .about-preview, .services-preview, .cta, .newsletter, .thank-you {
  border-radius: 16px 16px 4px 16px;
  /* Angled for geometric effect */
}
.btn-primary, .btn-secondary {
  border-radius: 12px 18px 6px 12px;
}
blockquote {
  border-radius: 0 10px 10px 0;
}
hr {
  border: 0;
  border-top: 2px solid #E8ECF3;
  margin: 28px 0;
}

/* High-contrast text for reviews/testimonials */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #1C355E !important;
  background: #fff !important;
}

/* ------------- FOCUS/ACCESSIBILITY --------------- */
a:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2.5px solid #6CB2E2;
  outline-offset: 2px;
}

/* ------------- PRINT OPTIMIZATION --------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display:none !important; }
}

/* ------------- END OF STYLE.CSS --------------- */