@import "./normalize.css";
@import "./global.css";
@import "./header.css";
@import "./footer.css";

/* hero */
.hero {
  font-family: var(--font-base);
  color: #023c6c;
}

.hero__inner {
  background: url("../imgs/main2.jpg") 50% 50% no-repeat;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
  height: calc(100vh - 111px);
}

.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero__content {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  max-width: 500px;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero__title {
  line-height: 1.3;
  font-size: 32px;
  font-weight: 700;
}

.hero__img {
  margin-bottom: 100px;
}

.hero__btn {
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 5px 10px;
  min-width: 150px;
}

/* company */
.company {
  padding-top: 100px;
}

.company__title {
  margin-bottom: 25px;
}

.company_subtitle {
  font-size: 22px;
  font-family: var(--font-base);
  color: #023c6c;
  font-weight: 400;
  margin-bottom: 25px;
  margin-left: 35px;
}

.company__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.company__list-item {
  font-family: var(--font-base);
  color: #023c6c;
  font-size: 22px;
  display: inline-block;
}

.company__list-item:nth-child(1) {
  margin-left: 190px;
}

.company__list-item:nth-child(2) {
  margin-left: 300px;
}

.company__list-item:nth-child(3) {
  margin-left: 345px;
}

.company__list-item:nth-child(4) {
  margin-left: 385px;
}

.company__list-item:nth-child(5) {
  margin-left: 415px;
}

.company__list-item:nth-child(6) {
  margin-left: 440px;
}

.company__item-title {
  font-size: clamp(20px, 2.08vw, 35px);
  font-weight: 700;
}

.company_subtitle,
.company__list-item {
  opacity: 0;
  transform: translateX(-500px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.company__list-item {
  transition-delay: 0s;
}

.company__list-item:nth-child(1) {
  transition-delay: 0.2s;
}

.company__list-item:nth-child(2) {
  transition-delay: 0.4s;
}

.company__list-item:nth-child(3) {
  transition-delay: 0.6s;
}

.company__list-item:nth-child(4) {
  transition-delay: 0.8s;
}

.company__list-item:nth-child(5) {
  transition-delay: 1s;
}

.company__list-item:nth-child(6) {
  transition-delay: 1.2s;
}

.company--visible .company_subtitle,
.company--visible .company__list-item {
  opacity: 1;
  transform: translateX(0);
}

/* about */
.about {
  padding-top: 100px;
  padding-bottom: 100px;
}

.about__title {
  margin-bottom: 50px;
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
}

.about__lit-item {
  font-family: var(--font-base);
  color: #023c6c;
  display: flex;
  flex-direction: column;
  justify-content: start;
  background-color: #aec0d0;
  padding: 30px;
  border-radius: 10px;
}

.about__item-title {
  position: relative;
  margin-bottom: 5px;
}

.about__item-title::after {
  position: absolute;
  top: -80%;
  right: 50%;
  transform: translate(50%, -80%);
}

.rocket::after {
  content: "";
  background: url("../imgs/icons/about1.png") no-repeat;
  width: 50px;
  height: 50px;
  background-size: cover;
}

.prof::after {
  content: "";
  background: url("../imgs/icons/about2.png") no-repeat;
  width: 50px;
  height: 60px;
  background-size: cover;
}

.hru::after {
  content: "";
  background: url("../imgs/icons/about3.png") no-repeat;
  width: 55px;
  height: 60px;
  background-size: cover;
}

.doverie::after {
  position: absolute;
  content: "";
  background: url("../imgs/icons/about4.png") no-repeat;
  width: 120px;
  height: 50px;
  background-size: cover;
}

.about__item-title {
  text-align: center;
}

/* objects */
.objects {
  padding-bottom: 100px;
  font-family: var(--font-base);
}

.objects__title {
  margin-bottom: 50px;
}

.objects__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.objects__grid {
  display: grid;
  opacity: 0;
  visibility: hidden;
  justify-content: space-between;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  grid-template-columns: repeat(auto-fill, minmax(155px, 300px));
  gap: 25px;
}

.objects__item {
  text-align: center;
}

.objects__item-link {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #023c6c;
  font-weight: 400;
}

.objects__item-img img {
  border-radius: 20px;
}

.visible {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hidden {
  display: none;
}

/* service */
.service {
  font-family: var(--font-base);
  color: #023c6c;
}

.service__inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  height: 600px;
}

.service__main-img {
  width: 400px;
  margin-bottom: 50px;
}

.service__main-title {
  margin-bottom: 10px;
}

.service__main-content {
  font-weight: 400;
}

.service__rectangle {
  width: 10px;
  background-color: #023c6c;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service__circle {
  width: 20px;
  height: 20px;
  background-color: #023c6c;
  position: absolute;
  border-radius: 50%;
  transform: translateX(-43%);
}

.service__circle:nth-child(1) {
  top: 100px;
}

.service__circle:nth-child(2) {
  top: 250px;
}

.service__circle:nth-child(3) {
  top: 400px;
}

.service__circle:nth-child(4) {
  top: 550px;
}

.service__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.service__content-title {
  line-height: 18px;
  margin-bottom: 15px;
}

.service__content-text {
  color: #000;
  font-weight: 400;
  line-height: 16px;
}

/* sertificate */
.sertificate {
  padding-bottom: 100px;
}

.sertificate__title {
  margin-bottom: 50px;
}


/* adaptive */
@media (width < 1200px) {
  .company__list .company__list-item, .company_subtitle {
    margin-left: 0;
  }
}

@media (width < 990px) {
  .objects__grid {
    justify-content: space-around;
    gap: 10px;
  }
}

@media (width < 768px) {
  .hero__panel {
    grid-template-columns: repeat(10, 1fr);
  }

  .hero__panel-item {
    grid-column: 5 span;
  }

  .about__list {
    grid-template-columns: 1fr
  }
}