@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
button {
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a,
a:visited {
  color: #fff;
  text-decoration: none;
}

.lock {
  overflow: hidden;
}

.header {
  width: 95%;
  margin: 10px 40px;
  position: absolute;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__img {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  height: 100%;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.header__nav {
  z-index: 100;
}

.header__nav-list a:hover {
  color: #95b46a;
  transition: color 0.3s ease;
}

.header__nav-btn {
  border: none;
  background-color: #95b46a;
  color: #fff;
  padding: 7px 25px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header__nav-drop {
  position: absolute;
  top: 100%;
  list-style: none;
  padding: 2px 0;
  margin: 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 10;
}

.header__nav-drop li a {
  padding: 10px;
  color: #ffffff;
}

.header__nav-list li:hover > .header__nav-drop {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__nav-btn:hover {
  background-color: #ffffff;
  color: #95b46a;
}

.header__nav-btn-language {
  color: #819b57;
  padding: 7px 10px;
  background-color: #fff;
}

.header__nav-btn-language:hover {
  background: #95b46a;
  color: #ffffff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-evenly;
  width: 25px;
  height: 25px;
  cursor: pointer;
  z-index: 2000;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.section-main {
  height: 100vh;
  background-image:
    linear-gradient(
      84deg,
      rgba(29, 29, 29, 0.592) 2.03%,
      rgba(15, 15, 15, 0.18) 58.46%,
      rgba(18, 18, 17, 0) 90.36%
    ),
    url(../images/house_main.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  border-radius: 0 0 50px 50px;
  display: grid;
  align-items: center;
}

.section-main::after {
  content: "";
  position: absolute;
  background-color: #819b57;
  inset: 0;
  z-index: -1;
}

.section-main__text {
  display: grid;
  gap: 30px;
  align-items: flex-end;
  text-align: center;
  margin: 0 auto;
  width: 60%;

  padding: 15% 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-main__header {
  color: #fff;
  font-size: 2.78vw;
  font-weight: 600;
  text-shadow: 0px 0px 2px #000000;
}

.section-main__span {
  color: #819b57;
}
.section-main__text-logo {
  font-size: 3.05vw;
  color: white;
  text-shadow: 0px 0px 2px #000000;
}
.section-main__text-span {
  color: #819b57;
}
.section-square {
  color: #fff;
  width: 100%;
  background-color: #819b57;
  border-radius: 0 0 50px 50px;
  padding-top: 10px;
}

.section-square__subtext {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
}

.section-square__parameters {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  justify-items: center;
  font-size: 48px;
  padding: 20px 0;
}

.section-square__line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border: none;
  color: #fff;
  align-self: center;
}

.section-title__black {
  color: #000 !important;
}

.section-title {
  font-size: 54px;
  font-weight: 500;
  color: #95b46a;
}

.section {
  margin: 60px 130px;
}

.section-about__inform {
  font-size: 1.3vw;
  padding-top: 30px;
  display: flex;
  height: 100%;
  justify-content: space-between;
  gap: 60px;
}

.section-about__text {
  flex: 1.5;
  text-align: justify;
}

.section-about__text-p {
  padding: 30px 0 50px 0;
}

.section-about__img {
  background-image: url(../images/modular__about.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 500px;  */
  border-radius: 10px;
  flex: 1;
}

.section-about__button {
  background-color: #95b46a;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-mob {
  display: none;
}

.section-about__button:hover {
  background-color: #7d9c59;
}

.section-subtutitle {
  font-size: 1.4vw;
  padding-top: 20px;
}

.section-stages__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  column-gap: 115px;
  row-gap: 50px;
  max-width: 1110px;
}

.section-stages__card {
  padding-top: 5px;
  color: #292929;
  border-top: 2px solid #95b46a;
}

.section-stages__card-title {
  font-size: 28px;
  padding-top: 20px;
  font-weight: 600;
  width: 260px;
  color: #000;
}

.section-stages__card-subtitle {
  padding-top: 10px;
}

.section-frame__subtutitle {
  font-size: 1.4vw;
  margin-top: 20px;
}

.section-frame__content {
  margin-top: 60px;
  /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    place-items: center;
    flex-wrap: wrap; */
  display: flex;
  justify-content: center;
  gap: 70px;
}

.section-frame__card {
  background-color: #e8e6e6;
  border-radius: 20px;
}

.section-frame__card-img {
  border-radius: 20px 20px 0 0;
  height: 240px;
  width: 100%;
  max-width: 430px;
  max-height: 60%;
  object-fit: cover;
}

.section-frame__card-text {
  display: flex;
  font-weight: 500;
  font-size: 22px;
  color: #95b46a;
  text-align: center;
  align-items: center;
  gap: 5px;
  margin: 10px;
}

.section-frame__card-list {
  list-style-type: none;
  padding: 0;
  line-height: 1.7;
  margin: 10px;
  margin-top: 0;
}

.section-frame__card-item {
  position: relative;
  padding-left: 20px;
}

.section-frame__card-item::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: #95b46a;
  font-weight: 500;
}

/* .section-frame__card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 230px;
    right: 0;
    bottom: 0;
    width: 2px;
    background-color: #95b46a;
    height: calc(100% - 200px);
    margin: auto 0;
} */

.section-projects {
  background-color: #e8e6e6;
  /* height: 100vh; */
}

.section-project__card {
  border-bottom: 2px solid black;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-projects__container {
  padding: 60px 130px;
}

.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: #95b46a;
}

.section-projects__content {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 30px 0;
}
.section-project__card-img-wrapper {
  position: relative;
}

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: #000000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.swiper-pagination {
  display: none;
}

.section-project__card-img {
  border-radius: 30px;
  width: 100%;
  height: 320px;
}
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.gallery-modal.active {
  display: flex;
}

.gallery-content {
  width: 80%;
  height: 80%;
}

.gallery-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.section-project__card-title {
  color: #95b46a;
  font-size: 28px;
  font-weight: 500;
  margin: 10px 0;
}

.section-project__card-list {
  list-style-type: none;
}

.section-project__card-price {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  padding-top: 5px;
  padding-bottom: 5px;
}

.section-project__card-price p:last-child {
  color: #95b46a;
  font-size: 24px;
  font-weight: 550;
}

.section-contact {
  height: 100%;
}

.visually-hidden {
  visibility: hidden;
  display: none;
}

.contact-section__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-section__form h2 {
  text-align: center;
}

.contact-section__input {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 50%;
  border-bottom: 1px #95b46a solid;
  margin: 0 auto;
  margin-top: 50px;
}

.contact-section__form-fields {
  position: relative;
}

.input__control {
  width: 100%;
  padding: 18px;
  border-radius: 10px;
  border: 1px #475831a5 solid;
  font-family: "Montserrat", sans-serif;
}

.contact-section__form-field {
  width: 100%;
  position: relative;
  margin-top: 25px;
}

.contact-section__button {
  width: 150px;
  margin: 0 auto;
  border: none;
  color: #ffffff;
  background-color: #838383;
  padding: 15px 20px;
  margin-top: auto;
  cursor: pointer;
  border-radius: 10px;
}

.section-calculator__content {
  width: 50%;
  padding-top: 50px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section-calculator__hidden {
  display: none;
}

.contact-section__form-output {
  position: absolute;
  color: rgb(190, 0, 0);
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.contact-section__button.active {
  background-color: #95b46a;
  cursor: pointer;
}

.section-calculator__content-title {
  font-weight: 500;
}

.custom-select {
  position: relative;
  width: 100%;
  font-size: 14px;
}

.select-selected {
  display: flex;
  justify-content: s;
  color: #6b6b6b;
  width: 100%;
  margin-top: 10px;
  padding: 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px #475831a5 solid;
  transition: all 0.3s ease;
}

.toggle {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
  user-select: none;
}

.toggle:hover {
  background: #f0f0f0;
}

.toggle.active {
  background: #88a86f;
  color: white;
  border-color: #88a86f;
}

.select-selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-top-color: #95b46a;
  transition: transform 0.3s ease;
}

.select-selected.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.select-items {
  position: absolute;
  background: #ffffff;
  border-radius: 10px;
  margin-top: 8px;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  z-index: 100;
}

.select-items div {
  padding: 10px 16px;
  color: #4a2c0a;
  cursor: pointer;
  transition: background 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-calculator__button {
  width: 150px;
  margin: 0 auto;
  border: none;
  color: #ffffff;
  background-color: #95b46a;
  padding: 15px 20px;
  margin-top: auto;
  cursor: pointer;
  border-radius: 10px;
}

.section-calculator__result {
  background: #95b46a;
  padding: 30px 0;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.contact-section__input-circles {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: absolute;
  left: -40.5px;
}

.input__circle {
  width: 30px;
  height: 30px;
  background-color: #d9d9d9;
  border-radius: 50%;
  position: absolute;
  left: -41.5px;
  top: 50%;
  transform: translate(0, -50%);
  outline: 5px solid #fff;
}

.input__circle-complete {
  outline: none;
  background-color: #819b57;
  box-shadow: 0px 0px 9px 0px rgba(37, 56, 6, 0.8);
}

.input__line {
  position: absolute;
  left: -26.5px;
  top: 50px;
  bottom: 50px;
  width: 1.2px;
  background-color: #d9d9d9;
  z-index: -2;
}

.navigation-button {
  margin: 50px auto;
}

.section__content-title {
  font-weight: 500;
}

.section-inform__media {
  padding: 20px 0;
}

.section-inform h2 {
  text-align: center;
}

.contact-section__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: auto;
  margin-right: auto;
}

.section-inform__info-link {
  color: #000;
  padding-right: 3px;
}

.section-inform__info-item {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.section-inform__info-list {
  list-style-type: none;
}

.section-inform__info {
  padding-right: 8px;
}

.section-inform__map {
  border-radius: 20px;
  margin: 0 auto;
  height: 400px;
}

.section-inform__links {
  background: #95b46a;
  display: flex;
  padding: 10px;
  border-radius: 10px;
  flex-direction: column;
  width: 50%;
}

.section-inform__media {
  display: flex;
  color: #000;
}

.section-inform__links a {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.section-questions {
  background-color: #e8e6e6;
}

.section-questions__container {
  padding: 60px 120px;
}

.section-questions__item {
  border-bottom: 1px #95b46a solid;
}

.section-questions__text {
  font-size: 20px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
}

.section-questions__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-bottom: 10px;
}

.section-questions__item.active .section-questions__answer {
  max-height: 200px;
  opacity: 1;
}

.footer {
  background-color: #95b46a;
  padding: 40px 0;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  font-weight: 600;
  color: #ffffff;
  font-size: 22px;
  margin: 0 auto;
  gap: 5px;
}

.footer-img {
  width: 60px;
  height: 60px;
}

.footer__logo-text {
  font-size: 24px;
  font-weight: 500;
}

.footer-media {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  /* align-items: center; */
  /* text-align: center; */
}

.footer-media__link {
  width: 100%;
  display: flex;
  text-align: center;
  align-items: anchor-center;
  margin: 0 auto;
  padding-top: 5px;
}

.footer-media__icon {
  padding-right: 8px;
}

.footer__address-list {
  list-style-type: none;
}

.footer__address {
  display: flex;
  justify-content: left;
  margin: 0 auto;
  line-height: 2;
}

@media (max-width: 1060px) {
  .section-frame__content {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    place-items: center;
    flex-wrap: wrap;
  }

  .section-frame__card:not(:last-child)::after {
    width: 0;
  }
}

@media (max-width: 950px) {
  .section {
    margin: 30px 60px;
  }
}

@media (max-width: 850px) {
  .section,
  .section-projects__container {
    margin: 30px 10px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-main {
    border-radius: 0;
  }

  .header {
    margin: 0;
    width: 100%;
    padding: 5px 20px;
  }

  .header__img {
    width: 30px;
    height: 30px;
  }

  .header__logo-text {
    font-size: 16px;
  }

  .burger {
    display: flex;
  }

  .header__nav-drop {
    display: block !important;
    position: relative;
    top: 0;
    opacity: 1;
    visibility: visible;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #819b57;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    margin-top: 90px;
  }

  .header__nav-btn {
    background-color: #fff;
    color: #95b46a;
  }

  .section-main__header {
    font-size: 5vw;
  }
  .section-main__text-logo {
    font-size: 6vw;
  }
  .section-main__text {
    width: 80%;
  }
  .section-square__subtext,
  .section-square__parameters {
    font-size: 20px;
    padding: 5px 25px;
  }

  .section-about__inform {
    flex-direction: column;
    font-size: 16px;
    gap: 20px;
  }

  .section-about__text-p {
    padding: 15px 0 10px 0;
  }

  .section-about__img {
    background-image: url(../images/modular__about-mob.jpeg);
    display: flex;
    flex: revert-layer;
    height: 200px;
  }

  .section-about__button {
    display: none;
  }

  .button-mob {
    font-size: 14px;
    width: 100%;
    display: block;
  }

  .section-subtutitle {
    font-size: 14px;
  }

  .section-stages {
    padding: 10px;
  }

  .section-stages__content {
    padding-top: 30px;
    margin: 0;
  }

  .section-stages__card-title {
    font-size: 22px;
  }

  .section-stages__card-icon {
    width: 50px;
  }

  .section-frame__subtutitle {
    font-size: 14px;
  }

  .section-frame__content {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 0;
  }

  .section-frame__card {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    padding: 0;
  }

  .section-frame__card:first-child {
    border-top: none;
  }

  .section-frame__card-img {
    border-radius: 20px 20px 0 0;
  }

  .section-frame__card-item {
    font-size: 14px;
  }

  .section-projects__container {
    margin: 0 !important;
  }

  .section-projects {
    margin-top: 30px;
    padding: 20px 10px;
  }

  .section-projects__content {
    gap: 0;
  }

  .section-projects__container.swiper {
    overflow: hidden;
    padding: 0;
  }

  .section-project__card {
    height: 550px;
  }

  .section-projects__content.swiper-wrapper {
    display: flex;
  }

  .section-project__card.swiper-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 5px;
  }

  .section-project__card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  .swiper-pagination {
    display: block;
    position: static;
    margin-top: 20px;
  }

  .swiper-pagination-bullet-active {
    background: #7d9c59;
  }

  .section-calculator__content {
    width: 90%;
  }

  .contact-section__input {
    width: 90%;
  }

  .input__circle,
  .input__line {
    display: none;
  }

  .section-questions__container {
    padding: 30px 10px;
    margin-top: 50px;
  }

  .contact-section__info {
    flex-direction: column;
  }

  .section-inform__media {
    flex-direction: column-reverse;
  }

  .section-inform__info-list {
    padding: 10px;
  }

  .section-inform__links {
    width: 99%;
    margin: 0 auto;
  }

  .section-inform__map {
    width: 99%;
    height: 200px;
    margin-top: 10px;
  }

  .footer__content {
    display: flex;
    flex-direction: column;
  }

  .footer-logo {
    order: 1;
  }

  .footer-media {
    order: 3;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    gap: 10px;
    margin-top: 40px;
  }

  .footer-media__icon {
    width: 15px;
    font-size: 14px;
    padding-right: 0;
  }

  .footer__logo-text {
    font-size: 17px;
    font-weight: 700;
  }

  .footer-img {
    width: 40px;
    height: 40px;
  }

  .footer__address {
    order: 2;
    margin: 0 auto;
    justify-content: center;
    margin-top: 20px;
  }
}
