@font-face {
  font-family: "Montserrat Bold";
  src: url("../fonts/Montserrat-Bold/Montserrat-Bold.woff2")
      format("woff2"),
    url("../fonts/Montserrat-Bold/Montserrat-Bold.woff") format("woff"),
    url("../fonts/Montserrat-Bold/Montserrat-Bold.ttf")
      format("truetype"),
    url("../fonts/Montserrat-Bold/Montserrat-Bold.eot")
      format("embedded-opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Regular";
  src: url("../fonts/Montserrat-Regular/Montserrat-Regular.woff2")
      format("woff2"),
    url("../fonts/Montserrat-Regular/Montserrat-Regular.woff") format("woff"),
    url("../fonts/Montserrat-Regular/Montserrat-Regular.ttf")
      format("truetype"),
    url("../fonts/Montserrat-Regular/Montserrat-Regular.eot")
      format("embedded-opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'StereoGothic900-Regular2';
    src: url("../fonts/StereoGothic900-Regular/StereoGothic900-Regular2.woff2")
      format("woff2"),
    url("../fonts/StereoGothic900-Regular/StereoGothic900-Regular2.woff") format("woff"),
    url("../fonts/StereoGothic900-Regular/StereoGothic900-Regular2.ttf")
      format("truetype"),
    url("../fonts/StereoGothic900-Regular/StereoGothic900-Regular2.eot")
      format("embedded-opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Шрифты */
  --font-base: "Montserrat Regular", sans-serif;
  --font-heading: "Montserrat Bold", sans-serif;

  /* Цвета */
  --color-bg: #f5f6f4;
  --color-btn: #1f2422;
  --color-text: #181a1b;
  --color-white: #ffffff;
  --color-heading: #1e1f1c;
}

input,
textarea,
select {
  outline: none;
  border: none;
  box-shadow: none;
  font-family: var(--font-base);
  font-size: 16px;
}

select,
option {
  color: inherit;
  font-family: inherit;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  /* scroll-behavior: smooth; */
}

body {
  min-width: 370px;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background-color: var(--color-bg);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 23px;
  color: var(--color-text);
}

body.hidden {
  overflow: hidden;
}

header,
footer {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

.grecaptcha-badge {
  display: none !important;
}

.container {
  margin: auto;
  max-width: 1920px;
  padding: 0 5%;
}

.section-map-fullwidth {
    margin-top: 130px;
}

.section-common {
  padding-top: 130px;
}

.section__wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  gap: 15px;
}

.decoration-inner {
  border-radius: 20px;
  position: relative;
  width: 50%;

}

.decoration-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.text__wrapper,
.decoration-inner {
  flex: 1;
}

h6,
h5,
h4,
h3,
h2,
h1,
.h6,
.h5,
.h4,
.h3,
.h2,
.h1 {
  margin: 0 0 25px 0;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-heading);
}

h1,
h2 {
  font-size: 48px;
  line-height: 56px;
}

h3 {
  font-size: 23px;
  line-height: 30px;
}

h4 {
  font-size: 18px;
  line-height: 26px;
}

p {
  margin: 0 0 25px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

a.btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle;
}

button {
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  -webkit-text-size-adjust: 100%;
  padding: 12px 38px;
  border: 1px solid var(--color-btn);
  border-radius: 50px;
  text-transform: uppercase;
  font-family: var(--font-base);
  transition: all 0.3s ease-in-out;
}

.btn-transparent {
  background-color: transparent;
  color: var(--color-btn);
}

.btn-transparent:hover {
  background-color: var(--color-btn);
  color: var(--color-white);
}

.btn-green {
    background-color: var(--color-btn);
    color: var(--color-white);
}

.btn-green:hover {
    background-color: var(--color-white);
    color: var(--color-btn);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: var(--color-bg);
    transition: box-shadow 0.3s ease;
    z-index: 90;
}

.header.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.header-logo__wrapper {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.header__logo {
  display: block;
  flex-shrink: 0;
  height: auto;
  max-width: 100%;
}

.header__menu {
    display: flex;
    justify-content: space-between;
}

.header__menu .menu__item{
  cursor: pointer;
}

.menu__item {
    padding: 30px 15px;
    text-transform: uppercase;
}

.hero {
    height: 100vh;
    padding-top: var(--header-height);
    background-image: url('assets/location.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    /* margin-bottom: 100px; */
}

.hero__top {
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  margin-top: 2%;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 80%; */
  width: 65%;
  justify-content: center;
}

.hero-text,
.hero-title,
.hero-subtitle {
  color: var(--color-white);
  text-align: center;
}

.hero-text {
  max-width: 800px;
}

.hero__wrapper {
  margin: 0 auto;
  max-width: 1920px;
  padding: 3vh 5% 4vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  align-items: center;
  justify-content: center;

}

.hero__bottom {
  display: flex;
  gap: 20px;
  height: 20%;
  width: 100%;
}

.hero__card {
  display: flex;
  gap: 10px;
  flex: 1 1 calc(33.333% - 20px); 
  background: var(--color-bg);
  border-radius: 20px;
  padding: 10px;
}

.hero__card img {
  width: 40%;
  border-radius: 10px;
}

.hero__card-text p {
    margin: 0;
}

.hero__card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block__wrapper {
    width: 75%;
    margin: auto auto;
    padding: 0 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block__top-img {
  max-height: 100px;
}

.hero__buttons {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.hero__button-about,
.hero__button-request {
    margin: 0 10px;
    border: none;
}

.hero__button-request {
  background-color: var(--color-white);
  color: var(--color-text);
}

.hero__button-request:hover {
  color: var(--color-white);
  background-color: var(--color-btn);
}

.pulse-btn {
  position: fixed;
  bottom: 80px;
  right: 70px;
  width: 70px;
  height: 70px;
  z-index: 100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pulse-icon {
  position: relative;
  z-index: 3;
  width: 40px;
  height: 40px;
}

.pulse-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-btn);
    z-index: 1;
    animation: circlePulse 1.5s infinite;
}

.pulse-wave {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(0,100,0,0.4);
    z-index: 0;
    animation: wavePulse 1.5s infinite;
}

@keyframes circlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wavePulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.block__wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.block-content {
    padding: 3% 0;
/*     margin-bottom: 25px; */
}

.img__wrapper {
    width: 50%;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

.decoration img {
    width: 100%;
}

/* .decoration-inner {
    margin-top: 130px;
} */

#yandex-map {
    overflow: hidden;
    width: 100%;
}

.decoration-inner img {
    width: 100%;
}

.decoration-double {
    margin-top: 130px;
    display: flex;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.flats__wrapper {
    display: grid;
    padding: 25px;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.flat__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.flat-img__wrapper {
  margin-bottom: 25px;
  max-height: 400px;
}

.flat-img__wrapper img {
  height: 100%;
}

.footer {
  font-size: 12px;
  line-height: 20px;
}

.footer__wrapper {
  display: flex;
  padding: 5% 5%;
  justify-content: space-between;
  align-items: stretch;
}

.footer-left {
  width: 65%;
  padding: 0 15px;
}

.footer-right {
  flex: 1;
  padding: 0 15px 0 30px;
}

.footer-right p {
  margin: 0;
}

.footer__title {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 23px;
  color: #000;
  margin-bottom: 10px;
}

.purchase__grid {
  padding: 3% 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.purchase__item {
  background: var(--color-bg-light, #f8f8f8);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 10px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 20px;
  transition: transform 0.3s ease;
}

.purchase__subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.purchase__heading {
  font-size: 30px;
  margin-bottom: 20px;
}

.purchase__btn {
  align-self: center;
  margin-top: auto;
}

/* .mortgage__item {
  min-height: 80px;
  max-width: 360px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.mortgage__logo {
  max-width: 200px;
  max-height: 60px;
  object-fit: contain;
} */

.section__wrapper--mortgage {
  display: grid;
  grid-template-columns: 1fr 500px; /* текст слева, банки справа */
  gap: 60px;
  align-items: start;
}

.banks__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-card {
  background: var(--color-bg-light, #f8f8f8);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 10px;
  padding: 30px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bank-card img {
  max-height: 40px;
  display: block;
}

.faq__wrapper {
  width: 100%;
}

.faq__item {
  width: 100%;
  border: 1px solid var(--color-btn);
  border-radius: 10px;
  margin-bottom: 15px;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--color-btn);
}

.faq__icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq__answer {
  display: none;
  padding: 0 15px 15px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.faq__item.active .faq__answer {
  display: block;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.contacts {
    display: flex;
    align-items: center;
    padding-top: 130px;
}

.contacts__street {
    text-align: center;
}

.contacts__content {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts__image {
    width: 50%;
}

.form-agreement {
    text-align: center;
    line-height: 1.4;
    color: #555;
    font-size: 12px;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.wpcf7 {
  width: 60%;
}

.modal__content .wpcf7 {
  width: 100%;
}

.wpcf7 form.invalid .wpcf7-response-output {
  margin-top: 10px;
}

.modal-form input,
.contact-form input {
  -webkit-appearance: none;
  background: transparent;
  border-bottom: 1px solid #7777;
  padding: 10px 0;
  margin-bottom: 20px;
}

.modal-form .form-button {
  width: 100%;
  align-self: center;
  margin-top: 30px;
}

.contact-form .form-button {
  width: fit-content;
  align-self: center;
  margin-top: 30px;
}

.modal-form .form-button p,
.contact-form .form-button p {
  margin: 0;
}

.modal-form .form-button input,
.contact-form .form-button input {
  padding: 12px 38px;
  border: 1px solid var(--color-btn);
  cursor: pointer;
  background-color: var(--color-btn);
}


.modal-form .form-button input:hover,
.contact-form .form-button input:hover {
  background-color: var(--color-white);
}

.modal__form .wpcf7-form-content-wrap,
.contact-form .wpcf7-form-content-wrap {
    display: block;
    height: 100%;
}

.modal-form .wpcf7-form-control
.contact-form .wpcf7-form-control {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
}

.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-input,
.modal-form input,
.contact-form input,
.wpcf7-not-valid .contact-input,
input.wpcf7-not-valid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


.contacts__address{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 25px;
}

.contacts__address p {
  text-transform: uppercase;
  font-size: 38px;
  line-height: 40px;
  color: var(--color-heading);
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  padding: 50px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: #333;
  width: 44px;
  height: 44px;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.flat__title {
  margin-top: auto;
}

.flat__title,
.modal__title {
  text-align: center;
}

.modal__form button {
  margin-top: 30px;
  width: fit-content;
  align-self: center;
}

@media (max-width: 1240px) {
  .pulse-btn {
    bottom: 50px;
    right: 40px;
  }
}

@media (max-width: 1199px) {
  .section-common,
  .section-map-fullwidth {
    padding-top: 90px;
  }
  h1,
  h2 {
    font-size: clamp(20px, 3.336vw, 40px);
    line-height: 1.1;
  }
  .contacts__address p {
    font-size: 32px;
    line-height: 38px;
  }
  .block__wrapper {
    width: 80%;
  }
  .pulse-btn {
    bottom: 40px;
    right: 40px;
  }
}

@media (max-width: 1100px) {
  .header {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .nav {
    display: none;
  }
  .hero__top {
    width: 80%;
  }
  .flats__wrapper {
    padding: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .flat-img__wrapper {
    margin-bottom: 25px;
    width: 100%;
    max-height: unset;
  }
  .flat-img__wrapper img {
    height: auto;
    width: 100%;
    display: block;
    object-fit: cover;
  }
}

@media (max-width: 991px) {
  .section-common,
  .section-map-fullwidth {
    padding-top: 75px;
  }
  .section__wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .decoration-inner {
    width: 100%;
    position: static;
  }
  .decoration-inner img {
    position: static;
  }
  .text-order {
    order: -1;
  }
  .service-decoration {
    height: 500px;
  }
  .section__wrapper--mortgage {
    display: flex;
    flex-direction: column;
  }
  .banks__wrapper {
    width: 100%;
    padding: 3% 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .hero {
    height: unset;
    min-height: 100vh;
  }
  .hero__top {
    width: 100%;
    height: 80%;
  }
  .contacts {
    padding-top: 75px;
    flex-direction: column;
    gap: 50px;
  }
  .contacts__content,
  .contacts__image {
    width: 100%;
  }
  .contacts__image img {
    width: 100%;
  }
  .block__wrapper {
    width: 100%;
  }
  .footer__wrapper {
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
  }
  .footer-left,
  .footer-right {
    width: 100%;
    padding: 0 15px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-left p {
    margin: 0;
    text-align: center;
  }
  .footer-left img {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 22px;
  }
  h4 {
    font-size: 16px;
    line-height: 23px;
  }
  .section-common,
  .section-map-fullwidth {
    padding-top: 50px;
  }
  .block__wrapper button {
    align-self: center;
  }
  .header {
    justify-content: center;
    position: static;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .header__btn {
    display: none;
  }
  .hero__wrapper {
    width: 90%;
  }
  /* .hero__buttons {
    flex-direction: column;
    gap: 10px;
  } */
  .hero__top {
    padding: 30px 20px;
  }
  .hero__card {
    flex: 0 1 calc(50% - 20px);
    height: 117px;
  }
  .hero__bottom {
    flex-wrap: wrap;
  }
  .flats__wrapper {
    padding: 15px;
    grid-template-columns: 1fr;
  }
/*   .decoration-inner,
.decoration-double {
  margin-top: 50px;
}
.decoration-double {
  display: flex;
  flex-direction: column;
  gap: 10px;
} */
  .img__wrapper {
    width: 100%;
  }
  .contacts {
    padding-top: 50px;
  }
  .contacts__content{
    width: 100%;
  }
  .wpcf7 {
    width: 100%;
  }
  .contacts__content .contact-form {
    width: 100%;
    padding: 30px;
  }
  .contacts__title {
    font-size: 16px;
    line-height: 20px;
  }
  .contacts__address p {
    font-size: 20px;
    line-height: 30px;
  }
  
  .pulse-circle {
    width: 70px;
    height: 70px;
  }
  .pulse-wave {
    width: 80px;
    height: 80px;
  }
  .modal__content {
    width: 90%;
    padding: 30px;
  }
  .modal__title {
    font-size: 16px;
    line-height: 23px;
  }
}

@media (max-width: 602px) {
  .hero__card {
    flex: 1 1 calc(100%);

  }
  .hero__wrapper {
    padding: 3vh 2% 4vh;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero__buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (hover: hover) and (pointer: fine) {
    .mortgage__item:hover,
    .purchase__item:hover {
        transform: translateY(-4px);
    }
}
