
/* -----------CTA-------------- */

.cta-container {
    width: 100%;
    height: 110rem;
    background:
    radial-gradient(circle at 25% 20%, rgba(177,151,107,0.08), transparent 45%),
    linear-gradient(135deg, #0b3d2e, #081916);
    background-blend-mode: overlay;
  }

.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.content-cta {
  width: 65%;
  height: 100%;
  margin: auto;
  padding-top: 15rem;
}


.barbara,
.nazwisko {
  display: block;
}

.content-cta h2 {
  text-align: center;
  font-size: 6.4rem;
  color: #B1976B;
  margin-bottom: 15rem;
}

.content-cta h1 {
  text-align: center;
  font-size: 3.2rem;
  color: #f5f5f5;
  margin-bottom: 15rem;
}

.content-cta h3 {
  text-align: center;
  font-size: 2.4rem;
  color: #f5f5f5;
  margin-bottom: 10rem;
}

.content-cta p {
  text-align: center;
  width: 50%;
  margin: 0 auto;
  color: #f5f5f5;
  font-size: 2.4rem;
}
.primary-btn {
  display: block;
  height: 20rem;
  padding: 4rem 0 2rem;
  margin-bottom: 5rem;
}

.primary-btn button, .secondary-btn button {
  width: 15rem;
  height: 5rem;
  border: none;
  background-color: #B1976B;
  color: #f5f5f5;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-link-btn {
  font-size: 1.8rem;
  color: #161616;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link-btn:hover {
  color: #0b3d2e;
}


/* ------------------ KANCELARIA --------------- */


.intro-container {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 100%;
}

.intro-box-one {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 75%;
  background-color: #fff;
  border-radius: 0.5rem;
  transform: translate(-50%, -5rem);
  left: 50%;
  box-shadow: -8px 12px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding-bottom: 10rem;
}

.intro-article {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 55%;
  padding: 5rem;
}

.headline {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 30%;
  color: #161616;
  font-size: 3.6rem;
  
}
.headline-article {
  height: 70%;
  font-size: 2rem;
  color: #555555;
}

.headline-article p {
  margin-bottom: 2rem;
}

.intro-photo {
  width: 45%;
  height: 100%;
}

.intro-photo img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  min-width: 36rem;
}

.intro-box-two {
  position: relative;
  width: 75%;
  display: flex;
  flex-direction: column;
  left: 50%;
  transform: translateX(-50%);

}

.intro-content-one {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 30%;
  width: 70%;
  margin: auto;
  padding: 2rem;
  overflow: hidden;
}

.intro-content-one h2 {
  font-weight: 500;
  font-size: 3.2rem;
  color: rgba(22, 22, 22, 1);
  text-align: center;
}

.intro-content-two {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70%;
  height: 70%;
  padding: 2rem;
  margin: auto;
  overflow: hidden;
}

.intro-content-two p {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: rgba(85, 85, 85, 1);
}

.highlight {
  color: #B1976B;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.2s ease-in-out;
}

/* --------------Specjalizacje/Oferta------------- */

.specializations {
  padding: 10rem 5%;
  background-color: #f9f9f9;
}

.specializations-title {
  text-align: center;
  margin-bottom: 5rem;
}

.specializations-title h2 {
  font-size: 4rem;
  color: #161616;
  font-weight: 600;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.specializations-grid > :last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 80rem; 
}


.specialization-box {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  border: 1px solid #e0e0e0;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.specialization-box h3 {
  font-size: 2.4rem;
  color: #B1976B;
  margin-bottom: 1.5rem;
}

.specialization-box h4 {
  font-size: 2rem;
  color: #0b3d2e;
  text-align: right;
  margin-top: 1.5rem;
}

.specialization-box p {
  font-size: 1.8rem;
  color: #444;
  line-height: 1.6;
  flex-grow: 1;
}

.specialization-box:hover {
  transform: translateY(-0.7rem);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.08);
}

.specialization-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: #B1976B;
  transition: width 0.4s ease;
}

.specialization-box:hover::before {
  width: 100%;
}

#offer-modal {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  display: none;
  z-index: 101;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.24);
  width: 80%;
  height: 80%;
  overflow-y: scroll;
}


#modal-title {
  font-size: 4rem;
  color: #B1976B;
  flex: 0.2;
  padding-top: 6rem;
  width: 100%;
  text-align: center;
  align-content: center;
}

#modal-text {
  font-size: 2.5rem;
  flex: 0.8;
  padding: 0rem 15rem 15rem 15rem;
  font-weight: 500;
  width: 100%;
  line-height: 1.8;
  color: #333;
}

#modal-close {
  background: none;
  border: none;
  width: 5rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#modal-close img {
  object-fit: contain;
  width: 100%;
}


/* -------------Konsultacje-------------- */

.konsultacje {
  padding: 5rem 8rem;
  display: flex;
}

.consultation-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
}

.consultation-container h2 {
  font-size: 4rem;
  font-weight: 600;
  color: #161616;
  text-align: center;
}

.consultation-header {
  display: block;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.consultation-header p {
  font-size: 2.5rem;
  font-weight: 400;
  color: #B1976B;
  text-align: center;
}

.consultation-description {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 2rem 8rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.consultation-box {
  display: block;
  position: relative;
  padding: 2rem;
  width: 53rem;
  height: 45rem;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  overflow: hidden;
}

.consultation-box img {
  position: absolute;
  width: 10rem;
  object-fit: contain;
  z-index: 0;
  bottom: 2.5rem;
  right: 2rem;
  opacity: 0.15;
  filter: grayscale(100%);
}

.consultation-box h3 {
  position: relative;
  font-size: 3rem;
  text-align: center;
  z-index: 1;
}

.consultation-box p {
  position: relative;
  font-size: 1.8rem;
  margin-top: 2rem;
  color: #444;
}

.consultation-forms {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.consultation-forms h2 {
  font-size: 4rem;
  margin: 3rem 0;
}

.forms-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 100%;
  list-style: none;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
}

.forms-list li {
  display: block;
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 40rem;
  height: 25rem;
  border: 1px solid #e0e0e0;
  padding: 3.5rem 0;
  background-color: #fff;
  overflow: hidden;
  align-content: center;
}

.forms-list li div h3 {
  color: #B1976B;
  font-size: 3rem;
  text-align: center;
  font-weight: 600;
}

.forms-list li img {
  object-fit: contain;
  width: 12.5rem;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.25;
}

/* -------------------Kontakt--------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  width: 80%;
  margin: 5rem auto;
  align-items: center;
}

.contact-info h2 {
  font-size: 4rem;
  margin-bottom: 4rem;
}

.contact-block {
  margin-bottom: 3rem;
}

.contact-block h3 {
  font-size: 2rem;
  color: #B1976B;
  margin-bottom: 1rem;
}

.contact-block p {
  font-size: 1.8rem;
  color: #444;
  line-height: 1.6;
}

.contact-link {
  font-size: 2rem;
  color: #161616;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #B1976B;
}

.location-map {
  height: 45rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.08);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-grid {
  position: relative;
}

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 35rem;
  }
  
  .content-cta h1 {
    font-size: 3rem;
    margin-bottom: 7.5rem;
  }

  .content-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 7.5rem;
  }

  .content-cta {
    width: 100%;
    padding-top: 7.5rem;
  }

  .content-cta p {
    width: 90%;
  }

  .cta-container {
    height: 90rem;
  }

  .intro-article {
    width: 100%;
    padding: 1rem;
  }

  .intro-box-one {
    flex-direction: column-reverse;
    width: 95%;
    padding-bottom: 5rem;
  }

  .intro-content-one, .intro-content-two {
    width: 95%;
    gap: 1rem;
    padding: 1rem;
  }

  .intro-content-one h2 {
    font-size: 2rem;
    text-align: center;
  }

  .intro-content-two p {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .intro-box-two {
    width: 95%;
  }


  .intro-photo {
      width: 100%;
      height: 100%;
    }

  .consultation-box {
      width: 90vw;
    }

  .consultation-description {
    margin: auto;
  }

  .consultation-box h3 {
    font-size: 2rem;
  }

  .consultation-box p {
    font-size: 1.6rem;
  }

  .konsultacje {
    padding: 1rem;
  }

    .consultation-header h2 {
    font-size: 2.4rem;
  }

    .consultation-header p {
    font-size: 1.8rem;
  }

  .forms-list li {
    min-width: 25rem;
  }

  .forms-list li div h3 {
    font-size: 2rem;
    padding-bottom: 2rem;
  }

  .consultation-forms h2 {
    font-size: 2.4rem;
  }

  .modal-content {
    width: 98%;
  }

  #modal-title {
    font-size: 3rem;
  }

  #modal-text {
    font-size: 1.8rem;
    padding: 0 2.5rem 2.5rem 2.5rem;
    line-height: 1.5;
  }

  .specialization-box h3, .specialization-box p, .specialization-box h4 {
    text-align: center;
  }
  
  .specialization-box h4 {
    margin-top: 2.5rem;
  }
}

@media (min-width:1025px) and (max-width: 1600px) {
  .content-cta p {
    min-width: 521px;
  }

  .nazwisko, .barbara {
    min-width: 747px;
  }

  .consultation-box {
    width: 100%;
    max-width: 53rem;
  }

  .consultation-header {
    margin: auto;
  }

  .consultation-description {
    margin: 2rem 5rem;
  }
}