

.popup-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    display: none;

    z-index: 1000;

    overflow-y: auto;

  }

  

  

  /* Общие стили для попапов */

  .popup {

    display: none;

    position: fixed; 

    z-index: 1001;

    background: #fff;

    padding: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    max-width: 650px;

    width: 100%;

  }

  

  /* Центрирование попапа */

  .popup-center { 

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

  }

  

  /* Попап у верхней части экрана */
  .popup-overlay {
    background: none;
  }
  .popup-top {
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #F7F2EB;
    width: calc(100% - 60px);
    box-shadow: none;
    padding: 16px 16px 50px 16px;
  }
  .popup-top .popup-content.mob-content p {
    font-size: 26px;
    font-weight: 500;
    line-height: 120%;
    margin: 0 0 40px;
  }
  ul#mob-menu {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  ul#mob-menu li a,
  a.search_btn_mob {
    display: block;
    text-align: center;
    background: #800000;
    color: #FEFCE5;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    padding: 15px 0;
    border-radius: 5px;
  }
  a.search_btn_mob {
    padding: 12px 0;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-home.menu-item-94 a {
    position: relative;
  }
  li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-home.menu-item-94 a::before {
    position: absolute;
    content: url("data:image/svg+xml,%3csvg width='37' height='37' viewBox='0 0 37 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21.2329 20.5907C21.5716 20.252 21.5716 19.703 21.2329 19.3643C20.8943 19.0256 20.3452 19.0256 20.0066 19.3643L17.7934 21.5775L16.9934 20.7775C16.6547 20.4388 16.1056 20.4388 15.767 20.7775C15.4283 21.1162 15.4283 21.6652 15.767 22.0039L17.1802 23.4171C17.5188 23.7557 18.0679 23.7557 18.4066 23.4171L21.2329 20.5907Z' fill='%23FEFCE5'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.4349 3.74231C18.865 3.37756 18.135 3.37756 17.5651 3.74231L3.11192 12.9923C2.30514 13.5087 2.06969 14.5813 2.58603 15.388C3.10237 16.1948 4.17498 16.4303 4.98177 15.9139L6.35934 15.0323V28.9062C6.35934 31.4606 8.43003 33.5312 10.9843 33.5312H26.0156C28.5699 33.5312 30.6406 31.4606 30.6406 28.9062V15.0323L32.0182 15.9139C32.825 16.4303 33.8976 16.1948 34.4139 15.388C34.9303 14.5813 34.6948 13.5087 33.888 12.9923L19.4349 3.74231ZM24.8593 21.3906C24.8593 24.9028 22.0122 27.75 18.5 27.75C14.9878 27.75 12.1406 24.9028 12.1406 21.3906C12.1406 17.8784 14.9878 15.0312 18.5 15.0312C22.0122 15.0312 24.8593 17.8784 24.8593 21.3906Z' fill='%23FEFCE5'/%3e%3c/svg%3e");
    top: 5px;
    margin-left: -47px;
  }

  .popup-center {
    width: calc(100% - 60px);
  }
  .popup-content.thank {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px
  }
  .popup-content.thank h2 {
    font-size: 36px;
    line-height: 120%;
    font-weight: 700;
    color: #111;
  }
  .popup-content.thank p {
    font-size: 24px;
    line-height: 120%;
    font-weight: 500;
    color: #111;
    margin: 0;
  }
  .popup-content.thank a {
    font-size: 24px;
    line-height: 120%;
    font-weight: 700;
    color: #800000;
    margin: 0;
    display: block;
    text-decoration: underline;
  }

  /* Кнопка закрытия */

  .close-popup {

    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    position: absolute;

    top: 19px;

    right: 17px;

  } 
  .close-popup svg {
    width: 21px;
    height: 21px;
  }
  @media (max-width: 1024px) {
    .popup-content.thank h2 {
      font-size: 20px;
      text-align: center;
    }
    .popup-content.thank p {
      font-size: 14px;
    }
    .popup-content.thank a {
      font-size: 18px;
    }
  }