body {
  font-family: 'Roboto', sans-serif;
  color: #434455;
  background-color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
}

ol,
ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

button {
  padding: 0;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  text-decoration: none;
}

input {
  padding: 0;
  border: 0;
}

.visually-hidden {
  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;
}

/* ----- HEDER ------ */

.container {
  display: flex;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding: 0 15px;
  }
}

.page-header {
  border-bottom: 1px solid #e7e9fc;
  box-shadow:
    0 1px 6px 0 #2e2f4214,
    0 1px 1px 0 #2e2f4229,
    0 2px 1px 0 #2e2f4214;
}

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

@media screen and (min-width: 768px) {
  .header-container {
    max-width: 768px;
    padding: 0 16px;
  }
}

@media screen and (min-width: 1158px) {
  .header-container {
    max-width: 1158px;
    padding: 0 15px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 120px;
  margin-right: auto;
}

@media screen and (min-width: 1158px) {
  .header-nav {
    gap: 76px;
  }
}

.nav-item {
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo {
  color: #4d5ae5;
  font-family: Raleway;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 3%;
  text-transform: uppercase;
  display: block;
}

.black {
  color: #2e2f42;
}


.mobile-menu-button {
  display: block;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  stroke: #111;
  line-height: 0;
  color: #2f2f37;
  z-index: 999;
}

@media screen and (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }

  .mobile-menu-button .mobil-menu-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
}

.nav-list {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: #2e2f42;
  padding-top: 24px;
  padding-bottom: 24px;
  cursor: pointer;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
  color: #404bbf;
}

.nav-link.current {
  position: relative;
}

.nav-link.current::after {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
  left: 0;
  bottom: -1px;
}

.nav-list,
.kontakts {
  display: none;
}

@media screen and (min-width: 768px) {

  .nav-list,
  .kontakts {
    display: flex;
    font-style: normal;
  }
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

@media screen and (min-width: 1158px) {
  .contacts-list {
    flex-direction: row;
    gap: 40px;
    padding: 0;
  }
}

.contacts-link {
  display: block;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 4%;
  color: #434455;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link:hover,
.contacts-link:focus {
  color: #404bbf;
}

/* H E R O */

.hero-container {
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media screen and (min-width: 768px) {
  .hero-container {
    max-width: 768px;
  }
}

@media screen and (min-width: 1158px) {
  .hero-container {
    max-width: 1158px;
    padding: 0 15px;
  }
}

.business {
  background-color: #2e2f42;

  background-image:
    linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url('../images/mobihero_bg-x.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 320px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 72px;
}

@media screen and (min-resolution: 192dpi) {
  .business {
    background-image:
      linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url('../images/mobihero_bg-2x.jpg');
  }
}

@media screen and (min-width: 768px) {
  .business {
    background-image:
      linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url('../images/tablhero_bg-x.jpg');
    max-width: 768px;
    padding-top: 112px;
    padding-bottom: 112px;
  }
}

@media screen and (min-width: 768px) and (min-resolution: 192dpi) {
  .business {
    background-image:
      linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url('../images/tablhero_bg-2x.jpg');
  }
}

@media screen and (min-width: 1158px) {
  .business {
    background-image:
      linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url('../images/desk_office-x.jpg');
    max-width: 1440px;
    padding-top: 188px;
    padding-bottom: 188px;
  }
}

@media screen and (min-width: 1158px) and (min-resolution: 192dpi) {
  .business {
    background-image:
      linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url('../images/desk_office-2x.jpg');
  }
}

.business-text {
  max-width: 216px;
  margin-bottom: 72px;
  margin-left: 52px;
  margin-right: 52px;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 2%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .business-text {
    max-width: 496px;
    font-size: 56px;
    line-height: 60px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
  }
}

@media screen and (min-width: 1158px) {
  .business-text {
    margin-bottom: 48px;
  }
}

.button {
  min-width: 169px;
  height: 56px;
  border: none;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  margin-left: auto;
  margin-right: auto;
  background-color: #4d5ae5;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover,
.button:focus {
  background-color: #404bbf;
}

.button {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
}

/* section_ S T R A T E G I  */

@media screen and (min-width: 768px) {
  .container-spectxt {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

@media screen and (min-width: 1158px) {
  .container-spectxt {
    max-width: 1158px;
    padding: 0 15px;
  }
}

.specifik {
  display: block;
  padding-top: 96px;
  padding-bottom: 96px;
}

@media screen and (min-width: 1158px) {
  .specifik {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.spec-icons {
  display: flex;
  flex-direction: row;
  gap: 24px;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  background: #f4f4fd;
  width: 264px;
  height: 112px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

@media screen and (max-width: 1158px) {
  .spec-icons {
    display: none;
  }
}

.spec-line {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

@media screen and (min-width: 768px) {
  .spec-line {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
  }
}

@media screen and (min-width: 1158px) {
  .spec-line {
    gap: 24px;
  }
}

.featur {
  display: flex;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
  justify-content: center;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .featur {
    justify-content: start;
  }
}

@media screen and (min-width: 1158px) {
  .featur {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
  }
}

.advan {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #434455;
  justify-content: start;
}

@media screen and (min-width: 1158px) {
  .advan {
    font-weight: 400;
  }
}

@media screen and (min-width: 768px) {
  .spec-txt {
    min-width: 356px;
    flex: 1 0 calc((100% - 3 * 24px) / 4);
  }
}

@media screen and (min-width: 1158px) {
  .spec-txt {
    min-width: 264px;
  }
}

/* section_ O U R  T E A M */

.komand {
  display: block;
  padding: 96px 0px;
  background-color: #f4f4fd;
}

.komand-container {
  display: block;
  text-align: center;
  max-width: 264px;
  padding: 0;
}

.komand-list {
  display: block;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-transform: capitalize;
  margin-bottom: 72px;
  text-align: center;
}

.foto-blok {
  display: flex;
  flex-direction: column;
  gap: 72px;
  align-items: center;
}

.galeri {
  box-sizing: border-box;
  max-width: 264px;
  background-color: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.our-foto {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  margin-bottom: 32px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.txt-blok {
  display: block;
  margin-bottom: 8px;
}

.name {
  font-weight: 500;
  /* font-style: Medium; */
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 2%;
  text-align: center;
  color: #2E2F42;
  margin-bottom: 8px;

}

.profes {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  text-align: center;
  color: #434455;
}

.soc-blok {
  padding-bottom: 32px;
  padding-left: 16px;
  padding-right: 16px;
}

.icon-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.icon-link {
  background-color: #4d5ae5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-link:hover,
.icon-link:focus {
  background-color: #404BBF;
}

.soc-icon {
  display: block;
  fill: #f4f4fd;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .komand {
    padding: 96px 0px;
  }

  .komand-container {
    max-width: 584px;
  }

  .foto-blok {
    max-width: 768px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    gap: 64px 24px;
  }

  .galeri {
    flex-basis: calc((100% - 24px) / 2);
  }
}


@media screen and (min-width: 1158px) {
  .komand {
    padding: 120px 0px;
  }

  .komand-container {
    max-width: 1158px;
    padding: 0 15px;
  }

  .foto-blok {
    max-width: 1158px;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: center;
  }

  .galeri {
    flex-basis: calc((100% - 72px) / 4);
  }
}


/* section OUR TEAM */

.portfolio {
  background-color: #fff;
  padding-top: 96px;
  padding-bottom: 96px;
}

.our-container {
  display: block;
}

.port-list {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.prodtehservis {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.over-blok {
  position: relative;
  overflow: hidden;
}

.over {
  position: absolute;
  top: 0;
  left: 0;
  padding: 40px 32px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  background-color: #4d5ae5;
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: auto;
}

.prod-img {
  background-color: #fff;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.prod-img:hover .over {
  transform: translateY(0);
}

.prod-div {
  padding: 32px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

.prod-serv {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
  align-items: flex-start;
}

.prod-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

@media screen and (min-width: 768px) {
  .our-container {
    max-width: 768px;
  }

  .prodtehservis {
    gap: 72px 24px;
  }

  .prod-img {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media screen and (min-width: 1158px) {
  .our-container {
    max-width: 1158px;
    padding: 0 15px;
  }

  .prodtehservis {
    row-gap: 48px;
  }

  .prod-img {
    flex-basis: calc((100% - 48px) / 3);
  }

  .portfolio {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* F O O T E R */

.pages-footer {
  background-color: #2E2F42;
  padding-top: 96px;
  padding-bottom: 96px;
}

.futer-container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 288px;
}

.footer-logo {
  text-align: center;
  display: block;
  max-width: 116px;
  margin-left: auto;
  margin-right: auto;
  height: 24px;
}

.white {
  color: #f4f4fd;
}

.text-footer {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  max-width: 288px;
}

.soc-footer {
  display: flex;
  flex-direction: column;
  max-width: 208px;
  gap: 16px;
  margin-left: auto;
  margin-right: auto;
}

.soc-text {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}

.icon-list-fut {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  max-width: 208px;
}

.icon-footer:hover,
.icon-footer:focus {
  background-color: #31D0AA;
}

.mail-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 453px;
}

.sub-txt {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}

.email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.email-blok {
  width: 288px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px 16px;
  background-color: #2E2F42;
  background-color: transparent;
  color: #fff;
}

.email-blok::placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgb(255, 255, 255, 0.3);
}

.btn {
  align-items: center;
  justify-content: center;
  flex-direction: row;
  display: flex;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  min-width: 165px;
  height: 40px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #ffffff;
  background-color: #4d5ae5;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background-color: #31D0AA;
}

@media screen and (min-width: 768px) {
  .pages-footer {
    padding: 96px 0px;
  }

  .futer-container {
    box-sizing: border-box;
    max-width: 496px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 0;
    padding: 0;
  }

  .footer-list {
    max-width: 264px;
    margin-right: 24px;
  }

  .text-footer {
    max-width: 264px;
  }

  .footer-logo {
    margin-left: 0;
    margin-right: 0;
  }

  .soc-footer {
    align-items: flex-start;
    margin: 0;

  }

  .mail-footer {
    align-items: flex-start;
    margin-right: 43px;
  }

  .email-form {
    flex-direction: row;
    gap: 24px;
  }

  .email-blok {
    max-width: 264px;
  }
}

@media screen and (min-width: 1158px) {
  .futer-container {
    max-width: 1158px;
    padding: 0 15px;
    flex-wrap: nowrap;
  }

  .pages-footer {
    padding: 100px 0px;
  }

  .footer-list {
    margin-right: 120px;
  }

  .soc-footer {
    margin-right: 80px;
  }

  .mail-footer {
    margin-right: 0;
  }
}
