/* font-family: "Roboto", sans-serif;
 */
/* reset */
* {
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #fff;
}
ul,
ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
a {
  text-decoration: none;
}
img {
  display: block;
}
address {
  font-style: normal;
}

/* common */
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
/* #region heder */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e7e9fc;
  box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);
}
.header-container {
  display: flex;
  align-items: center;
}
.header-nav {
  display: flex;
  align-items: center;
}
.header-list {
  display: flex;
  align-items: center;
}
.heder-logo {
  padding: 24px 0;
  margin-right: 76px;
}
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
}
.heder-logo .logo-color {
  color: #2e2f42;
}
.footer-logo .logo-color {
  color: #f4f4fd;
  margin-bottom: 16px;
}
.header-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  padding: 24px 0;
  display: block;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link.current {
  position: relative;
}
.header-link.current::after {
  content: "";
  background-color: #404bbf;
  border-radius: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
}
.header-list {
  gap: 40px;
}

.address {
  font-style: normal;
  margin-left: auto;
}
.adress-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.address-link {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  padding: 24px 0;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link:hover,
.header-link:focus,
.address-link:hover,
.address-link:focus,
.header-link.current {
  color: #404bbf;
}
/* #endregion heder */

/* #region hero */
.hero {
  background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(0, 0, 0, 0.2)),
    url("../images/begraund.jpg");
  min-width: 1440px;
  margin: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #2e2f42;
  padding-top: 188px;
  padding-bottom: 188px;
}
.hero-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 48px;
}
.hero-title {
  max-width: 496px;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.hero-btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  background-color: #4d5ae5;
  border-radius: 4px;
  border: none;
  min-width: 169px;
  height: 56px;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-btn:hover,
.hero-btn:focus {
  background-color: #404bbf;
}
/* #endregion hero*/

/* #region section 1 */
.section {
  padding-top: 120px;
  padding-bottom: 120px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.section-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.section-item {
  display: flex;
  align-items: center;
  gap: 24px;
}
.section-list {
  flex-basis: calc((100% - 72px) / 4);
}
.container-icon {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  background: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  padding: 24px 100px;
  margin-bottom: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* #endregion section 1 */
/* #region team */
.team {
  background-color: #f4f4fd;
}
.container-team {
  padding-bottom: 120px;
}
.team-title {
  min-width: 162px;
  padding-top: 120px;
  padding-bottom: 72px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 24px;
}
.team-list {
  width: calc((100% - 72px) / 4);
  background-color: #ffffff;
  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);
  border-radius: 0px 0px 4px 4px;
}

.container-list {
  padding: 32px 16px;
  text-align: center;
}
.name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}
.name-item {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  margin-bottom: 8px;
}
.icon-name {
  display: flex;
  gap: 24px;
  align-items: center;
}
.list-color {
  width: 40px;
  height: 40px;
  /* fill: #fff; */
}
.team-icon-list {
  fill: #fff;
}
.icon-list:hover,
.icon-list:focus {
  background-color: #404bbf;
}
.icon-list {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* #endregion team */

/* #region portfolio*/

.portfolio {
  background-color: #fff;
  padding-bottom: 120px;
}
.portfolio-title {
  padding-top: 120px;
  padding-bottom: 72px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}
.portfolio-item {
  display: flex;
  align-items: center;

  row-gap: 48px;
  column-gap: 24px;
  flex-wrap: wrap;
}
.portfolio-list {
  width: calc((100% - 48px) / 3);
  /* 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); */
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-list:hover .portfolio-text-item {
  transform: translate(0);
}

.portfolio-text-images {
  position: relative;
  overflow: hidden;
}
.portfolio-text-item {
  position: absolute;
  padding: 40px 32px;
  top: 0;
  left: 0;
  height: 100%;
  color: #f4f4fd;
  background-color: #4d5ae5;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-name {
  padding-top: 32px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.portfolio-box:hover {
  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-box {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}
.portfolio-text {
  padding-bottom: 32px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
/* #endregion portfolio */
/* #region footer*/
.container-footer-page {
  display: flex;
  align-items: baseline;
  flex-direction: row;
  gap: 120px;
  padding: 0 15px;
}
.footer-page {
  display: flex;
  background-color: #2e2f42;
  padding-top: 100px;
  padding-bottom: 100px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-text {
  max-width: 264px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
}
.icon-name-footer {
  display: flex;
  gap: 16px;
  align-items: center;
}
.container-media {
  max-width: 208px;
  display: flex;
  flex-direction: column;
}

.footer-text-media {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.icon-footer:hover,
.icon-footer:focus {
  background-color: #31d0aa;
}
/* #endregion footer */
