.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  padding: 20px 0;
  background: #e7f1db;
}

.header-logo {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 23px;
  line-height: 114%;
  color: var(--fffef5);
  transition: color 0.3s ease;
}

.header-logo:hover {
  color: #767575;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  color: #767575;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: #060606;
}

.menu-btn {
  svg {
    fill: none;
    stroke: #2c2c2c;
    transition: stroke 0.3s ease;
  }
}

.menu-btn:hover {
  svg {
    stroke: #767575;
  }
}

@media screen and (min-width: 1440px) {
  .main-section {
    padding: 30px 0;
  }

  .header-logo {
    font-size: 35px;
  }

  .page-nav {
    display: block;
    padding: 10px 24px;
    padding-right: 0;
    border-left: 1px solid #060606;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 8;
  padding: 40px;
  padding-top: 120px;
  background: var(--ffffff);
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

/* popup */

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background: rgba(17, 17, 17, 0.92);
  z-index: 999;
}

.page-popup {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(350%);

  border: 1px solid #e7f1db;
  border-radius: 24px;
  padding: 48px 20px;
  background: #0c0c0c;
}

.popup-title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 123%;
  text-transform: uppercase;
  text-align: center;
  color: #e7f1db;
  margin-bottom: 28px;

  span {
    color: #afff50;
  }
}

.popup-text {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 156%;
  text-transform: uppercase;
  text-align: center;
  color: var(--ffffff);
  margin-bottom: 28px;
}

.popup-btn {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 14px;
  color: var(--ffffff);
  text-align: center;
  display: block;

  border: 1.6px solid rgba(240, 234, 222, 0.2);
  border-radius: 48px;
  padding: 12px 20px;
  background: #292524;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.popup-btn:hover {
  border-color: #afff50;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media screen and (min-width: 1440px) {
  .page-popup {
    padding: 48px;
    border-radius: 24px;
  }

  .popup-title {
    font-size: 40px;
    margin-bottom: 28px;
  }

  .popup-title {
    font-size: 40px;
    margin-bottom: 28px;
  }

  .popup-text {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .popup-wrap {
    flex-direction: row;
    gap: 36px;
    justify-content: center;
  }

  .popup-btn {
    width: 250px;
    font-size: 18px;
    padding: 18px;
  }
}

/* hero  */

.dashboard {
  padding-top: 91px;
}

.hero-img {
  width: 100%;
  height: 519px;
  background-image: url(../img/home.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
  margin-bottom: 70px;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 48px;
  line-height: 108%;
  text-transform: capitalize;
  text-align: right;
  color: var(--fffef5);
  position: absolute;
  bottom: 69px;
  right: 16px;
}

.hero-logo {
  position: absolute;
  bottom: -44px;
  right: 10px;
  width: 88px;
  z-index: 2;
  animation: rotateClockwise 12s linear infinite;
  transform-origin: center;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-text {
  margin-bottom: 24px;
}

@media screen and (min-width: 1440px) {
  .dashboard {
    padding-top: 112px;
  }

  .hero-title {
    font-size: 88px;
    right: 40px;
    bottom: 30px;
  }

  .hero-logo {
    width: 137px;
    bottom: -157px;
    right: 30px;
  }

  .hero-text {
    width: 896px;
  }
}

/* modern  */

#modern {
  background: var(--fffef5);
}

.modern-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modern-img {
  width: 100%;
}

.modern-text {
  margin-bottom: 24px;
}

@media screen and (min-width: 1440px) {
  .modern-container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .modern-img {
    width: auto;
    flex-shrink: 0;
  }
}

/* comfort */

.comfort-text {
  text-align: center;
  margin-bottom: 28px;
}

.comfort-slide {
  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    color: var(--fffef5);
    margin-bottom: 20px;
  }
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.swiper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--fffef5);
  width: 50px;
  height: 50px;
  transition: background-color 0.3s ease;

  svg {
    fill: none;
    transition: stroke 0.3s ease;
    stroke: #2c2c2c;
  }
}

.swiper-btn:hover {
  background-color: #2c2c2c;
  svg {
    stroke: #fff;
  }
}

.comfort-prev {
  svg {
    transform: rotate(-90deg);
  }
}

.comfort-next {
  svg {
    transform: rotate(90deg);
  }
}

@media screen and (min-width: 1440px) {
  .comfort-text {
    width: 989px;
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .comfort-slide {
    p {
      font-size: 24px;
    }
  }
}

/* place  */

#place {
  background: var(--fffef5);
}

.place-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.place-img1 {
  width: 100%;
  border-radius: 8px;
}

.place-img2 {
  width: 100%;
  border-radius: 8px;
}

@media screen and (min-width: 1440px) {
  .place-wrap {
    flex-direction: row;
    align-items: center;
    gap: 60px;

    .title {
      text-align: start;
    }
  }

  .place-img1 {
    width: auto;
    flex-shrink: 0;
  }
}

/* conversation  */

@media screen and (min-width: 1440px) {
  .conversation-wrap {
    flex-direction: row-reverse;
  }
}

/* space  */

.space-img {
  width: 100%;
  height: 556px;
  background-image: url(../img/space.jpg);
  background-position: center;
  background-size: cover;
  margin-top: 28px;
  border-radius: 8px;
}

@media screen and (min-width: 1440px) {
  .space-img {
    margin-top: 40px;
  }
}

/* sens  */

/* respect */

.respect-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.respect-img {
  border-radius: 8px;
}

@media screen and (min-width: 1440px) {
  .respect-container {
    flex-direction: row;
    align-items: center;
  }
}

/* contact   */

.map-frame {
  border-radius: 4px;
  height: 285px;
  width: 100%;
  z-index: 2;
  margin-top: 28px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;

  li {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    color: var(--fffef5);
  }

  span {
    font-weight: 700;
  }

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1440px) {
  .map-frame {
    height: 556px;
    margin-top: 40px;
  }

  .contact-list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;

    li {
      font-size: 16px;
    }
  }
}

/* footer */

.footer {
  padding: 40px 0;
  background: #111317;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #afff50;
}

.footer-logo {
  display: block;
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 35px;
  line-height: 114%;
  text-align: center;
  color: var(--ffffff);
  transition: color 0.3s ease;
}

.footer-logo:hover {
  color: #afff50;
}

.footer-mail {
  display: block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: var(--ffffff);
  transition: color 0.3s ease;
}

.footer-mail:hover {
  color: #afff50;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 133%;
    color: var(--ffffff);
    transition: color 0.3s ease;
  }

  a:hover {
    color: #afff50;
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  text-align: center;
  color: var(--ffffff);
}

@media screen and (min-width: 1440px) {
  .footer {
    padding: 60px 0;
  }

  .footer-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-list {
    a {
      font-size: 14px;
    }
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  border-radius: 50%;

  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease transform 0.4s ease;

  svg {
    fill: none;
    stroke: #fff;
  }
}

#scrollTopBtn.show {
  opacity: 0.5;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn.show:hover {
  opacity: 1;
  border-color: #afff50;
  svg {
    stroke: #afff50;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  height: 100%;
}

.popup-click {
  transform: translateX(-50%) translateY(-50%);
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(135deg);
}

.overflow {
  overflow: hidden;
}
