
*,
 *::before,
  *::after
   { box-sizing: border-box; }


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

  }
  
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
}
.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;
}
 /* HEADER */

 .header {
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-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  display: block;
  padding: 24px 0;
  position: relative;

  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link:hover,
.header-link:focus {
  color: #404bbf;
}
.header-link.line{

 color: #404bbf;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
 
}
.header-link.line::after {
 position: absolute;
  bottom: -1px;
  left: 0;
  content: "";
  border-radius: 2px;
  height: 4px;
  width: 100%;
  background-color: #404bbf;
}

.header-link.line {
  color: #404bbf;
}


.header-container {
  display: flex;
  align-items: center;
}

.page-nav {
  display: flex;
  align-items: center;
}


.header-list  {
  display: flex;
  gap: 40px;
}

.header-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.16667;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  display: block;
  padding: 24px 0;
  margin-right:76px;
}


.header-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  display: block;
  padding: 24px 0;
  position: relative;

  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.header-link:hover,
.header-link:focus {
  color: #404bbf;
}
.header-logo-span {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.16667;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e2f42;

  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.header-logo-span:hover,
.header-logo-span:focus {
  color: #4d5ae5;
}
.contacts {
  margin-left: auto;
}

.contacts-list {
  display: flex;
  gap: 40px;
}

.contacts-item-link {
  display: block;
  padding: 24px 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-studio {
  color: #2e2f42;
}
.logo-part-studio{
    color:#f4f4fd;
}
.header-link {
   display: block;
  padding: 24px 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

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

.page-nav {
  display: flex;
  align-items: center;
}

.header-list {
  display: flex;
  gap: 40px;
}

/* HERO */

.hero {
  background-color: #2e2f42;
  padding: 188px 0;
  
}
.hero-bg-image {

  margin: 0 auto;
  max-width: 1440px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url('../images/hero-bg.jpg');

}

.hero-container {
  text-align: center;
}


.hero-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  max-width: 496px;
   margin: 0 auto 48px;
    text-align: center;
}
.hero-button {
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
color: #fff;
background-color: #4d5ae5;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
padding: 16px 32px;
border: none;
border-radius: 4px;
cursor: pointer;
display: block;
margin: 0 auto;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover,
.hero-button:focus {
background-color: #404bbf;
cursor: pointer;
}


/* FEATURES */

.features{
  padding:120px 0;
}
.features-subtitles {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
   margin-bottom: 8px;
}

.features-list{
  display: flex;
  gap:24px;
}
.features-icon-wrap {
  background-color: #f4f4fd;
  width: 264px;
  height: 112px;
  border-radius: 4px;
  border: 1px solid #8e8f99;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-icon {

  display: block;
  margin: 24px auto;
}



.features-item{
  flex-basis: calc((100% - 3 * 24px) / 4);
}


.features-item-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
/* TEAM ROLES */
.team {
  background: #f4f4fd;
   padding:120px 0;
}

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

  .team-icon {
  fill: #f4f4fd;
  display: block;
}



.team-item {

  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;
  flex-basis: calc((100% - 72px) / 4);
  border-radius: 0 0 4px 4px;
}
.team-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4d5ae5;
  border-radius: 50%;
 width: 40px;
  height: 40px;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}


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

.team-image {
  display: block;
  width: 100%;

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


.social-icons-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.team-item-icon {
  width: calc((100% - 3 * 24px) / 4);
}

.socials-list-link {
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.socials-list-link:hover {
  background-color: #404bbf;
}

.socials-list-link:focus,
.socials-list-link:active {
  background-color: #404bbf;
}

.socials-icon {
  fill: #f4f4fd;
}
.team-role-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: #434455;
  margin-bottom: 8px;
}

.team-icon-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.team-list {
display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
 
}


.team__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #f4f4fd;;
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team__link-icon:hover,
.team__link-icon:focus {
  background-color: #f4f4fd;;
}
.contacts-item-link{
    text-decoration: none;

font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}
.contacts-item-link:hover,.contacts-item-link:focus{color: #404bbf;}

.contacts {font-style: normal;}
.section-heading {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}


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


.portfolio-card-wrapper

{border-style: solid; border-width: 0 1px 1px 1px;border-color: #E7E9FC; padding: 32px 16px}

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

.team-member-text {
  padding: 32px 16px;

}
.portfolio-card {
  flex-basis: calc((100% - 48px) / 3);
  background: #fff;
   transition-property: box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover,
.portfolio-card:focus-within {
  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-img-thumb {
  position: relative;
  overflow: hidden;
}

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


.portfolio-card:hover .portfolio-overley-description,
.portfolio-card:focus-within .portfolio-overley-description {
  transform: translateY(0);
}
.portfolio-card:hover,
.portfolio-card:focus-within {
  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-image {
  display: block;
  width: 100%;
}
.portfolio-category {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* FOOTER */

.footer {
background: #2e2f42;
padding-block: 100px;
}

.footer-container {
display: flex;
gap: 120px;
align-items: baseline; 
}

.footer-column-wrap {
display: flex;
flex-direction: column;
row-gap: 16px;
align-items: start;
}

.footer-logo {
font-family: "Raleway", sans-serif;
font-weight: 700;
font-size: 18px;
line-height: 1.16667;
letter-spacing: 0.03em;
text-transform: uppercase;
color: #4d5ae5;
display: block;
}

.footer-logo-span {
color: #f4f4fd;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-span:hover,
.footer-logo-span:focus {
color: #4d5ae5;
}

.footer-text,
.footer-description {
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
max-width: 264px;
margin: 0;
}

.footer-description {
font-weight: 500;
color: #fff;
}

.footer-icon-list {
display: flex;
gap: 16px;
align-items: center;
padding: 0;
margin: 0;
list-style: none;
}

.footer-icon-item {
margin: 0;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
background-color: #4d5ae5;
width: 40px;
height: 40px;
border-radius: 50%;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
padding: 0;
}

.footer-icon {
fill: #f4f4fd;
display: block;
}

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