body {
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #635854;
  background-color: #fff;
}

button {
  cursor: pointer;
}

.container {
  max-width: 1220px;
  padding: 0 10px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.hidden {
  display: none !important;
}

.header {
  padding: 23px 0;
  padding-bottom: 21px;
  background-color: #635854;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav__list {
  list-style: none;
  padding-inline-start: 0;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item:not(:last-child) {
  margin-right: 40px;
}

.nav__link {
  font-weight: 400;
  font-size: 16px;
  color: white;
}

.header__btn {
  padding: 9px 15px 8px;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
  color: white;
  border: solid 1px;
}

.header-contacts {
  display: flex;
  align-items: center;
  min-width: 150px;
}

.header-contacts__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacts-link__caption {
  font-weight: 400;
  font-size: 14px;
  color: white;
  font-family: 'Roboto', sans-serif;
}

.contacts-link__value {
  font-size: 16px;
  font-weight: 700;
  color: white;
  transition: all ease 0.3s;
}

.button {
  font-size: 24px;
  font-weight: 400;
  border: 1px solid #c4c4c4;
  text-transform: uppercase;
  padding: 23px 91px;
  display: block;
  transition: all ease 0.3s;
}

.button:hover {
  border-color: #00b2a0;
}

.button:focus {
  box-shadow: 4px 3px 12px #00b2a0;
}

.button:active {
  background-color: #00b2a0;
  color: #fff;
}

.first,
.plus {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 80px;
}

.first-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-nav__btn {
  position: absolute;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 10;
  background-repeat: no-repeat;
  background-size: cover;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  transition: background-color ease 0.3s;
}

.slider-nav__btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.first__prev {
  left: 32px;
  background-image: url(../images/arrow-left.svg);
}

.first__next {
  right: 32px;
  background-image: url(../images/arrow-right.svg);
}

.first__pag {
  counter-reset: pag;
  display: flex;
  left: calc((100% - 1260px) / 2) !important;
  bottom: 120px !important;
}

.swiper-pagination-bullet {
  width: 178px;
  height: auto;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  opacity: 1;
  text-align: left;
}

.swiper-pagination-bullet::before {
  counter-increment: pag;
  content: '0' counter(pag);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  color: rgba(#fff, 0.3);
  transition: color 0.3s ease-in-out;
}

.first-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 220px 0 354px 0;
}

.first__content {
  max-width: 590px;
}

.main-title {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.main-desc {
  font-size: 20px;
  margin: 0 0 25px;
  color: white;
}

/*---section floor---*/

.floor {
  padding: 80px 0;
}

.floor__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.floor__img {
  flex: 0 0 58%;
  border-radius: 10px;
  overflow: hidden;
}

.floor__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.floor__svg path {
  opacity: 0;
  cursor: pointer;
}

.floor__svg path:hover {
  opacity: 1;
  transition: opacity ease 0.15s;
}

.floor__svg .active {
  opacity: 1;
}

.floor__floor {
  flex: 0 0 38%;
}

.floor__body {
  padding: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.floor__text {
  font-family: 'Roboto Condensed', sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -1.5px;
  font-size: 37px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #635854;
}

.floor__text > p {
  letter-spacing: -2.5px;
}

.floor__number {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floor__counter--up:hover {
  transform: translateY(-2px);
  transition: all ease 0.5s;
}

.floor__counter--down:hover {
  transform: translateY(2px);
  transition: all ease 0.5s;
}

.floor__span {
  font-family: 'Roboto Condensed', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 80px;
  line-height: 1.1;
  color: #635854;
  letter-spacing: -2.5px;
  display: block;
  padding: 15px 0;
}

.floor__btn {
  display: block;
  background: #3596f5;
  border-radius: 6px;
  padding: 16px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.floor__btn:after {
  background: #fff;
  content: '';
  height: 155px;
  left: -75px;
  opacity: 0.2;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: 2;
}

.floor__btn:hover:after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

/*--- section plus---*/

.plus__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plus__item {
  display: flex;
  align-items: center;
}
.plus__img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 70px;
  background-color: #635854;
  margin-right: 20px;
  border-radius: 50%;
}
.plus__img svg {
  display: block;
  width: 40px;
  height: 40px;
}
.plus__text {
  display: inline-block;
  color: #635854;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
}
/*---about---*/

.about__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about__descr {
  margin-right: 40px;
}
.about__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.about__img {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1/1;
  width: auto;
  height: 100%;
}

.about__img img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about__text:not(:last-child) {
  margin-bottom: 10px;
}

/*---popup---*/

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 11;
  display: none;
}

.overlay.active {
  display: block;
}

.popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s;
  visibility: hidden;
}

.popup.open {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.popup__wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  min-height: 100vh;
}

.popup__inner {
  width: 70%;
  max-width: 1200px;
  min-height: 565px;
  background-color: white;
  display: flex;
  position: relative;
}

.popup__close {
  position: absolute;
  background-color: transparent;
  background-color: var(--accent-color);
  border: none;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup__close svg {
  fill: var(--white);
  transition: all ease 0.8s;
}

.popup__close svg:hover {
  transform: rotate(180deg);
}

.popup__img {
  width: 60%;
  background: #ebebeb;
  text-align: center;
  padding: 40px;
}

.popup__flats path {
  opacity: 0;
}

.popup__flats path.active {
  opacity: 1;
}
.popup__flats path.activeimp {
  opacity: 1 !important;
  fill: #6e6358;
}

.popup__flats path:hover {
  opacity: 1;
  cursor: pointer;
}

.popup__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  color: #000;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.popup__info {
  width: 40%;
  padding: 40px;
}

.flat__title {
  margin-bottom: 55px;
}

.flat__list {
  margin-bottom: 56px;
}

.flat__item {
  line-height: 1.9;
}

.flat__link {
  color: #635854;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  transition: all ease 0.2s;
}

.flat__link:hover {
  text-decoration-line: underline;
  color: #3596f5;
}

.flat__link.active {
  text-decoration-line: underline;
  color: #3596f5;
}

.flat__text {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: #635854;
  user-select: none;
}
.burger {
  display: none;
}

.flat__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 56px;
}
.flat__summary-item {
  padding: 10px;
  font-size: 16px;
  font-style: normal;
}
/*---footer---*/
.footer {
  background-color: #635854;
  font-weight: 400;
  font-size: 14px;
  color: white;
}
.footer__inner {
  padding: 34px 0 30px 0;
  display: flex;
  justify-content: space-between;
}
.footer__logo {
  padding-right: 14px;
  flex: 0 0 32%;
  border-right: 1px solid rgba(255, 255, 254, 0.2);
}
.footer__middle p {
  padding-right: 14px;
}
.footer__middle {
  flex: 0 0 32%;
  opacity: 0.5;
  border-right: 1px solid rgba(255, 255, 254, 0.2);
}
.footer__contacts {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer__content > p {
  opacity: 0.5;
  margin-bottom: 10px;
}
.footer__copyright {
  opacity: 0.8;
}

@media (max-width: 1280px) {
  .container {
    max-width: 960px;
  }
  .popup__inner {
    width: 80%;
  }
  .flat__summary-item {
    padding: 8px;
  }
  .floor__text {
    font-size: 32px;
  }
  .floor__body {
    padding: 40px;
  }
  .floor__btn {
    text-align: center;
  }
}

@media (max-width: 992px) {
  .header__logo {
    max-width: 250px;
    margin-right: 30px;
  }
  .nav__item {
    margin-right: 20px;
  }
  .plus__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plus__img {
    min-width: 60px;
    height: 60px;
  }
  .plus__img svg {
    width: 30px;
    height: 30px;
  }
  .plus__text {
    display: inline-block;
    color: #635854;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
  }
  .floor__body {
    padding: 20px;
  }
  .floor__span {
    font-size: 60px;
    padding: 10px 0;
  }
  .popup__info {
    width: 50%;
    padding: 20px;
  }
  .popup__img {
    width: 50%;
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 30px;
  }
  .burger {
    display: block;
    position: relative;
    width: 40px;
    height: 20px;
    top: 0;
    right: 15px;
    z-index: 5;
  }
  .burger span {
    position: absolute;
    background-color: #fff;
    left: 0;
    width: 100%;
    height: 2px;
    top: 9px;
    transition: all 0.3s ease;
  }
  .burger:before,
  .burger:after {
    content: '';
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all 0.3s ease;
  }
  .burger:before {
    top: 0;
  }
  .burger:after {
    bottom: 0;
  }
  .burger.open span {
    transform: translateY(-100px);
  }
  .burger.open::before {
    transform: rotate(45deg);
    top: 9px;
  }
  .burger.open::after {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  .nav {
    position: absolute;
    right: 0;
    z-index: 2;
    display: block;
    background-color: #635854;
    bottom: 150px;
    padding: 15px;
    padding-bottom: 0;
    transition: bottom ease 0.3s;
  }

  .nav.open {
    bottom: -112px;
  }
  .header__nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__item {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .main-title {
    font-size: 36px;
  }
  .first-slide {
    padding: 50px 0 70px 0;
  }
  .slider-nav__btn {
    top: 70%;
  }

  .about__descr {
    margin-right: 0;
  }
  .about__img {
    display: none;
  }
  .floor {
    padding: 60px 0;
  }
  .floor__inner {
    display: block;
  }
  .floor__body {
    padding: 60px 0 0 0;
  }
  .floor__number {
    padding: 20px 0;
  }

  .popup {
    display: block;
  }
  .popup__inner {
    width: 100%;
    display: block;
  }
  .popup__img {
    width: 100%;
    padding: 30px;
  }
  .popup__flats {
    max-width: 420px;
  }
  .popup__info {
    width: 100%;
    text-align: center;
    padding: 30px;
  }
  .footer__inner {
    flex-wrap: wrap;
  }
  .footer__logo {
    flex: 0 0 48%;
  }
  .footer__middle {
    flex: 0 0 48%;
    border-right: none;
    padding: 0;
  }
  .footer__contacts {
    flex: 0 0 100%;
    margin-top: 24px;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  .header-contacts {
    display: none;
  }
  .main-title {
    font-size: 30px;
  }

  .first,
  .plus {
    margin-bottom: 60px;
  }
  .first-slide {
    padding: 40px 0 60px 0;
  }
  .slider-nav__btn {
    top: 70%;
  }
  .floor {
    padding: 60px 0;
  }
  .floor__body {
    padding-top: 40px;
  }
  .floor__text {
    font-size: 26px;
  }
  .floor__span {
    font-size: 40px;
  }
  .floor__btn {
    padding: 12px 24px;
  }
}
@media (max-width: 480px) {
  .first,
  .plus {
    margin-bottom: 40px;
  }
  .plus__grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .popup__info {
    padding: 20px;
  }
  .popup__img {
    padding: 20px;
  }
  .floor {
    padding: 40px 0;
  }
  .footer__logo {
    flex: 0 0 100%;
    border-right: none;
    padding: 0;
  }
  .footer__middle {
    flex: 0 0 100%;
    margin-top: 24px;
  }
}
