@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  font-family: Montserrat;
  font-weight: 300;
  overflow-x: hidden;
  background-color: #fdfcfd;
}

.map {
  position: relative;
  overflow: hidden;
  max-width: 350px;
  height: 500px;
  margin: 20px auto;
  background-size: cover;
  border: 1px solid #ccc;
}

.ships {
  position: absolute;
  width: 96px;
  height: 96px;
  z-index: 2;
}

.ship-one {
  top: 15vh;
  background: url('./assets/ship_one.png') no-repeat;
  animation: ship-fly 10s infinite;
}

.ship-two {
  background: url('./assets/ship_two.png') no-repeat;
  right: 100vw;
  top: 60vh;
  animation: ship-fly2 10s infinite;
  animation-delay: 8s;
}

.station img {
  max-height: 400px;
}

@keyframes ship-fly {
  from {
    transform: translateX(-100vw);
  }
  to {
    transform: translateX(100vw);
  }
}

@keyframes ship-fly2 {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-100vw);
  }
}

button {
  cursor: pointer;
  padding: 10px 20px 10px 20px;
  background-color: #39184b;
  color: white;
  border: 0px solid transparent;
  border-radius: 4px;
}

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

.btn-primary {
  cursor: pointer;
  background-color: #39184b;
  color: white;
  border: 0px solid transparent;
  padding: 10px 20px 10px 20px;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: #71204e;
}

button:hover {
  background-color: #71204e;
}

input::placeholder,
textarea::placeholder {
  font-size: 14px;
  opacity: 0.7;
}

.sm-text {
  font-size: 12px;
}

.link {
  color: #471e5e;
  border-bottom: 1px solid #828282;
}

.link:hover {
  border-bottom: 0px solid #828282;
}

#tg {
  background-color: #3a234705;
  border-radius: 0 25px 25px 0;
  padding: 40px;
  width: 20%;
  min-width: 300px;
}

#tg > div {
  margin-bottom: 20px;
}

.form-img {
  display: flex;
  justify-content: center;
}

.form-img > img,
.form-img > video {
  border-radius: 25px 0 0 25px;
  box-shadow: 0 3px 20px rgb(0 0 0 / 0.1);
}

.form-group > input,
.form-group > textarea {
  width: 250px;
  padding: 10px 10px 10px 10px;
  border: 2px solid #39184b30;
  border-radius: 4px;
}

.form-group > textarea {
  max-width: 252px;
  height: 100px;
  margin-bottom: -2px;
}

.back {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
}

.box {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 0px;
  background-color: #39184b;
  z-index: -1;
  position: absolute;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.slide-box {
  margin-bottom: 80px;
  border: transparent;
  background-color: #39184b;
  z-index: -1;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.circle {
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
  top: -11%;
  right: 231%;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.rocket {
  position: absolute;
  background-position: right;
  top: 60px;
  right: 60px;
  width: 80px;
  height: 80px;
  background-image: url('./assets/rocket.svg');
  animation: fly 5s infinite;
  transition: 500ms ease;
  cursor: pointer;
}

@keyframes fly {
  0% {
    margin-top: -5px;
    margin-left: 5px;
  }
  30% {
    margin-top: 0px;
    margin-left: 0px;
  }
  55% {
    margin-top: -10px;
    margin-left: 10px;
  }
  80% {
    margin-top: 10px;
    margin-left: -10px;
  }
  100% {
    margin-top: -5px;
    margin-left: 5px;
  }
}

.stars {
  position: absolute;
  top: 10px;
  right: 30px;
  width: 40px;
  height: 44px;
  background-image: url('./assets/sbthree.svg');
}

.stars2 {
  position: absolute;
  top: 30px;
  right: 190px;
  width: 25px;
  height: 14px;
  background-image: url('./assets/ssthree.svg');
}

.stars3 {
  position: absolute;
  top: 190px;
  right: 25px;
  width: 43px;
  height: 23px;
  background-image: url('./assets/sfive.svg');
}

.wave {
  background: url(./assets/wave.svg) repeat-x;
  position: absolute;
  left: 0%;
  top: 75%;
  width: 4080px;
  height: 200px;
  animation: wave 20s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
  z-index: -1;
}

.wave2 {
  background: url(./assets/wave2.svg) repeat-x;
  position: absolute;
  left: 0%;
  top: -35%;
  width: 4080px;
  height: 200px;
  animation: wave 10s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
  z-index: -1;
}

@keyframes wave {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: -1080px;
  }
}
.header-menu {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.phone {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #471e5e;
  font-weight: 400;
  background-color: #3a234710;
  padding: 10px 20px 10px 20px;
  border-radius: 50px;
}

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

.block-title {
  margin-top: 120px;
  margin-bottom: 60px;
  color: #39184b;
  font-size: 32pt;
}

.cases {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: 40px;
  gap: 60px;
}

.cases div {
  min-width: 700px;
}

.block-case {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 700px;

  border-radius: 15px;
  border: 1px solid #eee;
  padding: 60px;
}

.block-case__logo {
  height: 60px;
  margin-bottom: 20px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.block-case:hover {
  border: 1px solid #3a234720;
  box-shadow: 0 3px 20px rgb(0 0 0 / 0.1);
}

.block-case:hover .block-case__logo {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

.block-case p {
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 60px;
}

.block-case span {
  cursor: pointer;
  background-color: #3a234710;
  color: #3a2347;
  border-radius: 6px;
  padding: 10px 20px;
  margin-right: 10px;
}

.block-case span:hover {
  background-color: #3a2347;
  color: white;
}

.services {
  max-width: 50%;
  border: 1px solid #eee;
  padding: 40px;
  height: 550px;
  border-radius: 25px 0 0 25px;
}

.services h2 {
  color: #39184b;
  border-bottom: 2px solid #39184b30;
}

.services div {
  gap: 80px;
}

.link-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.menu-item {
  margin-right: 30px;
  position: relative;
  top: -2px;
  font-weight: 400;
}

.menu-item:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  text-decoration-color: #39184b;
}

.phone:hover {
  background-color: #471e5e20;
}

.logo {
  cursor: pointer;
  margin-right: 60px;
}

.logo-small {
  display: none;
}

body::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

body::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f500;
}

body::-webkit-scrollbar-thumb {
  background-color: #471e5e;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

h2 {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 400;
}

.container {
  margin-left: 80px;
  margin-right: 80px;
}

.description {
  width: 500px;
  margin-left: 40px;
  margin-top: 120px;
  margin-bottom: 180px;
  font-size: 36px;
  line-height: 1.6;
  color: #39184b;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  margin-left: 40px;
  margin-bottom: 60px;
  gap: 60px;
}

.projects__item {
  font-size: 16px;
  width: 280px;
  line-height: 30px;
  cursor: pointer;
  padding: 60px;
  border: 1px solid transparent;
}

.projects__item:hover {
  border: 1px solid #eee;
  border-radius: 16px;
}

.itemText {
  padding-bottom: 24px;
}

.technology {
  margin-top: 24px;
  font-size: 14px;
  color: #999;
}

.projects__item .to-project {
  display: none;
}

.projects__item:hover .technology {
  display: none;
}

.projects__item:hover .to-project {
  display: block;
}

.to-project {
  margin-top: 24px;
  font-size: 14px;
  color: #471e5e;
  font-weight: 400;
}

footer {
  display: flex;
  justify-content: center;
  font-size: 18px;
  margin-left: 80px;
  margin-top: 180px;
  margin-bottom: 20px;
}

footer a {
  margin-left: 16px;
}

footer a:hover {
  border-bottom: none;
}

/* Media Queries */
@media only screen and (max-width: 1360px) {
  .header-content.flex-between {
    justify-content: center;
  }
  .description {
    display: none;
  }
}

@media only screen and (max-width: 960px) {
  body {
    background: none;
  }

  #tg {
    width: inherit;
    background-color: transparent;
    padding: 0;
  }

  .link-menu {
    font-size: 12px;
  }

  .description {
    display: none;
  }

  .projects {
    flex-direction: column;
  }

  .projects__item {
    margin-bottom: 30px;
  }

  footer {
    margin-top: 30px;
  }

  .cases {
    margin-left: 0px;
  }
  .cases div {
    min-width: 500px;
  }

  .form-img video {
    display: none;
  }

  .services {
    font-size: 14px;
    border: 0px solid #eee;
    padding: 0;
  }

  .services h2 {
    font-size: 18px;
  }

  footer {
    display: block;
  }

  #services .flex-row.form-img {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone span {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  .projects {
    margin-left: 0;
  }

  footer {
    display: inherit;
  }

  .header-menu {
    flex-direction: column;
    row-gap: 20px;
  }

  .phone span {
    display: initial;
  }

  .station {
    display: flex;
    justify-content: center;
  }

  .ship-one {
    top: 40vh;
  }

  .ship-two {
    top: 90vh;
  }

  #tg {
    padding: 20px 0 40px 0;
    border-top: 1px #ccc solid;
    border-bottom: 1px #ccc solid;
    background-color: #fff;
    border-radius: 0;
    width: auto;
  }

  #tg > div {
    margin-bottom: 20px;
  }

  .form-img {
    justify-content: start;
  }

  #services .flex-row.form-img {
    margin-left: 1rem;
  }

  .block-title {
    margin-left: 1rem;
  }

  .cases {
    margin-left: 1rem;
  }
  .cases div {
    min-width: 300px;
    padding: 0;
    border: 0px solid transparent;
  }

  .block-case:hover {
    border: 0px solid #3a234720;
    box-shadow: 0 0px 0px rgb(0 0 0 / 0);
  }

  .block-case span {
    display: inline-block;
    margin-bottom: 20px;
  }

  .projects__item {
    margin-left: 1rem;
  }

  .form-group > input,
  .form-group > textarea {
    width: 200px;
  }

  .form-img > img {
    display: none;
  }

  .form-img > video {
    display: none;
  }

  .back {
    display: none;
  }

  .logo-big {
    display: none;
  }
  .logo-small {
    display: initial;
  }
  .container {
    margin-left: 40px;
    margin-right: 40px;
  }

  h2 {
    font-size: 16px;
  }

  .description {
    font-size: 18px;
    margin-top: 150px;
  }

  footer {
    font-size: 14px;
    line-height: 2;
    margin-left: 40px;
  }
}

/* Animations */

.fadeIn {
  animation: fadeIn 1.5s;
}

.fadeOut {
  animation: fadeOut 1.5s;
}

.slide-box {
  --s: 25vmin;
  --p: calc(var(--s) / 2);
  --c1: #71204e;
  --c2: #471e5e;
  --c3: #3a2347;
  --bg: var(--c3);
  --d: 30000ms;
  --e: cubic-bezier(0.76, 0, 0.24, 1);

  background-color: var(--bg);
  background-image: linear-gradient(45deg, var(--c1) 25%, transparent 25%),
    linear-gradient(-45deg, var(--c1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--c2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--c2) 75%);
  background-size: var(--s) var(--s);
  background-position: calc(var(--p) * 1) calc(var(--p) * 0),
    calc(var(--p) * -1) calc(var(--p) * 1),
    calc(var(--p) * 1) calc(var(--p) * -1),
    calc(var(--p) * -1) calc(var(--p) * 0);
  animation: color var(--d) var(--e) infinite,
    position var(--d) var(--e) infinite;
}

@keyframes color {
  0%,
  25% {
    --bg: var(--c3);
  }
  26%,
  50% {
    --bg: var(--c1);
  }
  51%,
  75% {
    --bg: var(--c3);
  }
  76%,
  100% {
    --bg: var(--c2);
  }
}

@keyframes position {
  0% {
    background-position: calc(var(--p) * 1) calc(var(--p) * 0),
      calc(var(--p) * -1) calc(var(--p) * 1),
      calc(var(--p) * 1) calc(var(--p) * -1),
      calc(var(--p) * -1) calc(var(--p) * 0);
  }
  25% {
    background-position: calc(var(--p) * 1) calc(var(--p) * 4),
      calc(var(--p) * -1) calc(var(--p) * 5),
      calc(var(--p) * 1) calc(var(--p) * 3),
      calc(var(--p) * -1) calc(var(--p) * 4);
  }
  50% {
    background-position: calc(var(--p) * 3) calc(var(--p) * 8),
      calc(var(--p) * -3) calc(var(--p) * 9),
      calc(var(--p) * 2) calc(var(--p) * 7),
      calc(var(--p) * -2) calc(var(--p) * 8);
  }
  75% {
    background-position: calc(var(--p) * 3) calc(var(--p) * 12),
      calc(var(--p) * -3) calc(var(--p) * 13),
      calc(var(--p) * 2) calc(var(--p) * 11),
      calc(var(--p) * -2) calc(var(--p) * 12);
  }
  100% {
    background-position: calc(var(--p) * 5) calc(var(--p) * 16),
      calc(var(--p) * -5) calc(var(--p) * 17),
      calc(var(--p) * 5) calc(var(--p) * 15),
      calc(var(--p) * -5) calc(var(--p) * 16);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion) {
  body {
    animation: none;
  }
}
