/* #region ROOT */
:root {
  --ocean: #404bbf;
  --navy-blue: #2e2f42;
  --slate: #434455;
  --iris: #4d5ae5;
  --cloud: #f4f4fd;
}
/* #endregion ROOT */
/* #region TOTAL */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}
ul,
ol {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style-type: none;
}
img {
  display: block;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #434455;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1158px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.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;
}
/* #endregion TOTAL */

/* #region HEADER */

.header {
  border-bottom: 1px solid #e7e9fc;
  box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}
.header-container {
  display: flex;
  justify-content: space-between;

  /* gap: 76px; */
}

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

.header_nav_logo {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.17;
  text-decoration: none;
  color: #4d5ae5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 76px;
}
.nav_logo_blue {
  color: #2e2f42;
}
/* .nav-link {
  position: relative;
} */
.nav-link {
  position: relative;
  display: block;
  padding-bottom: 24px;
  padding-top: 24px;
  letter-spacing: 0.02em;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 2%;
  text-decoration: none;
  color: #2e2f42;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-active {
  color: #404bbf;
}
.nav-active::after {
  content: '';
  position: absolute;
  display: block;
  margin: 0 auto;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}

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

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

address {
  font-style: normal;
}

.adress-bar-link {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.address-link {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  color: #434455;
  text-decoration: none;
  letter-spacing: 0.02em;
  gap: 40px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.address-link:hover,
.address-link:focus {
  color: #404bbf;
}
/* #endregion HEADER */

/* #region HERO */
.hero-section {
  background-color: #2e2f42;
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding: 188px 0;
}

.hero-section-title {
  max-width: 496px;
  margin-right: auto;
  margin-left: auto;
  color: #ffffff;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 2%;
  line-height: 1.07;
  letter-spacing: 0.02em;
}
.hero-section-button {
  display: block;
  margin-right: auto;
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #ffffff;
  background-color: #4d5ae5;
  padding: 16px 32px;
  margin-top: 48px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  min-width: 169px;
  height: 56px;
  border: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-section-button:hover,
.hero-section-button:focus {
  background-color: #404bbf;
}
/* #endregion HERO */

/* #region BENEFITS */
.benefits-section {
  /* background-color: #ffffff; */
}
.benefits-list {
  display: flex;
  gap: 24px;
}
.benefits-list-item {
  width: calc((100% - 24px * 3) / 4);
}
.benefits-header {
  margin-bottom: 8px;
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.benefits-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
}
.icons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid #8e8f99;
  border-radius: 4px;
  width: 264px;
  height: 112px;
  background: #f4f4fd;
  margin-bottom: 8px;
}
.benefits-list-icon {
}
/* #endregion BENEFITS */

/* #region OUR TEAM */
.our-team-section {
  /* margin: 0; */
  background-color: #f4f4fd;

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

.our-team-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.team-item-desc {
  padding: 32px 0;
  background-color: #fff;
}
.our-team-item {
  width: calc((100% - 24px * 3) / 4);
  /* background-color: #f4f4fd; */
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
  border-radius: 0 0 4px 4px;
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}
.team-item-desc {
  padding: 32px 0;
}

.our-team-name {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  margin-bottom: 8px;
}
.our-team-positions {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}
/* .our-team-social-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
} */
.social-item {
  display: block;
  width: 40px;
  height: 40px;

  border-radius: 50%;
  margin-top: 8px;

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

.social-icon {
  fill: #f4f4fd;
}
.social-link:focus,
.social-link:hover {
  background-color: #404bbf;
}

/* #endregion OUR TEAM */

/* #region PORTFOLIO */
.portfolio-section {
  /* background-color: #ffffff; */
}
.portfolio-section-header {
  margin-bottom: 72px;
  line-height: 1.11;
  color: #2e2f42;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: capitalize;
}
.portfolio-section-wrap {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}
.portfolio-section-wrap-list {
  width: calc((100% - 24px * 2) / 3);
  position: relative;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-section-wrap-list:hover {
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolio-list-header {
  margin-bottom: 8px;
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.portfolio-list-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
}
.portfolio-list-border {
  padding: 32px 16px;
  width: 359px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

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

.portfolio-section-wrap-list:hover .portfolio-overlay {
  transform: translateY(0);
}
/* #endregion PORTFOLIO */

/* #region FOOTER */
.footer-section {
  padding: 100px 0;
  background-color: #2e2f42;
  color: #f4f4fd;
}
.footer-container {
  display: flex;
  align-items: baseline;
}
.footer-logo-container {
  margin-right: 120px;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.17;
  text-decoration: none;
  color: #4d5ae5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 100px;
}
.footer-logo-white {
  color: #f4f4fd;
}
.footer-section-text {
  width: 264px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-social-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-social-list {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.footer-social-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}
.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-icon {
  fill: #f4f4fd;
}
.footer-link:hover,
.footer-link:focus {
  background-color: #31d0aa;
}
/* #endregion FOOTER */
