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


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

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

a {
    text-decoration: none;
    color: currentColor;
}

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

.img {
    display: block;
    
}

.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

/*header*/
.page-header {
    border-bottom: 1px solid #e7e9fc;
}

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

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

.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;
}
    .header-logo .logo-part {
    color: #2e2f42;
    }
    .header-logo {
    padding: 24px 0;
    margin-right: 76px;
    }
    .nav-link {
    padding: 24px 0;
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    }
    .nav-link:hover,
    .nav-link:focus {
    color: #404bbf;
    }
    .nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    }
    .contacts {
    font-style: normal;
    margin-left: auto;
    }
    .contacts-link {
    display: block;
    padding: 24px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    }

    .contacts-list {
    display: flex;
    align-items: center;
    gap: 40px;
    }
.nav-link:hover,
.nav-link:focus,
.contacts-link:hover,
.contacts-link:focus {
    color: #404bbf;
    }

/*Sections 1 hero */

    .hero {
    background-color: #2e2f42;
    padding: 188px 0;
    }
    .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
   
        
    }
 
    .hero-text {
      max-width: 496px;
    text-align: center;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 48px;
}

    .hero-btn {
    background-color: #4d5ae5;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    border: none;
    cursor: pointer;
    text-align: center;
    }

    .hero-btn:focus,
    .hero-btn:hover {
    background-color: #404bbf;
    }
                                                                                                               
 /*section 2*/
    .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;}
    .features-section {
    padding: 120px 0; 
    }
   .features-list {
    display: flex;
    gap: 24px;}
  
   .features-list .features-item {
    width: calc((100% - 72px)/4);
    }
    .features-title{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
    }
    .features-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: inherit;
    color: #434455;
    }
/*section 3*/
    .team-section {
    background-color: #f4f4fd; 
     padding: 120px 0; 
    }
    .team-list {
    border-radius: 0px 0px 4px 4px; 
    display: flex;
    gap: 24px;
    }
    .team-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    text-transform: capitalize;
    margin-bottom: 72px;
    }
    .team-list .team-item{
     width: calc((100% - 72px) / 4);
    }
                                                   
    .team-item {
    background-color: #fff;
    display: flex;
     flex-direction: column;
     align-items: center;
     border-radius: 0 0 4px 4px;
    } 

    .team-info {
    padding: 32px 0;
    }
    .member-title {
    margin-bottom: 8px;
    font-size:   20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    }
    .member-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    }

/*Sechion 4 */
    .portfolio-section {
    padding: 120px 0 120px 0;  
    }
    .portfolio-title {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
    }
    .portfolio-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 24px;
    row-gap: 48px;
    }
     .portfolio-ill {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
     }
    .portfolio-name {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    }
    .portfolio-type {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
    .portfolio-text-box   {
     padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
    }
      .portfolio-list .portfolio-item {
    width: calc((100% - 24px * 2 ) / 3);
     }
     /*Footer*/

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

    .footer-logo .logo-part {
    color: #f4f4fd
    }
    .footer-slogan {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 264px;
    }
    .footer-link {
    font-family: "Raleway", sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.17;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4d5ae5;
        display: inline-block;
        margin-bottom: 16px;
    }
    .studio {
    color: #f4f4fd;
    }
