.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;
}
/* main styles */
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  background-color: #ffffff;
}
a {
  text-decoration: none;
  color: currentColor;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  padding: 0;
  margin: 0;
}
ul {
  list-style-type: none;
}
.heading-second {
  font-weight: 700;
  font-size: 36px;
  color: #2e2f42;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: capitalize;
}
.heading-third {
  font-weight: 500;
  font-size: 20px;
  color: #2e2f42;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.paragraph {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}

/* navigation */
.header {
  border-bottom: 1px solid #e7e9fc;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navigation {
  display: flex;
  align-items: center;
}
.navigation-list {
  display: flex;
  gap: 40px;
}
.navigation-list .link {
  display: block;
  padding: 24px 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.navigation-list .link:hover,
.navigation-list .link:focus {
  color: #404bbf;
}
.navigation-list .link:active {
  text-decoration: underline;
}
/* logo styles */
.header .logo {
  margin-right: 76px;
}
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  color: #4d5ae5;
}
.logo > span {
  color: #2e2f42;
}

/* contacts */
.contacts {
  font-style: normal;
}
.contacts-list {
  display: flex;
  gap: 40px;
  /* padding: 24px 0; */
}
.contacts-list-item-link {
  display: block;
  padding: 24px 0;
  letter-spacing: 0.02em;
}
.contacts-list-item-link:hover,
.contacts-list-item-link:focus {
  color: #404bbf;
}

/* hero */
.hero {
  background-color: #2e2f42;
  padding: 188px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* gap: 10px; */
}
.hero .main-heading {
  color: #ffffff;
  max-width: 496px;
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}
.hero .btn {
  display: block;
  color: #ffffff;
  background-color: #4d5ae5;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}
.hero .btn:hover,
.hero .btn:focus {
  background-color: #404bbf;
}

/* features */
.features {
  padding: 120px 0;
}
.features .text {
  letter-spacing: 0.02em;
}
.features-list {
  display: flex;
  gap: 24px;
}
.features-list-item {
  width: calc((100% - 72px) / 4);
}
.features-list-item-title {
  margin-bottom: 8px;
}
/* .features-list-item-text {
} */
/* team */
.team {
  background-color: #f4f4fd;
  padding: 120px 0;
}
.team-title {
  margin-bottom: 72px;
}
.team-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.team-list-item-title {
  margin-bottom: 8px;
}
.team-list-item-title,
.team-list-item-text {
  text-align: center;
}
.team-list-item-box {
  padding: 32px 0px;
}
.team-list-item {
  background-color: #ffffff;
  letter-spacing: 0.02em;
  border-radius: 0 0 4px 4px;
  width: calc((100% - 72px) / 4);
  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);
}

/* portfolio */
.portfolio {
  padding: 120px 0;
}
.portfolio-title {
  margin-bottom: 72px;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  row-gap: 48px;
  column-gap: 24px;
}
.portfolio-list-item {
  flex-basis: calc((100% - 48px) / 3);
}
.portfolio-list-item-title {
  margin-bottom: 8px;
}
.portfolio-list-item div {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
}
/* footer */
.basement {
  background-color: #2e2f42;
  padding: 100px 0;
}
.basement .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.basement .individ {
  color: #f4f4fd;
}
.basement .text {
  color: #f4f4fd;
  max-width: 264px;
}
