/* #region Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.container {
  max-width: 1158px;
  padding: 0 15px;
  margin: 0 auto;
  /* outline: 2px solid red;*/
}
.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 Global Styles */
/*#region Base Styles*/
body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: white;
  margin: 0;
}

h2 {
  font-weight: 700;
  font-size: 36px;
  /* line-height: 40px; */
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin: 0;
}

h3 {
  font-weight: 500;
  font-size: 20px;
  /* line-height: 24px; */
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin: 0;
}

p {
  font-size: 16px;
  /* line-height: 24px; */
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  margin: 0;
}

h1 {
  margin: 0;
}

a {
  text-decoration: none;
}

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

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.section {
  padding: 120px 0;
}
.section-title {
  display: flex;
  margin: 0 auto;
  align-items: center;
}

/*#endregion Base Styles*/

/* #region nav */
.site-header {
  /* display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
 padding: 24px 156px;  висота формується падінгами у посиланнях */
  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);
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  /*justify-content: space-between;*/
}

.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  /* line-height: 21px; */
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e2f42;
  display: flex;
  align-items: center;
  /* justify-content: flex-start;*/
  flex-direction: row;
  gap: 0px;
  /*width: 115px;
  height: 24px;*/
  margin-right: 76px;
  display: inline-block;
  padding: 24px 0;
}

.main-nav {
  display: flex;
  align-items: center;
}
.main-nav-list {
  display: flex;
  align-items: center;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  margin-right: 332px;
}

.main-nav-link {
  font-weight: 500;
  font-size: 16px;
  /* line-height: 24px; */
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  display: block;
  padding: 24px 0; /* висота формується падінгами */
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.contact-info {
  font-style: normal;
  margin-left: auto;
}
.contact-info-list {
  /* width: 344px;
  height: 24px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  margin-left: 0 auto;
}
.contact-info-item {
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  display: inline-block;
  font-style: normal;
}
.contact-info-link {
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  display: inline-block;
  font-style: normal;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* #endregion nav */

/* #region hero */

.hero {
  /*background-color: #2e2f42;*/
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  /*height: 600px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 188px 0;
  background-image:
    linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url("../images/heroimage.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-title {
  font-weight: 700;
  font-size: 56px;
  /* line-height: 60px; */
  line-height: 1.07143;
  letter-spacing: 0.02em;
  text-align: center;
  color: white;
  width: 496px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.hero-btn {
  font-weight: 500;
  font-size: 16px;
  /* line-height: 24px; */
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: white;
  background-color: #4d5ae5;
  cursor: pointer;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  gap: 10px;
  border: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* #endregion hero */

/* #region features */
.features {
  display: flex;
  justify-content: center;
}
.features-list {
  width: 1128px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
}
.feature-list-item {
  width: calc((100% - (24px * 3)) / 4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.feature-icon-frame {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  margin-bottom: 8px;
}

.feature-icon {
  object-fit: contain;
  display: block;
}

/* #endregion features */

/* #region team */

.team .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.team {
  background-color: #f4f4fd;
}

.team-list {
  max-width: 1116px;
  /*height: 374px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
  margin-top: 72px;
  /*padding: 0px 0px 32px;*/
}

.team-member {
  background-color: white;
  border-radius: 0 0 4px 4px;

  width: calc((100% - (24px * 3)) / 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);
  background: #fff;
}

.team-photo {
  width: 264px;
}

.team-item-name {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 32px 16px;
}

.team .contact-info {
  font-style: normal;
}

.team .section-title {
  width: 264px;
  align-items: center;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

.team-name,
.team-role {
  text-align: center;
}

.social-list {
  margin: 0 auto;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  flex-direction: row;
  gap: 24px;
  padding-bottom: 7.5px;
  padding-left: 10px;
  padding-right: 10px;
}

.social-list-item {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
}

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

.social-icon {
  object-fit: contain;
  display: block;
  fill: #f4f4fd;
}

/* #endregion features */

/* #region portfolio */

.portfolio .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.portfolio h2 {
  width: 218px;
  display: inline-block;
  white-space: nowrap;
  /*display: flex;*/
  align-items: center;
  /*margin: 0 auto;
  margin-bottom: 72px;
  display: row;*/
  text-align: center;
  margin: 0 auto;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 48px;
  column-gap: 24px;
  margin-top: 72px;
}

.portfolio-item {
  width: calc((100% - (24px * 2)) / 3);
  height: 420px;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item-frame {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  padding: 32px 16px;
  max-width: 360px;
}

.portfolio-item-name {
  width: 328px;
  height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;

  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay p {
  display: inline-block;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  text-align: left;
  padding: 40px 32px;
}

/* #endregion portfolio */
/* #region footer */

.site-footer {
  padding: 100px 0;
  background-color: #2e2f42;
}

.site-footer .container {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
}

.footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  /* line-height: 21px; */
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4f4fd;
  margin-bottom: 16px;
  width: 115px;
  /*height: 24px;*/
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0px;
}

.logo-web {
  color: #4d5ae5;
}

.footer-decor {
  width: 264px;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 120px;
}

.footer-desc {
  color: #f4f4fd;
}

.social-media-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0px;
  padding: 0;
}

.social-media {
  display: inline-block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .social-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  flex-direction: row;
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* #endregion footer */

.contact-info-link:hover,
.contact-info-link:focus,
.main-nav-link:hover,
.main-nav-link:focus,
.main-nav-link.current {
  color: #404bbf;
}

.hero-btn:hover,
.hero-btn:focus,
.team .social-list-link:hover,
.team .social-list-link:focus {
  background-color: #404bbf;
}

.site-footer .social-list-link:hover,
.site-footer .social-list-link:focus {
  background-color: #31d0aa;
}

.portfolio-item:hover .overlay {
  transform: translatey(0);
}

.portfolio-item:hover,
.portfolio-item:focus {
  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);
}
