body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.container {
  max-width: 970px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

html {
  scroll-behavior: smooth;
}

p {
  color: #6a859c;
  line-height: 1.8;
}

.hide {
  display: none !important;
}

/* Header */
.header {
  padding: 20px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: white;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #69b9ff;
}

.header__list {
  display: flex;
  gap: 40px;
}

.header__link,
.header__link:visited {
  font-size: 16px;
  color: #676770;
  display: inline-block;
  transition: color 0.2s ease;
}

.header__nav .header__link.active {
  color: #0082f3;
}

.header__link:hover {
  color: #0082f3;
}

.header__link:active {
  color: #0066c9;
}

/* Welcome */
.welcome {
  min-height: 600px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 195px 0;
  background-image: url("./images/welcome-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: center;
}

.welcome__heading {
  font-size: 59px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 100px;
}

.welcome__links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.link {
  display: inline-block;
  font-size: 16px;
  padding: 10px 30px;
  border-radius: 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-primary {
  background: #69b9ff;
  transition: background-color 0.2s;
}

.link-primary:hover {
  background: #8ac9ff;
}

.link-primary:active {
  background: #1994ff;
}

.link-secondary {
  border: 1px solid #fff;
  transition: all 0.2s;
}

.link-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.link-secondary:active {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.5);
}

/* About */
.about {
  padding: 80px 0;
}

.text-wrapper {
  text-align: center;
}

.title {
  font-size: 30px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #676770;
  margin-bottom: 15px;
}

.about__subtitle {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e8e9c;
}

.card-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.card {
  border: 1px solid #dcebf7;
  border-radius: 5px;
  max-width: 300px;
  text-align: center;
  padding: 35px 15px 20px;
}

.card__img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  margin-bottom: 20px;
}

.card__title {
  font-size: 20px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #676770;
  margin-bottom: 15px;
}

.card__desc {
  width: 268px;
  line-height: 1.79;
}

/* Services */
.service {
  padding: 80px 0;
  background: #192024;
  text-align: center;
}

.service__title {
  font-size: 30px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 15px;
}

.service__subtitle {
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8e8e8;
}

.service-wrpper {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 60px;
}

.service__img {
  margin-bottom: 10px;
}

.service__card-title {
  font-size: 20px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.service__card-desc {
  max-width: 400px;
  color: #fff;
  margin-bottom: 15px;
}

.service__link {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 30px;
  border: 1px solid #fff;
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.service__link:hover {
  background-color: #fff;
  color: #000;
}

.service__link:active {
  background-color: #ddd;
  border-color: #ddd;
  color: #000;
}

/* Tabs */
.tab {
  padding: 80px 0;
}

.tabs__btn {
  padding: 0 30px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #92a0ad;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.tabs__nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 70px;
  margin-bottom: 50px;
}

.tabs__nav .tabs__btn:hover {
  background: #3a9ad9;
  color: #fff;
}

.tabs__nav .tabs__btn:active {
  background: #246b94;
}

.tabs__nav .tabs__btn.active {
  background: #2e80b6;
  color: #fff;
}

.tabs__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item__img {
  margin-bottom: 15px;
}

.item__title {
  font-size: 31px;
  color: #676770;
  margin-bottom: 15px;
}

.tabs__desc {
  text-align: center;
  max-width: 709px;
  margin: auto;
}

/* Footer */


/* ------------ FOOTER ------------ */

.footer {}

.footer__desc {
  padding: 35px 0;
}

.footer__desc h4 {
  margin-bottom: 25px;

  font-size: 18px;
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #676770;
}

.footer__desc a {
  font-size: 13px;
  color: #668CAD;
}

.footer__desc li {
  height: 30px;
  position: relative;
}

.footer__desc li::before {
  content: "";
  width: 100%;
  height: 1px;

  position: absolute;
  right: 0;
  bottom: 0;

  background-color: #D5D5E0;
}

.footer__desc li+li {
  margin-top: 6px;
}

.footer__desc-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.footer__desc-container>* {
  width: 30%;
  min-width: 220px;
}

.footer__social li::before {
  width: calc(100% - 34px);
}

.footer__social img {
  margin-right: 10px;
}

.footer__about {}

.footer__links {}

.footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer__copy {
  padding: 40px 0;
  text-align: center;
  background-color: #383838;
}

.footer__copy p {
  color: #9E9E9E;
}


@media (max-width: 829px) {
  .footer__desc-container {
    justify-content: space-evenly;
  }

  .footer__desc h4 {
    margin-bottom: 10px;
  }

  .footer__desc {
    padding-top: 0;
  }
}

/* adaptive tablet */

@media (max-width: 400px) {
  .header__item+.header__item {
    margin-left: 15px;
  }

  .welcome__heading {
    font-size: 40px;
    margin-bottom: 50px;
  }

  .welcome__links {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .welcome__links a {
    width: 80%;
    margin: auto;
    display: block;
  }

  body {
    font-size: 12px;
  }

  .card__title {
    font-size: 16px;
  }

  .service__card-title {
    font-size: 16px;
  }

  .service__link {
    font-size: 14px;
  }

  .item__title {
    font-size: 24px;
  }
}

@media (max-width:600px) {
  .service-wrpper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .service__card {
    width: 80%;
  }

  .text-wrapper {
    margin-bottom: 40px;
  }

  .service__link {
    font-size: 14px;
  }

}

@media (max-width:660px) {
  .tabs__nav {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .tabs__btn {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
  }
}