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

/* start home work 3 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

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

section {
  padding: 120px 0;
}

/* видалення відстані між картинкою та наступним елементом */
img {
  display: block;
}

header {
  border-bottom: 1px solid #e7e9fc;
}
/* end home work 3 */

/* #region Header */
/* start home work 3 */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
/* end home work 3 */

.logo-header {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #4d5ae5;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.17;
  letter-spacing: 0.03em;
  /* start home work 3 */
  padding: 24px 0;
  margin-right: 76px;
  /* end home work 3 */
}

.logo-text-part-web {
  color: #2e2f42;
}

.navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  /* start home work 3 */
  display: flex;
  gap: 40px;
  /* end home work 3 */
}

.nav-items:hover {
  color: #404bbf;
}

.nav-items:focus {
  color: #404bbf;
  text-decoration: underline;
}
.nav-items {
  text-decoration: none;
  color: #2e2f42;
  letter-spacing: 0.02em;
  padding: 24px 0;
}

.contact-header {
  font-style: normal;
}

/* start home work 3 */
.cntct-list {
  display: flex;
  gap: 40px;
}
/* end home work 3 */

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

.contact-header:hover {
  color: #404bbf;
}

.contact-header:focus {
  color: #404bbf;
}

.container-nav {
  display: inline-block;
  justify-content: space-between;
  align-items: center;
}

/* #endregion */
/* #region Main */

.first {
  background-color: #2e2f42;
  /* розмір ширини, падінг до верху ДЗ 3 */
  width: 100%;
  padding: 188px 0;
}
.main-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;

  max-width: 496px;
  margin: 0 auto 48px;
}

.main-btn {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  background-color: #4d5ae5;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: center;
  /* Блокова модель ДЗ 3 */
  display: block;
  min-width: 169px;
  height: 56px;
  margin: 0 auto;

  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 4px 0 rgb(0 0 0 / 15%);
  cursor: pointer;
}

.main-btn:hover {
  background-color: #404bbf;
}

.main-btn:focus {
  background-color: #404bbf;
}

.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;
}

.studio-list {
  display: flex;
  text-align: left;
  gap: 24px;
}

.studio-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

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

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

/* SECTION TEAM */

.third {
  background-color: #f4f4fd;
  display: flex;
}

.team-container {
  padding: 32px 0;
}

.team-list {
  text-align: center;
  display: flex;
  gap: 24px;
}

.team-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  color: #2e2f42;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;

  margin-bottom: 72px;
}

.team-item {
  background-color: #ffffff;
  /* заокруглення нижніх кутів */
  border-radius: 0 0 4px 4px;

  /* shadow for the box li */
  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);
}

.team-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

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

/* PORTFOLIO SECTION */

.portfolio-img {
  padding: 0, auto;
}

.portfolio-text-section {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
  width: 360px;
  height: 120px;
}

.portfolio-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  row-gap: 48px;
  margin-bottom: 0;
}

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

.portfolio-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.portfolio-dsr {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
/* #endregion */
/* #region Footer */
footer {
  background-color: #2e2f42;
  width: 100%;
  padding: 100px 0;
}
.logo-footer {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  text-transform: uppercase;
  text-decoration: none;
  color: #4d5ae5;
  letter-spacing: 0.03em;

  display: inline-block;
  margin-bottom: 16px;
}

.logo-text-part-web-footer {
  color: #f4f4fd;
}

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

  max-width: 264px;
}
/* #endregion */
