.container {
  color: #000000;
  background-color: #fefefe;
  font-family: "Inter", Helvetica;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 1900px;
  position: relative;
  width: 100%;
}

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.figure {
  background-image: url(../img/figure.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  height: 500px;
  right: 0;
  width: 100%;
  max-width: 620px;
  z-index: 0;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.overlap {
  display: flex;
  flex-direction: column;
  height: 500px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.navbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  gap: 10px 20px;
  position: relative;
  margin: 30px 20px 20px;
}

.navbar a {
  color: #000000;
}

.logo-short-red {
  width: 30px;
  height: 30px;
}

.navbar::before {
  content: '';
  position: absolute;
  background-color: #000000;
  background-repeat: no-repeat;
  width: 90%;
  height: 1px;
  bottom: -30px;
  left: 0;
}

.navbar::after {
  content: '';
  position: absolute;
  background-image: url(../img/star-black.svg);
  background-size: 66px 66px;
  background-repeat: no-repeat;
  width: 66px;
  height: 66px;
  bottom: -62px;
  left: 84%;
}

.logo-text {
  font-weight: 700;
  margin: 15px 20px;
}

.logo-text__big {
  font-size: 40px;
  line-height: 1;
}

.logo-text__small {
  font-size: 16px;
}

.figure-2 {
  width: 120px;
  height: 110px;
  opacity: 0.6;
  background-image: url(../img/star-shape.png);
  background-size: 100% 100%;
  margin-left: 20px;
  margin-top: auto;
}

.header {
  font-size: 34px;
  font-weight: 700;
  margin: 25px 0;
  width: min-content;
}

.products {
  margin: 20px;
}

.info-block {
  background-color: #F8F2F2;
  border-radius: 30px;
  border: 2px solid;
  border-color: #000000;
  margin-bottom: 10px;
  padding: 30px 15px;
}

.info-block__title {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 700;
  justify-content: space-between;
  margin-left: 50px;
  margin-bottom: 20px;
  position: relative;
}

.info-block__title::before {
  content: '';
  position: absolute;
  background-image: url(../img/star-black.svg);
  background-size: 45px 45px;
  background-repeat: no-repeat;
  width: 45px;
  height: 45px;
  top: 0;
  left: -50px;
}

.info-block__button {
  background-color: transparent;
  border: none;
}

.info-block__arrow {
  height: 42px;
  margin: 20px;
  width: 81px;
  transition: all 0.5s ease-in-out;
}

.info-block__arrow--opened {
  transform: rotate(180deg);
}

.info-block__text {
  font-size: 16px;
  margin: 8px 0 8px 50px;
}

.drop-down {
  display: none;
  transition: display 0.5s ease-in-out;
}

.drop-down--opened {
  display: block;
}

.system,
.advantage {
  display: flex;
  flex-direction: column;
  margin: 60px 20px;
}

.system__text {
  font-size: 20px;
  font-weight: 700;
  margin-left: 60px;
  margin-top: 30px;
  position: relative;
}

.system__text::before {
  content: '';
  position: absolute;
  background-image: url(../img/star-black.svg);
  background-size: 45px 45px;
  background-repeat: no-repeat;
  width: 45px;
  height: 45px;
  top: 0;
  left: -60px;
}

.sphere {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
}

.sphere__img {
  width: 100%;
  height: 100%;
}

.sphere::before {
  content: '';
  position: absolute;
  background-image: url(../img/star-in-circle.png);
  background-size: 60px 60px;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  top: 25px;
  left: 10px;
}

.sphere::after {
  content: '';
  background-image: url(../img/star-in-circle.png);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  bottom: 20px;
  height: 50px;
  position: absolute;
  right: 50px;
  transform: rotate(45deg);
  width: 50px;
}

.services {
  margin: 60px 20px 30px;
}

.services__text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  margin: 30px 20px;
}

.block {
  align-items: center;
  background-color: #f8f2f2;
  border-radius: 20px;
  border: 2px solid;
  border-color: #000000;
  display: flex;
  height: 100px;
  padding: 20px;
  margin: 10px 0;
}

.block__text {
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
}

.stack {
  margin: 60px 20px;
}

.stack__wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 20px 30px;
  position: relative;
}

.stack__icon {
  align-items: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
  max-height: 150px;
}

.stack__icon img {
  height: auto;
  max-height: 150px;
  max-width: 300px;
  object-fit: contain;
  width: auto;
}

.focus {
  margin: 20px;
}

.team {
  margin: 60px 20px;
}

.focus__wrap,
.team__wrap {
  align-items: flex-start;
  background-color: #f8f2f2;
  border: 2px solid #000000;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
}

.advantage__textBlock {
  align-items: flex-start;
  border: 2px solid #000000;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
}

.projects {
  margin: 20px;
}

.projects__wrap {
  align-items: flex-start;
  background-color: #f8f2f2;
  border: 2px solid #000000;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
}

.projects__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 2;
}

.projects__list li {
  line-height: 1.5;
  margin: 15px 0 15px 30px;
  position: relative;
}

.projects__list li::before {
  content: '';
  position: absolute;
  background-image: url(../img/star-small.svg);
  background-size: 25px 25px;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  top: calc(50% - 12.5px);
  left: -40px;
}

.focus__wrap::before,
.team__wrap::before {
  content: '';
  position: absolute;
  background-image: url(../img/star-black.svg);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  top: -26px;
  left: 50px;
}

.advantage__textBlock::after,
.focus__wrap::after,
.team__wrap::after {
  content: '';
  position: absolute;
  background-image: url(../img/star-black.svg);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  bottom: -25px;
  right: 70px;
}

.team__img {
  border: 2px solid #000000;
  border-radius: 20px;
  height: 170px;
  padding: 5px;
  width: 256px;
}

.focus__text,
.advantage__text,
.team__text {
  font-size: 18px;
  font-weight: 500;
  margin-top: 20px;
}

.team__name {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
}

.team__position {
  color: #db1717;
  font-size: 18px;
  font-weight: 600;
}

.contacts {
  margin: 60px 20px;
}

.contacts__wrap {
  align-items: center;
  border-radius: 30px;
  border: 2px solid #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contacts__map {
  background-image: url(../img/map.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  flex-grow: 2;
  height: 215px;
  width: 100%;
}

.contacts__block {
  margin: 30px 0;
}

.contacts__details p,
.contacts__details a {
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-text-fill-color: #000000;
}

.footer {
  margin: 60px 20px;
  padding: 25px 0 60px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  background-color: #000000;
  background-repeat: no-repeat;
  width: 90%;
  height: 1px;
  top: 0;
  left: 5%;
}

.footer__text {
  color: #000000;
  font-family: "Inter", Helvetica;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.footer__text a {
  color: #000000;
  -webkit-text-fill-color: #000000;
}

.footer__wrap {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer__address,
.footer__schedule {
  margin-bottom: 30px;
}

.footer__logo {
  display: flex;
  height: 60px;
  margin: 0 auto;
  width: 60px;
}

@media screen and (min-width: 540px) {

  .figure {
    background-position: top;
    margin-top: 70px;
  }

  .navbar {
    margin: 30px 40px 20px;
  }

  .logo-text {
    margin: 15px 40px;
  }

  .figure-2 {
    margin-left: 40px;
  }

  .products {
    margin: 20px 40px;
  }

  .system,
  .services,
  .focus,
  .advantage,
  .team,
  .projects,
  .stack,
  .contacts {
    margin: 60px 40px;
  }

  .footer {
    margin: 60px 40px;
    padding-bottom: 60px;
  }
}

@media screen and (min-width: 1200px) {

  .figure {
    background-size: 80% auto;
    background-position: top right;
    height: 1000px;
    max-width: 1410px;
  }

  .overlap {
    height: 825px;
    margin: 0 auto 100px;
  }

  .navbar {
    flex-wrap: nowrap;
    font-size: 18px;
    gap: 30px;
    margin: 30px 100px;
    width: 80%;
  }

  .navbar::before {
    width: 98%;
    height: 2px;
  }

  .navbar::after {
    left: 94%;
  }

  .logo-short-red {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    margin: 90px 100px;
  }
  
  .logo-text__big {
    font-size: 80px;
  }
  
  .logo-text__small {
    font-size: 32px;
  }

  .figure-2 {
    width: 240px;
    height: 220px;
    background-size: 100% 100%;
    margin-left: 100px;
  }

  .header {
    background-color: #fefefe;
    font-size: 60px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
  }

  .products {
    margin: 20px 100px;
  }

  .info-block {
    border-radius: 60px;
    margin-bottom: 10px;
    padding: 40px;
  }
  
  .info-block__title {
    align-items: center;
    flex-direction: row;
    font-size: 28px;
    margin-bottom: 40px;
    margin-left: 80px;
  }

  .info-block__title::before {
    background-size: 60px 60px;
    width: 60px;
    height: 60px;
    left: -70px;
  }

  .info-block__arrow {
    margin: 0;
  }
  
  .info-block__text {
    font-size: 18px;
    margin: 8px 120px 8px 80px;
    width: 80%;
  }

  .info-blocks {
    display: flex;
    flex-wrap: wrap;
  }

  .info-block__left,
  .info-block__right {
    width: 45%;
  }

  .system,
  .advantage {
    align-items: center;
    flex-direction: row;
    margin: 150px 100px;
    position: relative;
  }

  .system::before,
  .advantage::before {
    content: '';
    position: absolute;
    border: 2px solid #000000;
    border-radius: 60px;
    width: 100%;
    height: 70%;
    bottom: 0;
    left: 0;
  }

  .advantage::before {
    height: 75%;
  }

  .system__wrap {
    margin-bottom: 100px;
  }

  .system__text {
    font-size: 28px;
    margin-left: 100px;
    margin-top: 50px;
  }

  .sphere {
    width: 45%;
    height: 45%;
    margin: 0 0 0 auto;
  }

  .sphere__img {
    background-color: #fefefe;
    height: 90%;
    width: 90%;
  }

  .sphere::before {
    background-size: 114px 114px;
    width: 114px;
    height: 114px;
    top: 30px;
    left: 35px;
  }
  
  .sphere::after {
    background-size: 80px 80px;
    width: 80px;
    height: 80px;
    bottom: 45px;
    right: 80px;
  }
  
  .services {
    margin: 150px 100px;
  }

  .services__text {
    font-size: 26px;
  }

  .blocks {
    display: flex;
    position: relative;
    margin-bottom: 120px;
  }

  .blocks::before {
    content: '';
    position: absolute;
    background-image: url(../img/figure-2.png);
    background-size: 888px 708px;
    background-repeat: no-repeat;
    width: 888px;
    height: 708px;
    top: -40px;
    right: 0;
    z-index: 2;
  }

  .blocks::after {
    content: '';
    position: absolute;
    background-image: url(../img/figure-3.png);
    background-size: 915px 380px;
    background-repeat: no-repeat;
    width: 915px;
    height: 380px;
    bottom: -95px;
    left: 0;
  }
  
  .block {
    background-color: transparent;
    border-radius: 60px;
    height: 200px;
    padding: 40px 80px;
    position: relative;
    margin: 30px 0;
    max-width: 600px;
    z-index: 1;
  }

  .colored {
    background-color: #f8f2f2;
    z-index: 0;
  }

  .block__right {
    margin-top: 115px;
    margin-left: -60px;
  }

  .block__text {
    font-size: 28px;
  }

  .stack__wrap {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 130px;
  }
  
  .stack__icon {
    margin: 40px 20px;
  }

  .focus,
  .advantage,
  .team,
  .stack,
  .projects {
    margin: 150px 100px;
  }
  
  .focus__wrap,
  .advantage__textBlock,
  .projects__wrap,
  .team__wrap {
    align-items: flex-start;
    border-radius: 60px;
    justify-content: flex-start;
    padding: 100px 150px;
  }

  .advantage__textBlock  {
    border: none;
    padding: 20px 150px 100px;
  }

  .projects__wrap,
  .team__wrap {
    flex-direction: row;
  }

  .projects__wrap {
    gap: 50px;
  }

  .team__wrap::before {
    left: 350px;
  }
  
  .team__wrap::after {
    right: 120px;
  }

  .team__text-block {
    margin-left: 100px;
    width: 55%;
  }

  .contacts {
    margin: 150px 100px 50px;
  }

  .contacts__wrap {
    border-radius: 60px;
    flex-direction: row;
  }
  
  .contacts__map {
    border-radius: 60px;
    height: 574px;
  }
  
  .contacts__details {
    margin: 30px;
    min-width: 30%;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 0;
    margin: 50px 100px;
  }

  .footer::before {
    width: 100%;
    height: 2px;
    left: 0;
  }

  .footer__wrap {
    gap: 30px;
  }

  .footer__logo {
    margin: 0;
  }
}
