/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
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, 
main, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #E1E6F0;
  color: #233650;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #157A62;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.64,.09,.08,1);
}
a:hover, a:focus {
  color: #233650;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
*, *:before, *:after {
  box-sizing: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #233650;
}
h1 {font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px;}
h2 {font-size: 2rem; line-height: 1.15; margin-bottom: 20px;}
h3 {font-size: 1.25rem; line-height: 1.2; margin-bottom: 16px;}
h4, h5, h6 {font-size: 1rem; margin-bottom: 8px;}
p {font-size: 1.125rem; margin-bottom: 18px;}
strong, b {font-weight: 700;}

/* ===============
   LAYOUT & CONTAINERS
   =============== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
  }
  .section {
    padding: 60px 0 60px 0;
    margin-bottom: 72px;
  }
}
.text-section {
  flex: 1 1 0;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(35,54,80,0.10);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  padding: 28px 20px;
  border: 1px solid #E1E6F0;
  transition: box-shadow 0.18s cubic-bezier(.64,.09,.08,1);
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(19,118,91,0.12);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section,
  .content-wrapper{
    flex-direction: column !important;
    gap: 20px;
  }
}

/* =================================
   HEADER & NAV
   ================================= */
header {
  background: #fff;
  border-bottom: 2.5px solid #E1E6F0;
  box-shadow: 0 1px 8px 0 rgba(35,54,80,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
header nav a {
  color: #233650;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 4px;
  border-radius: 7px;
  transition: background 0.18s, color 0.20s;
}
header nav a:hover:not(.btn-primary),
header nav a:focus:not(.btn-primary) {
  background: #E1E6F0;
  color: #157A62;
}
.btn-primary {
  background: #157A62;
  color: #fff!important;
  padding: 11px 28px;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.18s cubic-bezier(.64,.09,.08,1),
    box-shadow 0.16s cubic-bezier(.64,.09,.08,1);
  box-shadow: 0 2px 10px 0 rgba(19, 118, 91, 0.07);
  outline: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #233650;
  color: #fff!important;
  box-shadow: 0 4px 22px 0 rgba(35,54,80,0.15);
}

header .mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  color: #13765B;
  padding: 5px 9px;
  border-radius: 7px;
  transition: background 0.15s;
  cursor: pointer;
  z-index: 3100;
}
header .mobile-menu-toggle:hover {
  background: #E1E6F0;
}

@media (min-width: 1000px) {
  header .mobile-menu-toggle { display: none; }
}

@media (max-width: 999px) {
  header nav {
    display: none;
  }
}

/* =================================
   MOBILE MENU OVERLAY
   ================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #233650;
  transform: translateX(-100%);
  transition: transform 0.31s cubic-bezier(.64,.09,.08,1);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  box-shadow: 0 16px 60px 16px rgba(35, 54, 80, 0.22);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  position: absolute;
  top: 22px;
  right: 24px;
  cursor: pointer;
  z-index: 4060;
  padding: 8px 12px;
  transition: background 0.2s;
  border-radius: 8px;
}
.mobile-menu .mobile-menu-close:hover {
  background: #157A62;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 68px;
  padding-left: 40px;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.018em;
  border-radius: 0;
  transition: color 0.18s;
  position: relative;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #E1E6F0;
  text-decoration: underline;
}
@media (max-width: 599px) {
  .mobile-nav {
    padding-left: 22px;
  }
  .mobile-menu .mobile-menu-close { top: 15px; right: 13px; }
}

/* ====================================
   MAIN SECTIONS & CARDS
   ==================================== */
main section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 48px 0 rgba(35,54,80,0.06);
  margin-bottom: 60px;
}

article {
  background: #E1E6F0;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 10px 0 rgba(35, 54, 80, 0.05);
}

@media (min-width: 900px) {
  article {
    padding: 32px 34px;
    margin-bottom: 32px;
  }
}

/* ===================================
   TESTIMONIALS & FAQ
   =================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #E1E6F0;
  box-shadow: 0 2px 20px 0 rgba(35,54,80,0.06);
  color: #233650;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #233650;
  border-left: 6px solid #157A62;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.5;
}
.testimonial-card strong {
  font-weight: 700;
  color: #157A62;
}
.testimonial-card {
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(19, 118, 91, 0.13);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #f9fbfd;
  padding: 17px 22px;
  border-radius: 11px;
  border-left: 6px solid #13765B;
  box-shadow: 0 1px 10px 0 rgba(35,54,80,0.04);
  margin-bottom: 10px;
  transition: box-shadow .18s;
}
.faq-item:hover {
  box-shadow: 0 4px 24px 0 rgba(35,54,80,0.10);
}
.faq-item h3 {
  font-size: 1.05rem;
  color: #157A62;
  margin-bottom: 6px;
}
.faq-answer {
  font-size: 1.06rem;
  color: #233650;
}
input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 1.6px solid #E1E6F0;
  margin-bottom: 18px;
  transition: border 0.2s;
}
input[type="text"]:focus {
  border: 1.6px solid #157A62;
  outline: none;
}

/* ===================================
   BLOG CATEGORIES & NEWSLETTER
   =================================== */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  color: #233650;
}
.blog-categories span {
  background: #E1E6F0;
  color: #13765B;
  border-radius: 6px;
  padding: 3px 14px;
  margin: 0 5px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* ===================================
   CONTACT DETAILS & MAP
   =================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.contact-details img {
  width: 21px;
  margin-right: 11px;
  display: inline-block;
  vertical-align: middle;
}
.contact-details a {
  color: #157A62;
  text-decoration: underline dotted;
}
.office-map {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  background: #E1E6F0;
  border-radius: 8px;
  padding: 9px 20px;
  margin-bottom: 20px;
}
.office-map img {
  width: 26px;
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: #233650;
  color: #fff;
  margin-top: 64px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px 0;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 28px 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}
footer nav a {
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 5px;
  transition: color 0.17s, background 0.16s;
  padding: 5px 6px;
}
footer nav a:hover {
  color: #13765B;
  background: #E1E6F0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.99rem;
  color: #fff;
}
.footer-contact img {
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
.social-media {
  display: flex;
  gap: 16px;
}
.social-media img {
  width: 28px;
  height: 28px;
  filter: grayscale(30%) drop-shadow(0 2px 7px #13765B11);
  transition: filter 0.3s, transform 0.2s;
  cursor: pointer;
}
.social-media img:hover {
  filter: grayscale(0%) brightness(1.2) drop-shadow(0 2px 12px #157A6233);
  transform: translateY(-4px) scale(1.09);
}
.footer-copyright {
  color: #E1E6F0;
  font-size: 0.98rem;
  margin-top: 8px;
}
@media (min-width: 830px) {
  footer .container {
    flex-direction: row;
    gap: 34px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .footer-contact, .social-media {
    margin-right: 18px;
  }
}

/* ===================================
   COOKIE CONSENT BANNER & MODAL
   =================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 97vw;
  max-width: 560px;
  background: #fff;
  color: #233650;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 25px 0 rgba(35,54,80,0.18);
  display: flex;
  flex-direction: column;
  z-index: 4999;
  padding: 22px 32px 16px 32px;
  align-items: flex-start;
  gap: 20px;
  font-size: 1.09rem;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.64,.09,.08,1), opacity 0.33s;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.015em;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.19s, color 0.19s;
}
.cookie-btn.accept {
  background: #157A62;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #233650;
}
.cookie-btn.settings {
  background: #E1E6F0;
  color: #233650;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #D5DFED;
}
.cookie-btn.reject {
  background: #fff;
  color: #157A62;
  border: 1px solid #E1E6F0;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #E1E6F0;
}

/* Cookie modal popup */
.cookie-modal-background {
  display: none;
  position: fixed;
  z-index: 5010;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,54,80,0.36);
}
.cookie-modal-background.visible {
  display: block;
}
.cookie-modal {
  position: fixed;
  z-index: 5020;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%,50%) scale(0.85);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 40px 0 rgba(35,54,80,0.20);
  padding: 34px 32px 20px 32px;
  width: 96vw;
  max-width: 420px;
  display: none;
  flex-direction: column;
  gap: 22px;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.3s, transform 0.33s;
}
.cookie-modal.visible {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 25%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.23rem;
  color: #233650;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #157A62;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: #157A62;
}
.cookie-modal .category-essential {
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 16px;
}
.cookie-modal .cookie-btn {
  width: auto;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 1.4rem;
  color: #233650;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 7px;
  transition: background 0.19s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #E1E6F0;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 849px) {
  main section,
  .section {
    padding: 24px 2vw;
    margin-bottom: 36px;
  }
  h1 { font-size: 2rem;}
  h2 { font-size: 1.3rem;}
}
@media (max-width: 600px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-contact, .contact-details {font-size: 0.95rem;}
}
@media (max-width: 480px) {
  .cookie-banner {padding-left: 10px; padding-right: 10px;}
  .cookie-modal {padding: 16px 9px;}
  article {padding: 14px 7px;}
}

/* ===================================
   UTILITIES & GEOMETRIC-STRUCTURED ELEMENTS
   =================================== */
.geometric-divider {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(90deg,#157A62,#13765B 40px,#E1E6F0 41px,#E1E6F0 80px);
  border-radius: 3px;
  margin: 40px 0 34px 0;
}

/* ANGULAR TYPOGRAPHY - USING MONTSERRAT FOR HEADERS */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #fff, 0 2px 4px #E1E6F0;
}

/* SHADOWED CARDS */
.card, .testimonial-card, .faq-item, article {
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(35,54,80,0.10);
  border: 1px solid #E1E6F0;
}

/* BUTTON MICRO-INTERACTIONS */
.btn-primary, .cookie-btn {
  transition: box-shadow 0.22s cubic-bezier(.64,.09,.08,1);
  box-shadow: 0 2px 10px 0 rgba(19, 118, 91, 0.10);
}
.btn-primary:active {transform: scale(0.965);}

/* FOCUSED INPUTS
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
input:focus, button:focus, .btn-primary:focus {
  outline: 2px solid #157A62;
  outline-offset: 0px;
}

/* == GEOMETRIC ICONS SIZING == */
img[alt^="Certyfikat"], img[alt^="Tarcza"], img[alt^="Glob"], img[alt^="Waga"],
img[alt^="Konsultacja"], img[alt^="Dokumentacja"], img[alt^="Proces"], img[alt^="Wsparcie"],
img[alt^="Rezydentstwo"], img[alt^="Prawo"], img[alt^="Konsultacje"], img[alt^="Współpraca"] {
  width: 39px;
  height: 39px;
  margin-right: 16px;
  vertical-align: middle;
}

/* == HIGHLIGHTED LEGAL ELEMENTS == */
.text-section ul li strong {
  color: #157A62;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* == LIST SPACING == */
ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 1.075rem;
  line-height: 1.52;
  font-family: 'Roboto', Arial, sans-serif;
}
ol li img, ul li img {
  margin-right: 10px;
  margin-top: 2px;
}

/* == Spacing: ensure no overlaps == */
.card, .testimonial-card, article, .faq-item, .feature-item, .section, main section {
  margin-bottom: 20px;
}
/* == Enhanced visual hierarchy == */
.card:not(:last-child), .testimonial-card:not(:last-child), article:not(:last-child) {
  margin-bottom: 26px;
}

/* == Newsletter & CTA == */
.btn-primary {margin-top:8px;}

/* ===================================
   GEOMETRIC-STRUCTURED DECORATIVE SHAPES
   =================================== */
.section::after {
  content: '';
  display: block;
  margin: 36px auto 0 auto;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg,#157A62,#157A62 29px,#E1E6F0 30px,#E1E6F0 60px);
}
@media (max-width: 600px) {
  .section::after {margin: 24px auto 0 auto;}
}

/* ===================================
   ADDITIONAL GEOMETRIC FLARES (OPTIONAL)
   =================================== */
.btn-primary::before {
  content:'';
  display:inline-block;
  vertical-align:middle;
  width:0; height:0;
  margin-right:7px;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-right:14px solid #13765B;
  border-radius:2px;
  opacity:0.2;
  transform: translateY(1px);
  transition:opacity 0.2s;
}
.btn-primary:hover::before {
  opacity:0.45;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner {
    display:none !important;
  }
  main section, .container {
    box-shadow:none !important;
    background: #fff !important;
    color: #233650 !important;
    border:none !important;
    padding:0 !important;
    margin:0 !important;
  }
}
