.contact_main {
  position: relative;
  padding: 12rem 0px;
  background-color: #fff;
}
.contact_main .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
}
.contact_main .text {
  flex: 1;
  min-width: 0px;
  max-width: 64rem;
}
.contact_main .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4.8rem;
}
.contact_main .cards li {
  padding: 2.8rem 2.8rem 3rem;
  border-radius: 1.6rem;
  border: 1px solid var(--light);
  background-color: var(--light);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s, background-color 0.35s;
}
.contact_main .cards li:hover {
  transform: translateY(-0.6rem);
  border-color: rgba(11, 61, 135, 0.3);
  background-color: #fff;
  box-shadow: 0px 2rem 5rem rgba(11, 20, 46, 0.08);
}
.contact_main .cards li.wide {
  grid-column: 1 / -1;
}
.contact_main .cards i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0px 0.4rem 1.2rem rgba(11, 20, 46, 0.06);
}
.contact_main .cards i img {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
}
.contact_main .cards span {
  display: block;
  margin-top: 2rem;
  color: var(--text2);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact_main .cards a,
.contact_main .cards p {
  display: block;
  margin-top: 0.8rem;
  color: var(--title);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 2.5rem;
  word-break: break-word;
  transition: color 0.3s;
}
.contact_main .cards a + a {
  margin-top: 0.4rem;
}
.contact_main .cards a:hover {
  color: var(--primary_dark);
}
.contact_main .cards .small {
  margin-top: 0.8rem;
  color: var(--text);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 2.1rem;
}
.contact_main .cards a.small {
  color: var(--primary);
  font-weight: 600;
}
.contact_main .form {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex-shrink: 0;
  width: 66rem;
  padding: 5rem 5rem 5.2rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary_dark) 45%, #04112d 100%);
  box-shadow: 0px 3rem 8rem rgba(11, 20, 46, 0.18);
}
.contact_main .form::before {
  content: '';
  position: absolute;
  right: -14rem;
  top: -14rem;
  z-index: -1;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 0px 6rem rgba(255, 255, 255, 0.03), 0px 0px 0px 12rem rgba(255, 255, 255, 0.02);
}
.contact_main .form_head h3 {
  max-width: 46rem;
  color: #fff;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 4rem;
}
.contact_main .form_head p {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  line-height: 2.5rem;
}
.contact_main .form_head .check_list {
  margin-top: 1.8rem;
}
.contact_main .form_head .check_list li {
  font-size: 1.5rem;
  line-height: 2.4rem;
}
.contact_main .form_head .check_list li + li {
  margin-top: 0.6rem;
}
.contact_main .fields {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.contact_main .fields .full {
  grid-column: 1 / -1;
}
.contact_main .fields .form_field {
  border-color: transparent;
}
.contact_main .fields textarea {
  height: 11rem;
}
.contact_main .upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  height: 5.2rem;
  padding: 0px 0.8rem 0px 1.8rem;
  border-radius: 0.6rem;
  cursor: pointer;
  color: var(--text2);
  background-color: #fff;
  font-size: 1.5rem;
}
.contact_main .upload input {
  display: none;
}
.contact_main .upload span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.contact_main .upload.has_file span {
  color: var(--title);
}
.contact_main .upload i {
  flex-shrink: 0;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 0.5rem;
  background: var(--primary) url(../img/icon-upload-w.svg) no-repeat center / 1.8rem;
  transition: background-color 0.3s;
}
.contact_main .upload:hover i {
  background-color: var(--primary_dark);
}
.contact_main .form .btn {
  width: 100%;
  margin-top: 2rem;
  background-color: var(--accent);
}
.contact_main .form .btn:hover {
  color: var(--title);
  background-color: #fff;
}

.contact_main .form.sent .fields,
.contact_main .form.sent .btn,
.contact_main .form.sent .wpcf7-response-output {
  display: none;
}
.contact_main .sent_msg {
  display: none;
  position: relative;
  margin-top: 3rem;
  padding: 2.8rem 3rem 2.8rem 9rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
}
.contact_main .form.sent .sent_msg {
  display: block;
}
.contact_main .sent_msg::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 2.8rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4.2 3.8 7 9 1'/%3E%3C/svg%3E") no-repeat center / 1.6rem;
}
.contact_main .sent_msg strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 2rem;
  line-height: 2.8rem;
}
.contact_main .sent_msg p {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 2.4rem;
}
.contact_main .wpcf7 form .wpcf7-response-output {
  color: #fff;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .contact_main .content {
    flex-direction: column;
    align-items: stretch;
    gap: 6rem;
  }
  .contact_main .text {
    max-width: none;
  }
  .contact_main .form {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .contact_main {
    padding: 60px 0px;
  }
  .contact_main .text{
    max-width: unset;
  }
  .contact_main .content {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 36px;
  }
  .contact_main .cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }
  .contact_main .cards li.wide {
    grid-column: auto;
  }
  .contact_main .cards li {
    padding: 20px;
    border-radius: 12px;
  }
  .contact_main .cards i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }
  .contact_main .cards i img {
    width: 21px;
    height: 21px;
  }
  .contact_main .cards span {
    margin-top: 14px;
    font-size: 12px;
    line-height: 16px;
  }
  .contact_main .cards a,
  .contact_main .cards p {
    margin-top: 6px;
    font-size: 16px;
    line-height: 23px;
  }
  .contact_main .cards .small {
    font-size: 13px;
    line-height: 20px;
  }
  .contact_main .form {
    width: 100%;
    padding: 30px 20px 32px;
    border-radius: 14px;
  }
  .contact_main .form_head h3 {
    font-size: 23px;
    line-height: 30px;
  }
  .contact_main .form_head p {
    font-size: 14px;
    line-height: 22px;
  }
  .contact_main .form_head .check_list li {
    font-size: 14px;
    line-height: 22px;
  }
  .contact_main .fields {
    grid-template-columns: minmax(0px, 1fr);
    gap: 10px;
    margin-top: 22px;
  }
  .contact_main .fields .full {
    grid-column: auto;
  }
  .contact_main .fields textarea {
    height: 110px;
  }
  .contact_main .upload {
    height: 46px;
    padding: 0px 6px 0px 14px;
    font-size: 13px;
  }
  .contact_main .upload i {
    width: 34px;
    height: 34px;
    background-size: 16px;
  }
  .contact_main .form .btn {
    margin-top: 16px;
  }
  .contact_main .sent_msg {
    margin-top: 20px;
    padding: 20px 18px 20px 66px;
    border-radius: 10px;
  }
  .contact_main .sent_msg::before {
    left: 18px;
    top: 20px;
    width: 34px;
    height: 34px;
    background-size: 13px;
  }
  .contact_main .sent_msg strong {
    font-size: 16px;
    line-height: 22px;
  }
  .contact_main .sent_msg p {
    font-size: 14px;
    line-height: 21px;
  }
}

.contact_main .wpcf7 {
  width: 100%;
}
.contact_main .fields > .wpcf7-form-control-wrap {
  min-width: 0;
}
.contact_main .fields > .wpcf7-form-control-wrap:has(.full) {
  grid-column: 1 / -1;
}
.contact_main .upload .wpcf7-form-control-wrap {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


.contact_visit {
  position: relative;
  padding: 11rem 0px 12rem;
  background-color: var(--light);
}
.contact_visit .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8rem;
}
.contact_visit .head .tcon {
  flex-shrink: 0;
}
.contact_visit .head .intro {
  max-width: 60rem;
  padding-bottom: 0.4rem;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 2.8rem;
}
.contact_visit .stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62rem;
  margin-top: 5.6rem;
  padding: 4rem;
  overflow: hidden;
  border-radius: 2rem;
  background-color: #dfe5ea;
  box-shadow: 0px 2.4rem 6rem rgba(11, 20, 46, 0.08);
}
.contact_visit .map {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.contact_visit .map::after {
  content: '';
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(242, 245, 247, 0.55) 0%, rgba(242, 245, 247, 0) 42%), rgba(11, 61, 135, 0.08);
  mix-blend-mode: multiply;
}
.contact_visit .frame {
  position: absolute;
  left: 0px;
  top: -12rem;
  width: 100%;
  height: calc(100% + 12rem);
  background: #dfe5ea url(../img/map-static.webp) no-repeat center / cover;
  filter: grayscale(1) contrast(1.02) brightness(1.04);
}
.contact_visit .frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0px;
}
.contact_visit .marker {
  position: absolute;
  left: 50%;
  top: calc(50% - 6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.contact_visit .marker .label {
  margin-bottom: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.6rem;
  color: #fff;
  background-color: var(--title);
  box-shadow: 0px 0.8rem 2rem rgba(11, 20, 46, 0.25);
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.8rem;
}
.contact_visit .marker i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border: 0.4rem solid #fff;
  border-radius: 50% 50% 50% 0px;
  background-color: var(--primary);
  box-shadow: 0px 1rem 2.4rem rgba(11, 61, 135, 0.35);
  transform: rotate(-45deg);
}
.contact_visit .marker i img {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  transform: rotate(45deg);
}
.contact_visit .marker::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  z-index: -1;
  width: 2.8rem;
  height: 2.8rem;
  margin-left: -1.4rem;
  border-radius: 50%;
  background-color: rgba(11, 61, 135, 0.28);
  animation: contact_visit_pulse 2.4s ease-out infinite;
}
@keyframes contact_visit_pulse {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.contact_visit .card {
  position: relative;
  z-index: 3;
  width: 46rem;
  overflow: hidden;
  border-radius: 1.6rem;
  background-color: #fff;
  box-shadow: 0px 2.4rem 6rem rgba(11, 20, 46, 0.18);
}
.contact_visit .card_img {
  position: relative;
  height: 17rem;
}
.contact_visit .card_img .badge {
  position: absolute;
  left: 2rem;
  bottom: 1.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.6rem;
  color: #fff;
  background-color: rgba(4, 17, 45, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.8rem;
}
.contact_visit .card_body {
  padding: 2.8rem 3.2rem 3.2rem;
}
.contact_visit .card_body h3 {
  color: var(--title);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 2.8rem;
}
.contact_visit .rows {
  margin-top: 0.8rem;
}
.contact_visit .rows li {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 1.6rem 0px;
  border-bottom: 1px solid var(--line);
}
.contact_visit .rows i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  background-color: var(--light);
}
.contact_visit .rows i img {
  display: block;
  width: 2rem;
  height: 2rem;
}
.contact_visit .rows span {
  display: block;
  color: var(--text2);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact_visit .rows p {
  margin-top: 0.4rem;
  color: var(--title);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 2.2rem;
}
.contact_visit .rows a {
  font-weight: 600;
  transition: color 0.3s;
}
.contact_visit .rows a:hover {
  color: var(--primary);
}
.contact_visit .btns {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.contact_visit .btns a {
  flex: 1;
  height: 5.2rem;
  padding: 0px 1.6rem;
}
.contact_visit .photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 2.4rem;
  margin-top: 2.4rem;
}
.contact_visit .photos .img {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 1.4rem;
  transition: transform 0.35s, box-shadow 0.35s;
}
.contact_visit .photos .img::before {
  content: '';
  position: absolute;
  left: 0px;
  bottom: 0px;
  z-index: 2;
  width: 100%;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 17, 45, 0) 0%, rgba(4, 17, 45, 0.78) 100%);
}
.contact_visit .photos .img span {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.8rem;
  z-index: 3;
  color: #fff;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 2.2rem;
}
.contact_visit .photos .img:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0px 1.6rem 3.6rem rgba(11, 20, 46, 0.14);
}
.contact_visit .photos .img:hover img {
  transform: scale(1.05);
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .contact_visit .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .contact_visit .head .intro {
    max-width: none;
  }
  .contact_visit .stage {
    min-height: 60rem;
    padding: 3rem;
  }
  .contact_visit .card {
    width: 44rem;
  }
  .contact_visit .photos {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .contact_visit {
    padding: 60px 0px 64px;
  }
  .contact_visit .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .contact_visit .head .intro {
    max-width: none;
    padding-bottom: 0px;
    font-size: 15px;
    line-height: 1.65;
  }
  .contact_visit .stage {
    display: block;
    min-height: 0px;
    margin-top: 28px;
    padding: 0px;
    overflow: visible;
    border-radius: 0px;
    background-color: transparent;
    box-shadow: none;
  }
  .contact_visit .map {
    position: relative;
    height: 280px;
    border-radius: 14px;
  }
  .contact_visit .map::after {
    background: rgba(11, 61, 135, 0.08);
  }
  .contact_visit .frame {
    top: -100px;
    height: calc(100% + 100px);
  }
  .contact_visit .marker {
    left: 50%;
    top: calc(50% - 50px);
  }
  .contact_visit .marker .label {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 16px;
  }
  .contact_visit .marker i {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  .contact_visit .marker i img {
    width: 18px;
    height: 18px;
  }
  .contact_visit .card {
    width: auto;
    margin: -40px 12px 0px;
    border-radius: 14px;
  }
  .contact_visit .card_img {
    height: 150px;
  }
  .contact_visit .card_img .badge {
    left: 14px;
    bottom: 12px;
    font-size: 12px;
    line-height: 16px;
  }
  .contact_visit .card_body {
    padding: 20px 18px 22px;
  }
  .contact_visit .card_body h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .contact_visit .rows li {
    gap: 12px;
    padding: 12px 0px;
  }
  .contact_visit .rows i {
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }
  .contact_visit .rows i img {
    width: 18px;
    height: 18px;
  }
  .contact_visit .rows span {
    font-size: 11px;
    line-height: 15px;
  }
  .contact_visit .rows p {
    font-size: 14px;
    line-height: 20px;
  }
  .contact_visit .btns {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .contact_visit .btns a {
    flex: none;
    width: 100%;
    height: 48px;
  }
  .contact_visit .photos {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 12px;
    margin-top: 24px;
  }
  .contact_visit .photos .img {
    border-radius: 10px;
  }
  .contact_visit .photos .img span {
    left: 10px;
    right: 10px;
    bottom: 9px;
    font-size: 12px;
    line-height: 16px;
  }
}
