/* ================ COMMON STYLES ================ */

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

img {
    display: block;
}

/* ================ /COMMON STYLES ================ */

/* ================ HEADER STYLES ================ */

.page-header {
    border-bottom: 1px solid #e7e9fc;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);
 }

.header-container {
    display: flex;
    align-items: center;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-list {
    display: flex;
    align-items: center;
}

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

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

 .menu-list-link {
    position: relative;
    display: block;
    padding: 24px 0;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-list-link.current{
    position: relative;
}

.menu-list-link::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: -1px;
    background-color: #404bbf;
    border-radius: 2px;
    opacity: 0;

    width: 100%;
    height: 4px;
}

.menu-list-link:hover:after,
.menu-list-link:focus::after,
.menu-list-link.current::after {
    opacity: 1;
}
.menu-list-link:hover,
.menu-list-link:focus,
.contacts-list-link:hover,
.contacts-list-link:focus,
.menu-list-link.current {
    color: #404bbf;
}

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

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

.contacts-list-link{
    display: block;
    padding: 24px 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================ /HEADER STYLES ================ */

/* ================ HERO SECTION ================ */
.hero-section{
    background-color: #2e2f42;
    max-width: 1440px;
    padding-top: 188px;
    padding-bottom: 188px;
    margin-left: auto;
    margin-right: auto;
    background-image: linear-gradient(to bottom, 
    rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), 
    url('../images/header/people-office.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-title {
    display: block;
    max-width: 496px;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
}

.order-servise-button {
    display: block;
    border: 0px;
    border-radius: 4px;
    min-width: 169px;
    padding: 16px 0;
    margin-left: auto;
    margin-right: auto;
    background: #4d5ae5;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.5;
    font-family: "Roboto", sans-serif;
    color: #fff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.order-servise-button:hover,
.order-servise-button:focus {
    background-color: #404bbf;
}

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

.principles-list-item {
    width: calc((100% - 72px) / 4);
}

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

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

.principles-list-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    }

.team-section {
        /* max-width: 1440px; */
         margin-left: auto; 
        margin-right: auto;
}       
        
.team-icons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

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

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

.team-section {
    background: #f4f4fd;
}

.team-title,
.portfolio-title {
    display: block;
    margin-bottom: 72px;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    text-transform: capitalize;
}

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

.team-list-item {
    width: calc((100% - 72px) / 4);
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 0px 0px 4px 4px;
    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);
}

.container-name{
    padding: 32px 0;
}

.team-list-fullname,
.portfolio-list-appname {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}

.team-list-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    text-transform: capitalize;
}

.container-portfolio-img {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    width: 360px;
    overflow: hidden;
}

.portfolio-overlay{
    position: absolute;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    color: #f4f4fd;
    overflow: auto;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.portfolio-list-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.portfolio-list-item {
    width: calc((100% - 48px) / 3);
    list-style-type: none;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
 }

.container-appname {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.portfolio-list-item:hover .portfolio-overlay-text {
    transform: translateY(0);
}

.portfolio-list-item:hover {
    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);
}

/* ================ /HERO SECTION ================ */

/* ================ FOOTER STYLES ================ */

.page-footer {
    background-color: #2e2f42;
    padding: 100px 0;
    margin-left: auto;
    margin-right: auto;
}

.footer-container{
    display: flex;
    align-items: baseline
}

.container-logo {
    margin-right: 120px;
}

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

.footer-logo .logo-part {
    color: #f4f4fd;
}

.page-footer-text {
    display: block;
    max-width: 264px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
}

.footer-social-media {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-icons{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 16px;
}

.footer-icons-item {
     width: 40px;
     height: 40px;
}
.footer-icons-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: #4d5ae5;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-icons-link:hover,
.footer-icons-link:focus {
    background-color: #31D0AA;
}

.footer-list-icon,
.team-list-icon {
    fill:#f4f4fd;
}

.footer-email {
    margin-left: auto;
}

.footer-form{
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 24px;
}

.footer-form-input {
    padding-left: 16px;
    width: 264px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background-color: transparent;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-form-input::placeholder {
    color: #ffffff;
}

.footer-form-input:focus {
   border: 1px solid #31D0AA;
   outline: none;
}

.email-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-width: 165px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #ffffff;
    background-color: #4d5ae5;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.email-submit-btn:focus,
.email-submit-btn:hover {
    background-color: #31D0AA;
}

.email-submit-icon {
    fill:#ffffff;
    margin-right: auto;
    margin-left: 16px;
}

/* ================ /FOOTER STYLES ================ */

/* ================ MODAL WINDOW STYLES ================ */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    background-color:rgba(46, 47, 66, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 408px;
    height: 80%;
    min-height: 584px;
    overflow: auto;
    padding: 24px;
    padding-top: 72px;
    border-radius: 4px;
    
    transform: translate(-50%, -50%);

    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
    background-color: #fcfcfc;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0;
    line-height: 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

.modal-close-btn:hover,
.modal-close-btn:focus {
    fill: #FFFFFF;
    background-color: #404bbf;
    border: none;
}

.modal-close-icon {
   transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-slogan {
    max-width: 360px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 16px;
}
.review-form-wrapper{
    margin-bottom: 16px;
}

.review-form-field-wrapper {
    margin-bottom: 8px;
}

.review-form-field-label {
    display: block;
    font-size: 12px;
    line-height: 1.17;;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 4px;
}

.review-form-input {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 40px;
    background-color: transparent;
    padding-left: 38px;
    outline: transparent;
    
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color:#2e2f42;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form-input:focus,
.review-form-comment:focus {
    border: 2px solid#4d5ae5;
    outline: none;
    border-color: #4D5AE5
}

.review-form-input:focus + .review-form-input-icon {
   fill:#4d5ae5;
}

.review-form-input-wrapper {
    position: relative;
}
 
.container-field {
    margin-bottom: 16px;
 }
.review-form-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    fill: #2e2f42;
    stroke: none;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

.review-form-comment {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 120px;
    background-color: transparent;
    padding: 8px 16px;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
}

.review-form-comment::placeholder {
    color: rgba(46, 47, 66, 0.4);
}

.review-form-checkbox-wrapper{
    margin-bottom: 24px;
}

.review-form-custom-checkbox{
    display:inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    cursor: pointer;
    fill: transparent;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    border 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form-checkbox:focus+
.review-form-checkbox-label>
.review-form-custom-checkbox {
    background-color: #404bbf;
    border: none;
    fill: #F4F4FD;  
}

.review-form-checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99
}
.review-form-checkbox-icon{
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form-policy-link{
    line-height: 1.33333;
    text-decoration: underline;
    color: #4d5ae5;
}

.review-form-submit-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 169px;
    height: 56px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    border: transparent;
    border-radius: 4px;
    color: #ffffff;
    background-color: #4d5ae5;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form-submit-btn:focus,
.review-form-submit-btn:hover {
    color:#2e2f42;
    background-color: #404bbf;
}