
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;}
.container {
max-width: 1158px; ;  
padding: 0 15px ;  
margin: 0 auto ;
}
/* header */
.page-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;  
align-items: center;  
}
.header-nav {
display: flex; 
align-items: center;   
}
.nav-list {
display: flex; 
align-items: center;  
gap: 40px; 
}
.address-list {
display: flex;   
align-items: center; 
gap: 40px; 
}
.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 {
padding: 24px 0; 
margin-right: 76px; 
}
.header-logo .logo-part {
color: #2e2f42;}


.footer-logo .logo-part {
color: #f4f4fd; }
.nav-link { 
padding: 24px 0;   
display: block; 
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #2e2f42;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link.current {
position: relative;    
}
.nav-link.current::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 4px;
border-radius: 2px;
background-color: #404bbf;
}
.address { font-style: normal;
margin-left: auto;    
}
.address-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);
}
.address-link:hover,
.address-link:focus,
.nav-link:hover, 
.nav-link:focus,
 .nav-link.current
 {
color: #404bbf; 
}
/* hero*/
.hero-container {}
.hero {
        padding-top: 188px;
        padding-bottom: 188px;
        background: #2e2f42;
        margin: 0 auto;
        max-width: 1440px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url(../images/people-office1.jpg);

        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

.hero-title {
max-width: 496px;
max-height: 120px;
margin-left: auto;
margin-right: auto;
margin-bottom: 48px;
font-weight: 700;
font-size: 56px;
line-height: 1.07;
letter-spacing: 0.02em;
text-align: center;
color: #fff;
 }
.button {
min-width: 169px; 
height: 56px;   
border: none;
border-radius: 4px;
display: block;
margin: auto;    
font-family: "Roboto", sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
cursor:pointer;
color: #fff;
background-color: #4d5ae5;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.button:hover,
.button:focus {
background: #404bbf;
}

/* feature */
.feature {
width: calc((100% - 72px) / 4);
}
.feature-section {
padding-top: 120px; 
padding-bottom: 120px; 

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

}
.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;
}


.feature-name {
display: flex;

gap: 24px;    
}
.feature-list {
margin-bottom: 8px;
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
}
.feature-text {
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}
/* team */
img {
display: block;    
}
.team-section {
padding-top: 120px;;  
padding-bottom: 120px;  
margin: auto;
background: #f4f4fd;
}
.team-card-title {
margin-bottom: 72px;
font-weight: 700;
font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;
text-align: center;
text-transform: capitalize;
color: #2e2f42;
}
.team-name {
width: calc((100% - 72px) / 4);
background: #fff;
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-foto {
width: 264px;
height: 260px;
}
.container-card {
padding: 32px 0;    
}

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

}
.team-job {
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
text-align:center;
color: #434455;
text-align: center;
}
.team-list {

display: flex;
gap: 24px;

}
.team-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    margin-bottom: 0;
}

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


/*portfolio */
.portfolio-section {
padding-top: 120px ;
padding-bottom: 120px;
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-card-title {
margin-bottom: 72px;
font-weight: 700;
font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;
text-transform: capitalize;
text-align:center;
color: #2e2f42;
}
.portfolio-name {
display: flex;
flex-wrap: wrap;
column-gap: 24px;
row-gap: 48px;
}
 .portfolio-card:hover .box-text {
transform: translateY(0%); }
.portfolio-card {
width: calc((100% - 48px) / 3);
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}
.portfolio-card: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-job {

border-bottom: 1px solid #e7e9fc;
border-left: 1px solid #e7e9fc;
border-right: 1px solid #e7e9fc;
padding: 32px 16px;
width: 360px;
height: 120px;
}
:root {
    --light-text: #f4f4fd;
    --white-color: #ffffff;
    --primary-brand: #4d5ae5;
    --light-color: #f4f4fd;
     --ocean: #404BBF;

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

.portfolio-title {
margin-bottom: 8px;
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
}
.portfolio-foto {
}
.portfolio-list {
position: relative;
overflow: hidden;
}
.portfolio-product {
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455
}
/* footer */
.footer-container {
display: flex;
align-items: baseline;

}
.logo-conteiner{
   margin-right: 120px }
.footer-logo  {
display: inline-block;    
margin-bottom: 16px;    
}

.page-footer {
padding: 100px 0;
background: #2e2f42;
font-family: "Roboto", sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;

}
.footer-text {
width: 264px ; 
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
}
.media {
width: 208px;
height: 80px;
text-align: right;  
margin-left: 540px;
margin-right: auto;
margin-top: 100px;
margin-bottom: 132px;
}

.icon-media {
display: inline-block;
justify-content: flex-start;
width: 40px;
fill: var(--light-color);
    
}
 

.media-container  {
}
.media-text{
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: var(--white-color);
margin-bottom: 16px;
}
.footer-media {
    display: flex;
    gap: 16px;

}
.social-link,
 .team-social-link {
    width: 100%;
        height: 100%;
        background-color: var(--primary-brand);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-item {
    width: 40px;
    height: 40px;
}

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