@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 16px;
  --page-padding: 0 1.5rem;
  --color-bg-1: #5f0000;
  --color-bg-2: #140382;
}

body {
  font-family: "Noto Sans", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #4f4f4f;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.header {
  background-color: #fff;
  height: 65px;
  padding: var(--page-padding);
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 100;
  width: 100%;
  -webkit-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.5);
}

.header__menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 0;
}

.header__nav {
  display: none;
}

.header__logo {
  display: flex;
  flex-shrink: 0;
  background: url("./images/sms-logo.svg") no-repeat;
  width: 90px;
  height: 38px;
  cursor: pointer;
}

.header__list {
  list-style: none;
  display: flex;
}

.header__item {
  padding: 5px;
  margin-left: 24px;
}

.link {
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.link::before,
.link::after {
  position: absolute;
  width: 100%;
  height: 1px;
  background: currentColor;
  top: 100%;
  left: 0;
  pointer-events: none;
}

.link::before {
  content: "";
}

.header__link {
  color: #2c2c2c;
  text-decoration: none;
}

.header__link::before {
  height: 10px;
  top: 100%;
  opacity: 0;
}

.header__link:hover::before {
  opacity: 1;
  animation: lineUp 0.3s ease forwards;
}

@keyframes lineUp {
  0% {
    transform-origin: 50% 100%;
    transform: scale3d(1, 0.045, 1);
  }

  50% {
    transform-origin: 50% 100%;
    transform: scale3d(1, 1, 1);
  }

  51% {
    transform-origin: 50% 0%;
    transform: scale3d(1, 1, 1);
  }

  100% {
    transform-origin: 50% 0%;
    transform: scale3d(1, 0.045, 1);
  }
}

.header__link::after {
  content: "";
  transition: opacity 0.3s;
  opacity: 0;
  transition-delay: 0s;
}

.header__link:hover::after {
  opacity: 1;
  transition-delay: 0.3s;
}

.mobile__icon {
  display: block;
  cursor: pointer;
}

.mobile__icon div {
  width: 30px;
  height: 3px;
  background-color: #000;
  margin: 6px 0;
  transition: 0.4s;
}

.active .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.active .bar2 {
  opacity: 0;
}

.active .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.mobile__menu {
  background-color: #eeeeee;
  height: calc(100vh - 65px);
  width: 100%;
  max-width: 450px;
  position: fixed;
  top: 65px;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
  z-index: 10;
  padding: 2.5rem 0 6rem;
}

.mobile__menu.active {
  right: 0;
}

.mobile__list {
  list-style: none;
  font-size: 1.25rem;
}

.mobile__item {
  padding: 12px 40px;
}

.mobile__item:first-child {
  background-color: #f8f8f8;
}

.mobile__link {
  text-decoration: none;
  color: #000;
  display: inline-block;
  width: 100%;
}

.wrap {
  display: block;
}

.content {
  padding: var(--page-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content__sticky {
  width: 100vw;
  position: sticky;
  top: 0;
  --offset: 0px;
  top: var(--offset);
  height: calc(100vh - var(--offset));
}

.content__grid,
.content__grid .content__inner {
  display: grid;
  overflow: hidden;
  grid-column-gap: 5vw;
  grid-row-gap: 2vh;
  align-content: center;
  grid-template-areas: "content-img" "content-text" "content-btn";
  justify-items: center;
}

.content__grid:has(.content__inner) {
  display: block;
  padding: 0;
}

.content__inner {
  width: 100%;
  height: 100%;
}

.content__perspective {
  perspective-origin: 50% 0%;
  perspective: 1000px;
}

.content__img {
  grid-area: content-img;
  margin-bottom: 20px;
}

.content__text {
  grid-area: content-text;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.5;
  padding: var(--page-padding);
  text-align: center;
  margin-bottom: 2.5rem;
}

.content__btn {
  grid-area: content-btn;
  border: 2px solid #fff;
  border-radius: 8px;
  height: 50px;
  line-height: 50px;
  padding: 0 2rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.25rem;
  transition: all 0.2s ease-in-out;
}

.content__btn:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.bg-1 {
  background-image: linear-gradient(rgba(98, 8, 8, 0.7), rgba(95, 0, 0, 0.7)),
    url("images/acuity-background.webp");
  background-position: 40% 50%;
  background-size: 280%;
}

.bg-2 {
  background-image: linear-gradient(
      rgba(20, 3, 130, 0.7),
      rgba(20, 3, 130, 0.7)
    ),
    url("images/xact-background-3.webp");
  background-size: cover;
}

.scroll {
  position: fixed;
  height: 1.5rem;
  z-index: 10;
  bottom: 0;
  margin-bottom: 2rem;
}

.scroll.hidden {
  opacity: 0;
}

.scroll__arrow {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  display: inline-block;
  opacity: 1;
  padding: 10px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
}

.scroll__arrow:nth-child(2) {
  animation: arrow1 1.5s ease-in-out infinite;
  animation-delay: 2s;
}

.scroll__arrow:nth-child(3) {
  animation: arrow2 1.5s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes arrow1 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 100%;
  }
}

@keyframes arrow2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 50%;
  }
}

.modal-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
}

.heading {
  font-weight: 500;
}

.close {
  background: none;
  display: inline-block;
  cursor: pointer;
  position:absolute;
  top: -10px;
  right: -20px;
  padding: 5px;
  height: 2.5rem;
  text-decoration: none;
  text-align: center;
  width: 2.5rem;
}

.close svg {
  width: 16px;
}

.card {
  background: #fff;
  border-radius: 5px;
  box-shadow: -20px 20px 35px 1px rgba(10, 49, 86, 0.04);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  max-width: 680px;
  width: 100%;
  line-height: 1.5;
}

.modal__content {
  margin-bottom: 1rem;
}

.modal-wrapper {
  background: rgba(0, 0, 0, 0.7);
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: start;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
  z-index: 20;
  padding: 0 1.5rem;
}

.modal {
  opacity: 0;
  transition: all 0.5s ease-in-out;
  visibility: hidden;
}

.modal-no-scroll {
  overflow: hidden;
}

.modal:target {
  opacity: 1;
  visibility: visible;
}

.modal:target .modal-body {
  opacity: 1;
  transform: translateY(1);
  overflow: hidden;
}

.modal:target .modal-no-scoll {
  overflow: auto;
}

.modal .modal-body {
  background-color: #fff;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.5s ease-in-out;
  width: 100%;
  z-index: 1;
}

.modal__link {
  color: #c2081b;
  text-decoration: none;
}

.modal__link:hover {
  text-decoration: underline;
}

.outside-trigger {
  bottom: 0;
  cursor: default;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.button__link {
  text-decoration: none;
}

.contacts__section {
  display: flex;
  justify-content: space-between;
}

.contacts__img {
  display: none;
}

.contacts__item {
  margin-bottom: 1.5rem;
}

.contacts__item:last-child {
  margin-bottom: 2.5rem;
}

.contacts__title {
  text-transform: uppercase;
  color: #ababab;
  font-weight: 700;
  font-size: 0.667rem;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.contacts span {
  font-weight: 600;
}

.contacts__address {
  text-align: center;
}
.contacts__brand {
  font-weight: 600;
}

@media only screen and (orientation: landscape) and (max-width: 960px) {
  .header__menu {
    justify-content: space-between;
  }

  .content__img {
    margin-top: 3rem;
  }

  .content__text,
  .content__btn {
    font-size: 1rem;
  }
}

@media only screen and (min-width: 667px) {
  .bg-1 {
    background-position: 50% 50%;
    background-size: cover;
  }
  .header__nav {
    display: block;
  }

  .header__menu {
    justify-content: space-between;
  }

  .mobile__icon {
    display: none;
  }

  .scroll {
    display: none;
  }

  .contacts__img {
    display: block;
  }
}

@media only screen and (min-width: 768px) {
  .header {
    padding: 0 2.5rem;
  }

  .wrap {
    display: flex;
  }

  .content__sticky {
    width: 50vw;
  }

  .content__text {
    max-width: 480px;
  }

  .content__text-left {
    text-align: left;
    align-self: start;
  }

  .modal .modal-body {
    transform: translateY(150px);
  }
}

@keyframes circle {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}
