@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.container {
  max-width: 970px;
  padding: 0 15px;
  margin: 0 auto;
}

p {
  color: #6A859C; 
  line-height: 1.8;
}

.hide {
  display: none !important;
}

.title-wrapper {
  margin-bottom: 60px;
}

.title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #676770;
  margin-bottom: 17px;
}

.subtitle {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e8e9c;
}

.common-section {
  text-align: center;
  padding: 80px 0;
}

.common-section--dark {
  background-color: #192024;
}

.common-section--dark * {
  color: #fff;
}

.common-section--dark .subtitle {
  color: #E8E8E8;
}

/* ------------ HEADER ------------ */

.header {
  padding: 20px 0;
  width: 100%;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 25px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #69b9ff;
}

.header__nav ul {
  display: flex;
}

.header__nav li + li {
  margin-left: 40px;
}

.header__nav a {
  font-size: 16px;
  color: #676770;
  transition: 0.2s;
}

.header__nav a:hover {
  font-size: 15px;
  color: #0082f3;
}

.header__nav a:active {
  color: #004887;
}

/* ------------ WELCOME SECTION ------------ */

.welcome {
  min-height: 600px;
  height: 100vh;
  padding: 195px 0px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;
  background-color: #282936;
  background-image: url("img/welcome.jpg");
  background-size: cover;
  background-position: center;
}

.welcome__heading {
  margin-bottom: 100px;
  font-size: 59px;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.welcome__links > * + * {
  margin-left: 20px;
}

.link-primary {
  display: inline-block;
  padding: 11px 30px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  background: #69b9ff;

  transition: background-color 0.3s;
}

.link-primary:hover {
  background-color: #7AC1FF; 
}

.link-primary:active {
  background-color: #1994FF;
}

.link {
  display: inline-block;
  padding: 10px 30px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #fff;
  border-radius: 4px;

  transition: background-color 0.3s, border-color 0.3s;
}

.link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5); 
}

.link:active {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.5); 
}

/* ------------ ABOUT (WHAT WE DO) SECTION ------------ */

.about .cards-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about .card {
  padding: 35px 15px 20px;
  max-width: 300px;
  border: 1px solid #dcebf7;
  border-radius: 5px;
}

.about .card img {
  margin-bottom: 20px;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.about .card h4 {
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #676770;
}

/* ------------ SERVICES SECTION ------------ */

.services .cards-wrapper {
  display: flex;
  justify-content: space-between;
}

.services .card {
  width: 45%;
}

.services .card img {
  margin-bottom: 20px;
  width: 430px;
  height: 287px;
  object-fit: contain;
}

.services .card h4 {
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
}

.services .link {
  margin-top: 15px;
}

/* ------------ TABS SECTION ------------ */

.tabs__nav {
  margin-bottom: 50px;
}

.tabs__nav button {
  padding: 0 30px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 4px;
  background: #92a0ad;
}

.tabs__nav button.active {
  background: #2e80b6;
}

.tabs__nav button + button {
  margin-left: 15px;
}

.tabs__item {
  animation: fade 1s;
}

@keyframes fade {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

.tabs__item img {
  margin-bottom: 15px;
}

.tabs__item h4 {
  margin-bottom: 15px;
  font-size: 31px;
  line-height: 116%;
  color: #676770;
}

.tabs__desc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------ FOOTER ------------ */

.footer__desc {
  padding: 35px 0;
}

.footer__desc h4 {
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 111%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #676770;
}

.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__desc a {
  font-size: 13px;
  line-height: 154%;
  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__social li::before {
  width: calc(100% - 34px);
}

.footer__desc li + li {
  margin-top: 6px;
}

.footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 10px;
}

.footer__copy {
  padding: 40px 0;
  background: #383838;
  text-align: center;
}

.footer__copy p {
  color: #9e9e9e;
}

/* ------------ MEDIA ------------ */

@media (max-width: 829px) {
  .footer__desc-container {
    justify-content: space-evenly;
  }

  .footer__desc h4 {
    margin-bottom: 15px;
  }

  .footer__desc {
    padding-top: 0;
  }
}

@media (max-width: 660px) {
  .tabs__nav {
    margin-bottom: 30px;
  }

  .tabs__nav button {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
  }

  .tabs__nav button + button {
    margin-left: auto;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .services .cards-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .services .card {
    width: 80%;
  }

  .title-wrapper {
    margin-bottom: 40px;
  }
}

@media (max-width: 400px) {
  .header__nav li + li {
    margin-left: 15px;
  }

  .welcome__heading {
    font-size: 40px;
    margin-bottom: 50px;
  }

  .welcome__links a {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome__links > * + * {
    margin-top: 20px;
  }

  body {
    font-size: 12px;
  }

  .about .card h4 {
    font-size: 16px;
  }

  .services .card h4 {
    font-size: 16px;
  }

  .services .card .link {
    font-size: 14px;
  }

  .tabs__item h4 {
    font-size: 24px;
  }
}