.modal {
    position: fixed; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(50px);
    z-index: 1050;
    opacity: 0; 
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; 
    pointer-events: none;
    margin: 0;
    padding: 0;
}


  .modal:target {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
  }

  @media (min-width: 576px) {
    .modal-dialog {
      max-width: 350px;
      margin: 5vh auto;
    }
  }

  .modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border-radius: 0px;
    outline: 0;
    border: 1px solid #f5f5f5;
  }

  .modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 20px 25px 5px;
    /* border-bottom: 1px solid #eceeef; */
  }

  .modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 18px;
      font-weight: bold;
  }

  .close {
    float: right;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    text-decoration: none;
  }

  .close:focus,
  .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
  }

  .modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 25px 25px 22px;
    line-height: 1.4;
    overflow: auto;
    font-size: 14px;
  }

.modal-input {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 0px;
    outline: none !important;
    border: 1px solid #eee;
    padding: 10px;
    font-size: 14px;
    font-family: 'Golos', sans-serif;
    transition: 0.3s;
}

.modal-input:focus {
    border: 1px solid #d3d3d3;
    transition: 0.3s;
}

.modal-button {
    border-radius: 0px;
    height: 50px;
    background: var(--accent);
    transition: 0.3s;
    color: #fff;
    font-weight: 700;
    border: none;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

.modal-button-dop {
    border-radius: 0px;
    height: 50px;
    width: 100%;
    display: block;
    text-align: center;
    background: var(--light-brown);
    transition: 0.3s;
    font-weight: 700 !important;
    border: none;
    width: 100%;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    padding-top: 16px;
}



.modal-body a {
    color: #000;
    transition: 0.3s;
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--accent);
    transition: 0.3s;
}

.reg-accept { 
    margin-top: 25px;
    opacity: 0.6;
}

.pass-accept { 
    margin-top: 15px;
    opacity: 0.6;
}

.search-dialog {
  max-width: 600px;
}

.search-button {
    position: absolute;
    margin-left: -34px;
    margin-top: 12px;
    border: none;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.modal-input-search {
    margin-bottom: 5px;
}

.mt-20 {
  margin-top: 20px;
}

.search-tips {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.search-tip {
  background: #fbf9f9;
  border-radius: 50px;
  padding: 12px 20px;
  color: #000;
  transition: 0.3s;
}

.search-tip:hover {
  background: var(--light-brown);
  transition: 0.3s;
  color: #000 !important;
}

.phone-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .country-select {
    padding: 10px 30px 10px 10px; /* справа добавлен отступ */
    font-size: 15px;
    font-family: 'Mulish', sans-serif;
    border: 1px solid #eee;
    border-radius: 0px;
    outline: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath fill='%23666' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .phone-input {
    flex: 1;
    margin-bottom: 0; /* уже учтён в wrapper */
  }

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  width: 940px;
  padding-top: 20px;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Показываем при hover */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content-about {
  width: 180px;
}

.dropdown-inside {
  border-radius: 0px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 25px;
  box-shadow: 0 0 30px rgba(0,0,0,.1);
}

.dropdown-inside a {
  color: #222;
  text-shadow: none;
  text-transform: none;
  display: block;
  width: calc(33% - 14px);
  text-align: left;
  transition: 0.3s;
}

.dropdown-inside a:hover {
  transform: translateX(3px);
  transition: 0.3s;
}

.dropdown-content-about a {
  width: 100%;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content { display: block; }
