.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#overlaythank {
  align-items: center;
}

#thankyouPopup {
  max-width: 990px;
  background-color: #FFFBF1;
  margin: 0 16px;
}

.popup {
  display: none;
  position: relative;
  width: 100%;
  background: var(--Black);
  padding: 20px 16px 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.popup-content {
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.popup-content .site-branding {
  display: flex;
  margin-bottom: 50px;
}

.popup-content ul#primary-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 30px;
  margin-bottom: 40px;
}

.popup-content ul#primary-menu .menu-item a {
  color: #F6F2E7;
  font-size: 22px;
  font-weight: 500;
  line-height: 90%;
}

#popup1 .close {
  top: 20px;
  right: 16px;
}

#thankyouPopup .popup-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 40px 40px;
}

#thankyouPopup {
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
}

#thankyouPopup .close {
  right: 20px;
  top: 20px;
}

.popup-content-l.popup-content-inner {
  text-align: left;
}

.popup-content-inner h2 {
  font-size: clamp(1.75rem, 1.5122rem + 0.9756vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  line-height: normal;
}

.popup-content-inner p {
  font-size: clamp(1rem, 0.8415rem + 0.6504vw, 1.5rem);
  margin-bottom: clamp(1.875rem, 1.6768rem + 0.8130vw, 2.5rem);
}

a.popup-btn {
  display: inline-block;
  padding: 18px 32px;
  background-color: var(--Accent);
  color: var(--White);
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  font-weight: 700;
  line-height: normal;
  border-radius: 15px;
  border: 1px solid var(--Accent);
  transition: 0.3s;
}

a.popup-btn:honer {
  color: var(--Accent);
  background-color: transparent;
  transition: 0.3s;
}

#overlayvideo,
#overlayform {
  align-items: center;
  padding: 0 clamp(1rem, -3.6372rem + 19.0244vw, 15.625rem);
}

#videoPopup {
  padding: 0px;
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  background-color: transparent;
}

#videoPopup .close {
  top: -45px;
}

#overlayvideo .popup-content {
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  overflow: hidden;
  background-color: var(--White);
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

#overlayvideo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#formPopup {
  background-color: #FFFBF1;
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  padding: 80px 30px 50px;
  max-width: 720px;
}

#formPopup .popup-content {
  text-align: left;
}

#overlayform h2.block-title {
  font-size: clamp(1.5rem, 1.1829rem + 1.3008vw, 2.5rem);
  margin-bottom: 20px;
  line-height: normal;
}

#overlayform p.block_text {
  font-size: clamp(0.938rem, 0.9183rem + 0.0807vw, 1rem);
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
  font-weight: 500;
}

#formPopup .close {
  top: 20px;
  right: 20px;
}
#phone-icon {
  display: flex;
  position: fixed;
  bottom: 70px;
  right: 50px;
  z-index: 1000;
}
.phone-icon .ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(226, 177, 56, 0.5); /* Цвет как у фона иконки */
  animation: ripple-animation 2s infinite ease-out;
  top: 0;
  left: 0;
  z-index: 1;
}

.phone-icon .ripple:nth-child(2) {
  animation-delay: 0.5s;
}

.phone-icon .ripple:nth-child(3) {
  animation-delay: 1s;
}

@keyframes ripple-animation {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
svg.call {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  svg.call {
    width: 50px;
    height: 50px;
  }
  #phone-icon {
    bottom: 50px;
    right: 20px;
  }
  #formPopup {
    padding: 70px 16px 30px;
  }

  #thankyouPopup .popup-content {
    flex-direction: column;
    row-gap: 30px;
    padding: 60px 20px 40px;
  }

  #thankyouPopup {
    padding: 0;
  }

  .popup-btn {
    width: 100%;
    text-align: center;
  }


}