* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Bebas Neue", sans-serif;
  src: local("BebasNeueRegular"),
    url("../fonts/BebasNeueRegular.woff2") format("woff2"),
    url("../fonts/BebasNeueRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Roboto", sans-serif;
}

.header {
  background-color: #635854;
  padding: 12px 0;
  border-bottom: 4px solid #3596f5;
}

.navbar {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu__btn {
  display: none;
}

.navbar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  text-align: center;
}

.navbar-item {
  margin-left: 40px;
  margin-right: 40px;
}

.navbar-link {
  color: #fff;
  text-decoration: none;
}

.navbar-contacts {
  text-align: right;
}

.navbar-text {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 16px;
}

.navbar-phone {
  font-size: 17px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.main {
  max-width: 1280px;
  margin: auto;
  padding-top: 54px;
  padding-bottom: 100px;
  display: flex;
}

.home-image path {
  opacity: 0;
  cursor: pointer;
}

.home-image path:hover {
  opacity: 1;
}

.main-info {
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.main-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 37px;
  line-height: 44px;
  text-align: center;
  text-transform: uppercase;
  color: #635854;
  margin: 0;
}
.counter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
path.current-floor {
  opacity: 1;
}

.floor-counter {
  font-family: "Bebas Neue", sans-serif;
  color: #635854;
  font-size: 124px;
  margin-top: 10px;
}

.counter-button {
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.counter-arrow-up {
  transform: rotateX(180deg);
}

.button-primary {
  background: #3596f5;
  border-radius: 6px;
  color: #fff;
  border: none;
  padding: 16px 36px;
  cursor: pointer;
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s;
}

.is-open {
  opacity: 1;
  transform: scale(1);
}

.modal-dialog {
  max-width: 1000px;
  min-height: 565px;
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  position: relative;
  opacity: 0;
  transform: translateY(-10%);
  transition: transform 0.2s, opacity 0.2s;
  transition-delay: 0.2s;
}

.is-open > .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.modal-image {
  background-color: #ebebeb;
  width: 60%;
  text-align: center;
  padding: 50px;
}

.flats path {
  opacity: 0;
  cursor: pointer;
}

.flats path:hover {
  opacity: 1;
}

.modal-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  line-height: 29px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 25px;
}

.modal-info {
  padding: 50px 46px;
  width: 40%;
}

.flat-list {
  padding: 0;
  list-style: none;
  margin-top: 55px;
}

.flat-item {
  margin-bottom: 10px;
}

.flat-link {
  text-decoration: none;
  color: #635854;
}

.flat-link:hover {
  color: #3596f5;
  text-decoration: underline;
}

.modal-alert {
  font-style: italic;
  font-size: 16px;
  line-height: 19px;
  color: #635854;
  margin-top: 56px;
}

.modal-close-button {
  position: absolute;
  top: 38px;
  right: 27px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.footer {
  background-color: #d7d7d7;
  color: #635854;
}

.footer__box {
  margin: 0 auto;
  max-width: 1280px;
  color: #635854;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0 56px 0;
}
.footer__box-inner {
  display: flex;
  align-items: center;
}
.footer__box-items {
  display: flex;
  align-items: center;
  padding: 0;
}

.footer__box-logo {
  width: 65px;
  height: 65px;
  margin-right: 37px;
}

.footer-contacts {
  margin-right: 60px;
}

.footer-text,
.footer-phone {
  color: #635854;
}

.footer__item {
  list-style: none;
  margin-right: 15px;
}

.footer__info-item {
  margin-left: 20px;
  color: #635854;
}
