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


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

.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 {
 background: #2E2F42;
 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;
align-items: center;
letter-spacing: 0.04em;
color: var(--main-btn-color);
cursor: pointer;
background-color: #4D5AE5;
border-radius: 4px;
border-color: transparent;
margin: 0 auto;
}


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

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

.principles-top-title {
}

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

.principles-item {
}

.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;
padding-bottom: 32px;
border-radius: 0px 0px 4px 4px;
}

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

}
/**--------------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-count {
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;
}

/**--------------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-color: transparent;
}

.portfolio-btn:is(:hover, :focus){
    color: #FFFFFF;
    background-color: #404BBF;   
}

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


.portfolio-item {

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

