/* header */

.nav-mgo {
  display: none;
}

.header-mgo {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
  width: 100%;
  border-bottom: 1px solid var(--gray-70-divider);
  background: var(--gray-100-primary-text);
}

.header-container-mgo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  width: 100%;
  position: relative;
  height: 60px;
  width: 375px;
}

.header-logo-mgo {
  h2 {
    font-weight: 400;
    font-size: 24px;
    line-height: 110%;
    color: var(--gray-0-background);
  }

  p {
    font-size: 12px;
    line-height: 140%;
    color: var(--gray-0-background);
  }
}

.menu-btn-mgo {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 44px;
  height: 44px;
}

.menu-svg-mgo {
  width: 18px;
  height: 14px;
  fill: var(--gray-0-background);
}

.nav-list-mgo {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-item-mgo {
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-link-mgo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 8px 0 10px;

  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--gray-0-background);
  transition: all 0.3s ease-in-out;
}

.nav-item-mgo:not(:last-child) {
  margin-right: 104px;
}

.nav-item-mgo:nth-child(3) {
  margin-right: 441px;
}

.nav-item-mgo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent-points);
  transition: all 0.3s ease-in-out;
}

.item-active-mgo::after {
  width: 100%;
}

.link-active-mgo {
  opacity: 1;
  font-weight: 500;
}

.nav-link-mgo:hover {
  opacity: 1;
  font-weight: 500;
}

@media screen and (min-width: 1440px) {
  .header-mgo {
    width: 100%;
    height: 104px;
  }

  .header-container-mgo {
    margin: 0 auto;
    width: 100%;
    padding: 36px 50px;
    width: 1440px;
    height: 104px;
  }

  .header-logo-mgo {
    width: 232px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 24px;
    left: 562px;

    h2 {
      font-size: 36px;
    }

    p {
      font-size: 14px;
    }
  }

  .nav-mgo {
    display: block;
  }

  .menu-btn-mgo {
    display: none;
  }
}

/* modal  */

.modal-mgo {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding-top: 24px;
  background: var(--gray-10-background);
  width: 375px;
  height: 100vh;
}

.menu-nav-list-mgo {
  flex-direction: column;
  gap: 8px;
  width: 100%;

  .menu-nav-item-mgo {
    padding: 0;
    width: 100%;
    margin: 0;
  }
}

.menu-nav-link-mgo {
  width: 100%;
  color: var(--gray-100-primary-text);
  padding: 8px 0 10px;
  height: fit-content;
}

/* popup */

.popup-mgo {
  position: fixed;
  z-index: 11;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 16px;
  background: var(--gray-0-background);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.popup-wrap-text-mgo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-title-mgo {
  font-weight: 400;
  font-size: 24px;
  line-height: 110%;
}

.popup-text-mgo {
  line-height: 142%;
}

.popup-btn-wrap-mgo {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 8px;
}

.popup-btn-mgo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 167px;
  height: 46px;
  border-radius: 4px;

  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.popup-btn-accept-mgo {
  background: var(--gray-100-primary-text);
  color: var(--gray-0-background);
}

.popup-btn-decline-mgo {
  border: 1px solid var(--gray-100-primary-text);
}

.popup-btn-mgo:hover {
  transform: scaleY(1.2);
}

@media screen and (min-width: 1440px) {
  .popup-mgo {
    left: 50%;
    transform: translate(-50%);
    padding: 40px;
    width: 1440px;

    flex-direction: row;
    gap: 133px;
  }

  .popup-wrap-text-mgo {
    width: 837px;
    gap: 16px;
  }

  .popup-btn-wrap-mgo {
    gap: 16px;
    width: fit-content;
  }

  .popup-btn-mgo {
    width: 187px;
  }
}

/* hero  */

#home {
  background: url(images/hero-bg.png);
  background-position: center;
  background-size: cover;
}

.hero-container-mgo {
  padding: 120px 16px 226px;

  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--gray-0-background);
}

.hero-title-mgo {
  font-weight: 400;
  font-size: 64px;
  line-height: 120%;
  text-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.hero-subtitle-mgo {
  font-weight: 400;
  font-size: 24px;
  line-height: 110%;
  text-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.hero-text-mgo {
  font-size: 14px;
  line-height: 140%;
}

.hero-links-wrap-mgo {
  display: flex;
  gap: 8px;
}

.hero-link-mgo {
  width: 167px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  text-align: center;
}

.hero-link-try-mgo {
  border: 1px solid var(--gray-0-backgroun, -primary-text);
  background: var(--primary-red);
}

.hero-link-watch-mgo {
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  background: var(--gray-0-background);
}

@media screen and (min-width: 1440px) {
  .hero-container-mgo {
    padding: 214px 752px 173px 50px;
  }

  .hero-title-mgo {
    font-weight: 700;
    font-size: 120px;
    line-height: 90%;
  }

  .hero-text-mgo {
    width: 461px;
  }

  .hero-links-wrap-mgo {
    gap: 24px;
  }

  .hero-link-mgo {
    width: 164px;
  }
}

/* about */

.about-container-mgo {
  padding-top: 375px;
}

.about-subtitle-mgo {
  margin-bottom: 24px;
}

.about-text-mgo {
  line-height: 142%;
  color: #000;
}

.about-text-first-mgo {
  margin-bottom: 16px;
}

.about-pic-mgo {
  background: url(/images/about-pic.png);
  background-position: center;
  background-size: cover;

  width: 273px;
  height: 349px;

  position: absolute;
  top: -34px;
  right: 16px;
}

@media screen and (min-width: 1440px) {
  .about-container-mgo {
    padding-top: 111px;
    padding-right: 733px;
  }

  .about-subtitle-mgo {
    margin-bottom: 60px;
  }

  .about-text-first-mgo {
    margin-bottom: 16px;
  }

  .about-pic-mgo {
    width: 623px;
    height: 522px;

    position: absolute;
    top: -79px;
    right: 50px;
  }
}

/* features */

.features-list-mgo {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
}

.features-item-mgo {
  border: 1px solid var(--primary-red);
  padding: 32px 24px;
  width: 343px;
  height: 192px;
  background: var(--gray-0-background);

  span {
    font-weight: 400;
    font-size: 16px;
    line-height: 142%;
    color: var(--primary-red);
  }

  h4 {
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  p {
    line-height: 142%;
    color: var(--gray-80-secondary-text);
  }
}

@media screen and (min-width: 1440px) {
  .features-list-mgo {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .features-item-mgo {
    width: 430px;
    height: 203px;
  }
}

/* prescription */

.prescription-list-mgo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prescription-item-mgo:not(:last-child) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;

  div {
    width: 343px;
    height: 460px;
  }

  h4 {
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
  }

  p {
    line-height: 142%;
    color: var(--gray-80-secondary-text);
  }
}

.prescription-item-mgo:nth-child(1) {
  div {
    background: url(/images/prescription/1.png);
    background-position: center;
    background-size: cover;
  }
}

.prescription-item-mgo:nth-child(2) {
  div {
    background: url(/images/prescription/2.png);
    background-position: center;
    background-size: cover;
  }
}

.prescription-item-mgo:nth-child(3) {
  div {
    background: url(/images/prescription/3.png);
    background-position: center;
    background-size: cover;
  }
}

.prescription-item-mgo:nth-child(4) {
  div {
    background: url(/images/prescription/4.png);
    background-position: center;
    background-size: cover;
  }
}

.prescription-item-mgo:nth-child(5) {
  div {
    background: url(/images/prescription/5.png);
    background-position: center;
    background-size: cover;
  }
}

.prescription-item-mgo:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 390px;

  p {
    font-size: 24px;
    line-height: 110%;
    text-align: center;

    span {
      color: var(--primary-red);
    }
  }
}

@media screen and (min-width: 1440px) {
  .prescription-list-mgo {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 32px 24px;
  }

  .prescription-item-mgo:not(:last-child) {
    width: 658px;
    height: 542px;
    gap: 0;
    padding-bottom: 0;

    div {
      width: 658px;
    }

    h4 {
      margin-top: 16px;
      margin-bottom: 8px;
    }
  }

  .prescription-item-mgo:last-child {
    width: 658px;
    height: 542px;
  }

  .prescription-break-mgo {
    display: none;
  }
}

/* pricing */

.pricing-list-mgo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-item-mgo {
  border: 1px solid #babfbe;
  padding: 32px 24px;
  width: 343px;
  height: 404px;
  background: var(--gray-0-background);

  h4 {
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
    color: #002a34;
    margin-bottom: 16px;
  }

  h5 {
    font-weight: 400;
    font-size: 24px;
    line-height: 110%;
    color: var(--primary-red);
  }

  p {
    line-height: 142%;
    color: #717776;

    height: 115px;
    margin-top: 47px;
    margin-bottom: 47px;
  }

  a {
    border: 1px solid var(--gray-0-backgroun, -primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 295px;
    height: 54px;
    background: var(--primary-red);

    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray-0-background);
  }
}

@media screen and (min-width: 1440px) {
  .pricing-list-mgo {
    flex-direction: row;
    gap: 20px;
  }

  .pricing-item-mgo {
    width: 320px;
    height: 367px;

    p {
      margin-top: 28.5px;
      margin-bottom: 28.5px;
    }

    a {
      width: 272px;
    }
  }
}

/* testimonials */

.testimonials-item-mgo {
  border: 1px solid var(--primary-red);
  padding: 32px 24px;
  width: 322px;
  height: 255px;
  background: var(--gray-0-background);

  p {
    font-size: 14px;
    line-height: 140%;
  }

  h4 {
    font-size: 24px;
    line-height: 110%;
    margin-top: 61px;
    margin-bottom: 4px;
  }

  span {
    font-size: 14px;
    line-height: 140%;
    color: var(--primary-red);
  }
}

@media screen and (min-width: 1440px) {
  .testimonials-container-mgo {
    display: block;
  }

  .testimonials-item-mgo {
    width: 420px;

    h4 {
      margin-top: 81px;
    }
  }
}

/* contact */

#contact {
  background: var(--primary-red);
}

.contact-container-mgo {
  padding: 40px 16px;
}

.contact-title-mgo {
  font-size: 64px;
  line-height: 120%;
  color: var(--gray-0-background);
}

.contact-subtitle-mgo {
  color: var(--gray-10-background);
}

.contact-text-mgo {
  line-height: 142%;
  color: var(--gray-0-background);
  margin-bottom: 32px;
}

.contact-list-mgo {
  display: flex;
  flex-direction: column;
}

.contact-item-mgo {
  border: 1px solid var(--gray-0-background);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;

  h4 {
    font-size: 24px;
    line-height: 110%;
    color: var(--gray-0-background);
  }

  p {
    line-height: 142%;
    color: var(--gray-0-background);
    text-align: center;
  }
}

.contact-item-mgo:nth-child(1),
.contact-item-mgo:nth-child(2),
.contact-item-mgo:nth-child(3) {
  border-bottom: 0;
}

@media screen and (min-width: 1440px) {
  .contact-container-mgo {
    padding: 100px 50px;
    padding-right: 846px;
    justify-content: start;
  }

  .contact-title-mgo {
    text-align: left;
  }

  .contact-subtitle-mgo {
    text-align: left;
  }

  .contact-text-mgo {
    margin-bottom: 0;
  }

  .contact-list-mgo {
    width: 658px;
    flex-wrap: wrap;
    flex-direction: row;

    position: absolute;
    top: 100px;
    right: 50px;
  }

  .contact-item-mgo {
    padding: 29.5px;
    width: 329px;
    height: 124px;
  }

  .contact-item-mgo:nth-child(1) {
    border-right: 0;
  }

  .contact-item-mgo:nth-child(3) {
    border-bottom: 1px solid var(--gray-0-background);
    border-right: 0;
  }
}

/* footer */

#footer {
  background: var(--gray-100-primary-text);
}

.footer-container-mgo {
  width: 375px;
  margin: 0 auto;
  padding: 60px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-links-list-mgo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links-item-mgo {
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-link-mgo {
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--gray-0-background);
}

.footer-text-mgo {
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: var(--gray-70-divider);
}

@media screen and (min-width: 1440px) {
  .footer-container-mgo {
    width: 1440px;
    padding: 80px 50px 40px 50px;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links-list-mgo {
    flex-direction: row;
    gap: 24px;

    position: absolute;
    left: 498px;
    top: 78px;
  }

  .footer-links-item-mgo {
    padding-bottom: 10px;
  }

  .footer-text-mgo {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ********************* */

.hidden-mgo {
  display: none;
}
