/* ========== GLOBAL ========== */
html body {
  font-family: "Montserrat", sans-serif;
  color: #6f6f6f;
}

html,
body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  color: #050505;
}

body p {
  font-size: 16px;
  line-height: 24px;
  font-family: "Montserrat", sans-serif;
}

.contact-button {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

body a.btn,
body a.btn:visited {
  color: #fff;
  text-decoration: none;
}

body .btn {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  display: inline-block;
  padding: 24px 32px;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 99px;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #137f4c;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  margin-right: 10px;
}

body .btn-white {
  background-color: #fff;
  color: #137f4c;
  border: 1px solid #137f4c;
}

body a.btn-white,
body a.btn-white :visited {
  color: #137f4c !important;
  text-decoration: none;
}

body .btn:hover {
  background-color: #0f6c40;
}

body .btn:active {
  transform: scale(0.97);
  background-color: #0c5b35;
}

body .btn:focus {
  outline: 2px solid #8fe0bb;
  outline-offset: 4px;
}

body .btn:disabled {
  background-color: #b3d1c2;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}

body .btn-white:hover {
  background-color: #137f4c;
  color: #fff !important;
}

body .btn-white:active {
  background-color: #0f6c40;
  color: #fff;
  transform: scale(0.97);
}

body .btn-white:focus {
  outline: 2px solid #137f4c;
  outline-offset: 4px;
}

body .btn-white:disabled,
body .btn-white[aria-disabled="true"] {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 768px) {
  body .btn,
  body .btn-white {
    display: block;
    width: 80%;
    padding: 20px;
    font-size: 18px;
    margin-right: 0;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  body .btn,
  body .btn-white {
    font-size: 16px;
    padding: 16px;
    width: 80%;
    margin-right: 0;
    margin-bottom: 16px;
  }
}

/* ========== NAWIGACJA ========== */

.navigation {
  padding: 0 !important;
  margin-top: 60px !important;
}

.main-nav .menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation .navigation-menu .starter-menu > li {
  font-size: 16px !important;
  margin: 0 10px !important;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu li a {
  font-family: "Lato";
  font-weight: 400;
  text-decoration: none;
  color: #050505;
  transition: 0.3s;
  line-height: 100%;
  letter-spacing: 2%;
}

.navigation .navigation-menu .starter-menu > li > a {
  padding: 10px 0 !important;
}

.navigation .navigation-menu .starter-menu > li > a:hover {
  border-bottom: 1px solid #050505;
  color: #050505 !important;
}

.navigation .navigation-menu .starter-menu > li.current_page_item > a,
.navigation .navigation-menu .starter-menu > li > a[aria-current="page"] {
  border-bottom: 1px solid #050505 !important;
  color: #050505 !important;
}

/* Reset domyślnych podkreśleń */
.navigation .navigation-menu .starter-menu > li > a {
  position: relative;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

/* Tworzymy animowaną linię */
.navigation .navigation-menu .starter-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #050505;
  transition: width 0.3s ease-in-out;
}

/* Hover – linia się rozwija */
.navigation .navigation-menu .starter-menu > li > a:hover::after {
  width: 100%;
}

/* Aktywna strona – linia jest pełna */
.navigation .navigation-menu .starter-menu > li.current_page_item > a::after,
.navigation
  .navigation-menu
  .starter-menu
  > li
  > a[aria-current="page"]::after {
  width: 100%;
}
.navigation .navigation-menu .starter-menu > li.current_page_item > a,
.navigation .navigation-menu .starter-menu > li > a[aria-current="page"] {
  color: #050505;
}

.starter-logo-with-text {
  display: flex;
  width: 25%;
  align-items: center;
  text-decoration: none;
}

.starter-logo-with-text img {
  max-height: 60px;
  height: auto;
  width: auto;
}

.navigation-menu {
  display: flex;
  justify-content: center;
}

.menu-social-box {
  width: 25%;
}
@media (min-width: 1025px) and (max-width: 1199px){
.navigation .navigation-menu .starter-menu > li {
  margin: 0 4px !important;
}
}
@media (max-width: 1024px) {
  .navigation .navigation-menu.active .menu {
    margin-top: 30px !important;
  }
  .navigation .navigation-menu .menu > li {
    /* width: 200px; */
    height: 50px;
    border-bottom: none !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .navigation .navigation-menu {
    margin: 0 -45px 0 auto !important;
  }
}

/* ========== STOPKA ========== */
.site-footer {
  padding: 40px 20px 20px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 2%;
  margin-bottom: 50px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto 20px;
  border-top: 1px solid #e2e2e2;
  width: 100%;
  max-width: 1000px;
}

.footer-col {
  margin-top: 45px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.footer-logo .logo-link {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px solid #d8e8de;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo .footer-bottom {
  margin-top: auto;
}

.footer-copyright {
  color: #565656;
  font-size: 10px;
}

.extra-space {
  margin-top: 20px;
  margin-bottom: 0;
}

.footer-nav li {
  margin-bottom: 16px !important;
}

.footer-nav li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #050505;
}

/* FAQ */

.faq {
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 100px;
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #050505;
  cursor: pointer;
  padding: 5px 0;
}

.faq-question .material-icons {
  font-size: 20px;
  color: #137f4c;
  transition: transform 0.3s ease;
}

.faq-question.active .material-icons {
  transform: rotate(180deg);
}

.faq-question.active span:first-child {
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 16px;
  color: #050505;
}

@media (max-width: 1024px) {
  .faq {
    padding: 0 12px;
  }

  .faq-question {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* blokuje automatyczne skalowanie */
    text-size-adjust: 100%;
  }

  .faq-answer {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* blokuje automatyczne skalowanie */
    text-size-adjust: 100%;
  }

  .faq-answer-list {
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
   .faq {
    padding: 0 12px;
    width: calc(100% - 24px);
    margin: 0 auto;
  }

  .faq-answer ul {
    padding-left: 16px;
  }

  .faq-answer {
    padding: 0;
  }
}

/* Contact form 7 */

.wpcf7 {
  font-family: "Lato", sans-serif;
  color: #050505;
}

.wpcf7 form {
  max-width: 758px;
  margin: 60px auto;
  padding: 48px 64px;
  background-color: #fff;
  border-top-right-radius: 112px;
  border-bottom-left-radius: 48px;
  box-shadow: 0px 17px 250px 0px #00000026;
}

.wpcf7-form label {
  display: block;
  margin: 25px 0;
  font-size: 14px;
  color: #050505;
}

.wpcf7 .form-input,
.wpcf7 .form-select {
  height: 48px;
  padding: 0 32px 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1%;
  font-family: "Lato", sans-serif;
  border: 1px solid #fff;
  border-radius: 8px;
  background-color: #efefef;
  box-sizing: border-box;
}

.wpcf7 .form-input:focus,
.wpcf7 .form-select:focus {
  border-color: #2e7d32;
  outline: none;
  background-color: #fff;
}

.wpcf7 .form-textarea {
  height: 165px;
  padding: 24px 16px;
  box-sizing: border-box;
}

.form-row {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  color: #565656;
}

body .rodo-combined p {
  display: flex;
  /* width: 100%; */
}

/* RODO styles */

.rodo-text {
  font-size: 12px;
  color: #050505;
  margin-bottom: 20px;
  margin-left: 10px;
}

.rodo-text a {
  color: #1b5e20;
  border-bottom: 1px solid #1b5e20;
}

.rodo-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.rodo-col {
  display: flex;
  align-items: flex-start;
}

.checkbox-col {
  flex: 0 0 20px;
}

.text-col {
  flex: 1;
  font-size: 12px;
}

.button-col {
  flex: 0 0 auto;
  width: 230px;
}

.wpcf7 .form-submit {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  display: inline-block;
  padding: 24px 32px;
  gap: 8px;
  text-decoration: none;
  border-radius: 99px;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #137f4c;
  border: 1px solid #137f4c;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

.wpcf7 .form-submit a {
  color: inherit;
  text-decoration: none;
}

.wpcf7 .form-submit:hover {
  background-color: #0f6c40;
}

.wpcf7 .form-submit:active {
  transform: scale(0.97);
  background-color: #0c5b35;
}

.wpcf7 .form-submit:focus {
  outline: 2px solid #8fe0bb;
  outline-offset: 4px;
}

.wpcf7 .form-submit:disabled {
  background-color: #b3d1c2;
  border: 1px solid #b3d1c2;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.checkbox-col input[type="checkbox"] {
  margin-top: 0.15em;
  accent-color: #2e7d32;
}

.thankyou-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
  max-width: 758px;
  margin: 100px auto;
  padding: 48px 64px;
  background-color: #fff;
  border-top-right-radius: 112px;
  border-bottom-left-radius: 48px;
  box-shadow: 0px 17px 250px 0px #00000026;
}

.thankyou-wrapper.hidden {
  display: none;
}

.thankyou-box h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.thankyou-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* #cf7-thankyou-box.hidden {
  display: flex !important;
} */

/* Responsive */

@media (max-width: 768px) {
  .rodo-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-col {
    margin-top: 1em;
  }
}

/* === Modal === */

.modal-form-wrapper {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-form-content {
  border-radius: 8px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-form-scroll {
  max-height: 80vh;
  overflow-y: auto;
}

/* Contact form 7 */

.container-blog {
  max-width: 1100px;
  margin: 0 auto;
}

.single-post-author-bio {
  display: none !important;
}

.blog-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 40px;
  font-weight: bold;
  line-height: 50px;
  margin-bottom: 30px;
  letter-spacing: 0%;
  font-family: "Lato", sans-serif;
  text-align: left;
}

.blog-header p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  text-align: left;
  margin-bottom: 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-item {
  display: flex;
  flex-direction: column;
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 500 / 300;
  border-radius: 24px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  border-top-left-radius: 32px;
  border-bottom-right-radius: 69px;
}

.blog-meta {
  margin-top: 12px;
}

.blog-date {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 2%;
  color: #949494;
}

.blog-title {
  font-family: "Lato", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 34px;
  letter-spacing: 0%;
}

.blog-title a {
  color: #000;
  text-decoration: none;
}

.blog-title a:hover {
  color: #2b7a2b;
}

.blog-excerpt {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 24px;
  letter-spacing: 2%;
}

.read-more-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #2b7a2b;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
}

.read-more-link:hover {
  text-decoration: underline;
}

ul.page-numbers,
ul.page-numbers li {
  list-style: none;
  padding-left: 0;
}

ul.page-numbers li::marker {
  content: none;
}

.page-numbers.current {
  background-color: #2b7a2b !important;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: bold;
  display: inline-block;
}

.page-numbers a:hover {
  border: 1px solid #2b7a2b !important;
}

@media (max-width: 1024px) {
  .blog-section {
    padding: 60px;
  }
}

@media (max-width: 480px) {
  /* Zapobiegaj przewijaniu w bok */
  html,
  body {
    overflow-x: hidden;
  }

  .wrapper {
    margin-top: -50px;
  }

  .blog-section {
    padding: 40px 16px;
  }

  .blog-header {
    margin-bottom: 32px;
  }

  .blog-header h2 {
    font-size: 26px;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 20px;
  }

  .blog-header p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 40px;
    text-align: left;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-thumbnail {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    border-top-left-radius: 24px;
    border-bottom-right-radius: 48px;
  }

  .blog-meta {
    margin-top: 10px;
  }

  .blog-title {
    font-size: 18px;
    margin: 6px 0;
  }

  .blog-excerpt {
    font-size: 14px;
    line-height: 22px;
  }

  .read-more-link {
    font-size: 14px;
  }

  .page-numbers.current {
    padding: 6px 12px;
    font-size: 14px;
  }

  ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
  }
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  /* font-family: Arial, sans-serif; */
  /* font-weight: bold; */
  color: #050505;
  transition: opacity 0.3s ease;
}

.linkedin-btn:hover {
  opacity: 0.7;
}

.linkedin-btn svg {
  flex-shrink: 0;
}

/* Responsywność */

/* === Responsive Footer === */
@media screen and (max-width: 1024px) {
  .footer-wrapper {
    width: 90%;
    max-height: none;
    gap: 0;
  }

  .footer-logo {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .footer-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .footer-col,
  .footer-logo {
    width: 100%;
    min-width: 0;
  }

  .footer-logo {
    align-items: flex-start;
  }
}

@media screen and (max-width: 480px) {
  .footer-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 20px;
  }

  .footer-contact {
    order: 1;
  }

  .footer-navigation {
    order: 2;
  }

  .footer-logo {
    order: 3;
  }
}

@media (max-width: 1024px) {
  .wpcf7 form {
    width: 80%;
    border-top-right-radius: 128px;
    border-bottom-left-radius: 64px;
  }
}

@media (max-width: 480px) {
  /* Kontener formularza */
  .wpcf7 form {
    width: 90%;
    margin: 60px auto;
    padding: 32px 20px;
    border-top-right-radius: 64px;
    border-bottom-left-radius: 32px;
  }

  .form-row h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .form-row p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 24px;
  }

  /* Pola formularza */
  .wpcf7 .form-input,
  .wpcf7 .form-select,
  .wpcf7 .form-textarea {
    font-size: 14px;
    padding: 12px 16px;
    height: auto;
  }

  .wpcf7 .form-textarea {
    height: 120px;
  }

  .form-col {
    margin-bottom: 16px;
  }

  /* RODO – checkbox i tekst obok */
  .rodo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .checkbox-col {
    flex: 0 0 auto;
    margin-top: 3px;
  }

  .text-col {
    flex: 1 1 auto;
    font-size: 12px;
    line-height: 18px;
  }

  .rodo-text {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .button-col {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
  }

  .wpcf7 .form-submit {
    font-size: 18px;
    padding: 18px 28px;
    width: 100%;
  }

  /* Thank you box */
  .thankyou-wrapper {
    width: 90%;
    margin: 60px auto;
    padding: 32px 20px;
    border-top-right-radius: 64px;
    border-bottom-left-radius: 32px;
  }

  .thankyou-box h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .thankyou-buttons {
    flex-direction: column;
    align-content: center;
    gap: 12px;
  }
}
