:root {
    --main-title-color:#FFFFFF;
    --second-title-color:#2E2F42;
    --main-btn-color:#FFFFFF;
    --second-btn-color:#4D5AE5;
    --main-text-color:#434455;    
    --second-text-color:#2e2f42;
    --background-color-btn:#F4F4FD;
    --bg-gradient:linear-gradient(rgba(46, 47, 66, 0.7),
    rgba(46, 47, 66, 0.7) );
}


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

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

ul {
    margin: 0;
    padding-left: 0;
}
img {
    display: block;
}


.link {
    text-decoration: none;
}

.list {
    list-style: none ;
}

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


/**-------------------HEADER-------------------------*/
.header {
    padding-top: 24px;
    padding-bottom: 24px;
    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);
    border-bottom: 1px solid #E7E9FC;
}

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

.header-navigation {
    display: flex;
    align-items: center;
}
.header-logo {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    
    margin-right: 76px;
}

.header-logo-count {
    color:var(--second-text-color);
}
.header-list {  
    display: flex; 
    gap: 40px;
}

.header-item {
}

.header-link {
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #2E2F42;}

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

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

.header-address {
font-style: normal;
margin-left: auto;
}

.header-address-link {
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}

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

/**-----------------------HERO------------------------*/
.hero {
 max-width: 1440px;
 margin: 0 auto;
 background: #2E2F42;
 background-image:var(--bg-gradient), url(../images/hero-bg.jpg);
 background-repeat: no-repeat;
 background-position: center;
 background-size: cover;
 padding-top: 188px;
 padding-bottom: 188px;



}


.hero-title {
max-width: 496px;
height: 120px;

font-size: 56px;
line-height: 1.07;
text-align: center;
letter-spacing: 0.02em;
color:
var(--main-title-color);
margin: 0 auto;
margin-bottom: 48px;
}


.hero-btn {
display: block;
min-width: 169px;
height: 56px;

font-family: "Roboto", sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
color: var(--main-btn-color);
cursor: pointer;
background-color: #4D5AE5;
border-radius: 4px;
border-color: transparent;
margin: 0 auto;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}


.hero-btn:hover, .hero-btn:focus{
    background-color: #404BBF;
 }

/**------------------principles--------------------*/
.principles {
    padding-top: 120px;
    padding-bottom: 120px;
}

.principles-top-title {
    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;
}

.principles-list {
    display: flex;
    gap: 24px;
}

.principles-item {
}
.principles-bg {
display: flex;
justify-content: center;
align-items: center;
height: 112px;
background: #F4F4FD;
border-radius: 4px;
margin-bottom: 8px;
}
.principle-icon {
}
.principles-title {
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: var(--second-title-color);
margin-bottom: 8px;
}

.principles-text {
max-width: 264px;

font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: var(--main-text-color);
}

/**------------------products--------------------*/
.products {
       padding-bottom: 120px;
}

.products-title {
font-size: 36px;
line-height: 1.11;
text-align: center;
letter-spacing: 0.02em;
color: var(--second-title-color);
text-transform: capitalize;
margin-bottom: 72px;
}
.products-list {
    display: flex;
    gap: 24px;
}

.products-item {
}

/**------------------team--------------------*/
.team {
    background-color: #F4F4FD;
    padding-top: 120px;
    padding-bottom: 120px;
}

.team-title {
font-size: 36px;
line-height: 1.11;
text-align: center;
letter-spacing: 0.02em;
color:
var(--second-title-color);
text-transform: capitalize;
margin-bottom: 72px;
}

.team-list {
    display: flex;
    gap: 24px;
}

.team-item {
background-color: #FFFFFF;
border-radius: 0px 0px 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-item-wrap{
    padding-bottom: 32px;
}
.team-item-title {
font-weight: 500;
font-size: 20px;
line-height: 1.2;
text-align: center;
letter-spacing: 0.02em;
color: var(--second-title-color);
margin-top: 32px;
margin-bottom: 8px;
}

.team-item-text {
font-size: 16px;
line-height: 1.5;
text-align: center;
letter-spacing: 0.02em;
color: var(--main-text-color);
margin: 0 auto;
margin-bottom: 8px;
}


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

.team-soc-item {
    width: 40px;
    height: 40px;
}
.team-soc-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4D5AE5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-soc-link:hover, .team-soc-link:focus{
    background-color: #404BBF;    
}
/**-------------customers---------------------*/
.customers {
    margin-top: 120px;
    margin-bottom: 120px;
}
.customers-title{
    font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;
text-align: center;
color:
var(--second-title-color);
text-transform: capitalize;
margin-bottom: 72px;
}


.customers-list {
    display: flex;
    gap: 24px;
}

.customers-item {
    width: 168px;
    height: 88px;
  
}
.customers-link {
    width: 100%;
    height: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    justify-content: center; 
    align-items: center;
    border: 1px solid #8E8F99;
    border-radius: 4px;
    background-color: #FFFFFF;
    fill: #8e8f99;
}

.customers-icon {
     
}
.customers-link:hover, .customers-link:focus > .customers-icon{
    fill: #404bbf;
    border-color: #404bbf;
}








/**--------------footer------------------------*/
.footer {
background: #2E2F42;
padding-top: 100px;
padding-bottom: 100px;
}

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

}
.footer-logo-color {
color: #f4f4fd;
}
.footer-text {
max-width: 264px;
height: 72px;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #F4F4FD;
margin-bottom: 0;
margin-top: 16px;
}
.footer-container{
display: flex; 
}
.footer-wrap{
   
 
}
.footer-soc-wrap {
    margin-left: 120px;
 
}
.footer-title-soc {
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: var(--main-title-color);


}
.footer-soc-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
  
}
.footer-soc-item {
    height: 40px;
    width: 40px;
}
.footer-soc-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4D5AE5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-soc-link:hover, .footer-soc-link:focus{
    background-color: #31D0AA; 
}
.footer-soc-icon {
}

/**--------------portfolio------------------------*/
.portfolio {
    padding-top: 96px;
    padding-bottom: 120px;
}


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

.portfolio-list-btn {
    margin-bottom: 72px;
    display: flex;
    gap: 24px;
    justify-content: center;
}
.portfolio-item-btn {
}

.portfolio-btn {
font-family: inherit;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
align-items: center;
text-align: center;
letter-spacing: 0.04em;
color: var(--second-btn-color);
cursor: pointer;
background-color:var(--background-color-btn);
padding: 12px 24px;
border-radius: 4px;
border: 1px solid #E7E9FC;
}

.portfolio-btn:is(:hover, :focus){
    color: #FFFFFF;
    background-color: #404BBF; 
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.border{
    border: 1px solid #E7E9FC;
    border-top: none;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 16px;
    padding-right: 16px;
}


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

.portfolio-link {
text-decoration: none;
display: block;
}

.portfolio-item {

}

.portfolio-link:hover, .portfolio-link:focus{
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-title {
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: var(--second-title-color);
margin-bottom: 8px;
}

.portfolio-text {
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color:var(--main-text-color);
margin: 0 auto;
}
.images-description {
    border: 1px solid #E7E9FC    ;
    border-top: none;
}

