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

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

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

a{
    text-decoration: none;
}

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

 /* ----------------HEADER--------------------- */

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

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

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

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

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

.contacts-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: #2E2F42; 
}

.header-logo{
    padding: 24px 0;
    margin-right: 76px;
}

.accent{
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4D5AE5;
}

.nav-link{
        display: inline-block;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #2E2F42;
        padding: 24px 0;
}

.contacts-link{
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    padding: 24px 0;
}

.nav-link:hover,
.nav-link:focus,
.contacts-link:hover,
.contacts-link:focus{
    color: #404BBF;
}

 /* ----------------BEGINNIN--------------------- */

.beginning{
    background-color: #2E2F42;
    padding: 188px 0;
    text-align: center;
}

.beginning-title {
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0 auto 48px;
    max-width: 496px;
}

.beginning-btn {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    background: #4D5AE5;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.beginning-btn:hover,
.beginning-btn:focus {
    background-color: #404bbf;
}

 /* ----------------Features--------------------- */

.features{
    padding: 120px 0;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 24px;
}

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

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

.feature-item {
    width: calc((100% - 72px) / 4);
    max-width: 264px;
}

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

  /* ----------------Team--------------------- */

.team{
    background-color: #f4f4fd;
        padding-top: 120px;
        padding-bottom: 120px;
}

.team-name{
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 72px;
    margin-left: auto;
    margin-right: auto;
}

.team-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-item{
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: #fff;
    width: calc((100% - 72px) / 4);
        border-radius: 0 0 4px 4px;
        overflow: hidden;
}

.team-item img {
    display: block;
    width: 100%;
    height: auto;
}

.team-description{
    padding: 32px 16px;

}

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

}

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

  /* ----------------Portfolio--------------------- */

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

.portfolio-name{
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
        margin-bottom: 72px;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.portfolio-item {
width: calc((100% - 48px) / 3);
    background: #fff;
    box-shadow:
        0 2px 1px rgba(46, 47, 66, 0.08),
        0 1px 1px rgba(46, 47, 66, 0.16),
        0 1px 6px rgba(46, 47, 66, 0.08);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-title{
    font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #2e2f42;
        margin-bottom: 8px;
}

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

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

        /* ----------------Footer--------------------- */

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

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

.footer-logo{
font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f4f4fd;
}

.footer-logo .accent {
    color: #4d5ae5;
}

.footer-text{
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
margin-top: 16px;
max-width: 264px;
}