@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital@0;1&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 {
  margin-bottom: 17px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 5px;
  text-transform: uppercase;

  color: #676770;
}

.subtitle {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #8e8e9c;
}

.common-section {
  text-align: center;
  padding: 80px 0;
}

.common-section--dark {
  background-color: #192024;
}

.common-section--dark * {
  color: #ffffff;
}

.common-section--dark .card h4 {
  color: #ffffff !important;
}

.common-section--dark .subtitle {
  color: #e8e8e8 !important;
}

/* Header Section */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  padding: 18px 0;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(138, 138, 138, 0.712);
  z-index: 100;
}

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

.logo {
  color: #69b9ff;
  font-size: 25px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.header__nav ul {
  display: flex;
}

.header__nav li + li {
  margin-left: 40px;
}

.header__nav a {
  font-size: 16px;
  color: #676770;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: #0082f3;
}

.header__nav a:active {
  color: #0065bd;
}

/* Welcome Section */
.welcome {
  color: #ffffff;
  text-align: center;
  min-height: 600px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 244px;
  padding-bottom: 195px;

  background-color: #192024;
  background-image: url("../IMGs/Welcome-BG.png");
  background-size: cover;
  background-position: center;
}

.welcome__heading {
  font-size: 59px;
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 106px;
}

.welcome__links > * + * {
  margin-left: 20px;
}

.sing-up-link {
  display: inline-block;
  padding: 12px 30px;
  background-color: #69b9ff;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #69b9ff;
  border-radius: 4px;

  transition: background-color 0.1s;
}

.sing-up-link:hover {
  background-color: #7ac1ff;
}

.sing-up-link:active {
  background-color: #41a6ff;
}

.learn-more-link {
  display: inline-block;
  padding: 12px 31px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  transition:
    border-color,
    background-color 0.1s;
}

.learn-more-link:hover {
  background-color: rgba(225, 225, 255, 0.363);
}

.learn-more-link:active {
  border-color: #aaaaaa;
  background-color: rgba(225, 225, 255, 0.5);
}

/* About Us Section */

.about-us .cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.about-us .card {
  padding: 36px 16px 23px;
  padding-bottom: 23px;
  max-width: 300px;
  border: 1px solid #dcebf7;
  border-radius: 5px;
}

.about-us .card img {
  margin-bottom: 20px;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.about-us .card h4 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 7px;
  text-transform: uppercase;

  color: #676770;
  margin-bottom: 14px;
}

.services .cards-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

.services .card {
  width: 45%;
}

.services .card img {
  margin-bottom: 20px;
  width: 430px;
  height: auto;
  object-fit: contain;
}

.services .card h4 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-bottom: 23px;
}

.services .learn-more-link {
  margin-top: 17px;
  margin-bottom: 16px;
}

/* Tabs Section */

.tabs-nav {
  margin-bottom: 52px;
}

.tabs-nav button {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #ffffff;
  background-color: #92a0ad;
  border-radius: 4px;
  padding: 1px 30px;
}

.tabs-nav button + button {
  margin-left: 16px;
}

.tabs-nav button.active {
  background-color: #2e80b6;
}

.tabs-information {
  animation: fade 1s;
}

@keyframes fade {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

.tabs-information img {
  margin-bottom: 16px;
}

.tabs-information h4 {
  font-size: 30px;
  line-height: 1.2;
  color: #676770;
  margin-bottom: 14px;
}

.tabs-desc {
  padding-inline: 127px;
}

/* Footer Section */

.footer h5 {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #676770;
  margin-bottom: 22px;
}

.footer__desc {
  margin: 30px 0;
}

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

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

.footer__desc a {
  font-size: 13px;
  line-height: 1.5;

  color: #668cad;
}

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

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

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

  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #d5d5e0;
}

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

.footer__social li a {
  margin-left: 10px;
}

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

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

.footer__copy p {
  color: #9e9e9e;
  text-align: center;
}

/* Media */

@media (max-width: 732px) {
  .footer__desc {
    margin-top: 0;
  }

  .footer__desc-container {
    justify-content: space-evenly;
  }
}

@media (max-width: 700px) {
  .services .cards-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .services .card {
    width: 80%;
  }

  .title-wrapper {
    margin-bottom: 20px;
  }

  .tabs-desc {
    padding-inline: 15px;
  }
}

@media (max-width: 660px) {
  .tabs-nav {
    margin-bottom: 20px;
  }

  .tabs-nav button {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
  }

  .tabs-nav button + button {
    margin-top: 20px;
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .header__nav li + li {
    margin-left: 20px;
  }

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

  .welcome__links > * {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome__links > * + * {
    margin-top: 10px;
  }

  body {
    font-size: 12px;
  }

  .about-us .card h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .services .card h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .title-wrapper {
    margin-bottom: 30px;
  }

  .services .card .learn-more-link {
    font-size: 13px;
  }

  .tabs-information h4 {
    font-size: 20px;
  }
}
