:root {
    --iris: #4d5ae5;
    --ocean: #404bbf;
    --navy-blue: #2e2f42;
    --green: #31d0aa;
    --slate: #434455;
    --light-slate: #8e8f99;
    --cornflower: #e7e9fc;
    --cloud: #f4f4fd;
    --navy-blue-modal: rgba(46, 47, 66, 0.4);
    --grey: rgba(46, 47, 66, 0.7);
    --white: #fff;
    --dairy: #fcfcfc;
}

:root {
    --font-family: "Roboto", sans-serif;
    --second-family: "Raleway", sans-serif;
}


body {
    font-family: var(--font-family)
    color: var(--slate);
    background-color: var(--white);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* RESET */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

button {
    cursor: pointer;
}

.link {
    text-decoration: none;
    color: inherit;
}

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

.is-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;
}
/* /RESET */

/* SECTION STYLE */
/* header */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--cornflower);
}
.header .container{
    display: flex;
    align-items: center;
    justify-content:space-between;

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

.logo-header {
    display: flex;
font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16667;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--iris);
    align-items: center;
    margin-right: 76px;

}

.logo-text {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16667;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--navy-blue);}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--ocean);
}

.nav-item {}

.nav-link {
    padding-top: 24px;
        padding-bottom: 24px;
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: var(--navy-blue);
        display: block;
    }

.header-address {
display: flex;
justify-content: flex-end;
    }

.contact-list {
display: flex;
align-items: center;
gap: 40px;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--ocean);
}

.contact {
    display: flex;
    align-items: center;

}

.contact-link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--slate);
    text-decoration: none;
    font-style: normal;
    padding-top: 24px;
        padding-bottom: 24px;
}

/* hero styles */

.hero {
background: var(--navy-blue);
padding-top: 188px;  
padding-bottom: 188px; 
}

.hero-title {
    max-width: 496px;
    font-family: var(--font-family);
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07143;
        letter-spacing: 0.02em;
        text-align: center;
        color: var(--white);
        margin-bottom: 48px;
        margin-right: auto;
        margin-left: auto;
        
}
.main-button {
    display: block;
border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
        background: var(--iris);
        font-family: var(--font-family);
            font-weight: 500px;
            font-size: 16px;
            line-height: 1.5px;
            letter-spacing: 0.04em;
            color: var(--white);
margin-right: 480px;
margin-left: 480px;
            border: none;
}

/* qualities styles */

.qualities-section{
    padding-top: 120px;
        padding-bottom: 120px;
}

.qualities-section .container {
display: flex;
}

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

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

.quality-subtitle {
    font-family: var(--font-family);
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        color: var(--navy-blue);
        margin-bottom: 8px;
}

.quality-text {
font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--slate);
}

/* team styles */

.team-section {
    background: var(--cloud);
    padding-top: 120px;
    padding-bottom: 120px;
}

.team-section .container {

}

.team-title {
    font-weight: 700;
        font-size: 36px;
        line-height: 1.11111;
        color: var(--navy-blue);
    margin-bottom: 72px;
    text-align: center;
}   

.team-list {
display: flex;
justify-content: space-between;
gap: 24px;

}

.team-item {
border-radius: 0 0 4px 4px;
padding: 0px 0px 32px;
width: 264px;
height: 380px;
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: var(--white);
width: calc((100% - 3 * 24px) / 4);
}

.team-text {
    padding: 32px 0;
}

.team-name {
    font-family: var(--font-family);
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center;
        color: var(--navy-blue);
        margin-bottom: 8px;
}

.team-role {
    font-family: var(--font-family);
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        text-align: center;
        color: var(--slate);
}

/* portfolio styles */

.portfolio-section{
padding-top: 120px;
padding-bottom: 120px;
}


.portfolio-title {
    font-weight: 700;
        font-size: 36px;
        line-height: 1.11111;
        color: var(--navy-blue);
        margin-bottom: 72px;
        text-align: center;
}

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

.portfolio-item{
}

.subtitle-text { 
border-bottom: 1px solid var(--cornflower);
border-left: 1px solid var(--cornflower);
border-right: 1px solid var(--cornflower);
padding: 32px 16px;
width: 360px;
height: 120px;
}
.portfolio-subtitle {
    font-family: var(--font-family);
    font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: var(--navy-blue);
        margin-bottom: 8px;
}

.portfolio-text {
font-family: var(--font-family);
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: var(--slate);
}

/* footer styles */

.footer {
    background: var(--navy-blue);
    padding-top: 100px;
    padding-bottom: 100px;
}

.logo-footer {
display: inline-block;
font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16667;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--iris);
    margin-bottom: 16px;
}

.footer-logo-text {
    font-family: var(--second-family);
        font-weight: 700;
        font-size: 18px;
        line-height: 1.16667;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--cloud);

}

.footer-text {
    width: 264px;
    font-family: var(--font-family);
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: var(--cloud);
}