: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;
    --font-family: "Roboto", sans-serif;
    --second-family: "Raleway", sans-serif;
}

/* global styles */
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.container {
    /* display: flex; */
    max-width: 1158px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;

}

img {
    display: block;
}

.section {
    padding: 120px 0;
}

.team-info {
    padding: 32px 0;
    border: 1px solid #e7e9fc;
}

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

/* -------------------- */

/* interact */

.current-page:after {
    content: "";
    width: 48px;
    background-color: #404bbf;
    height: 4px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    bottom: -1px;
}

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

/* .nav-list-link-secondary:hover{
color: var(--ocean); */


.hero-button:hover {
    background-color: #404bbf;

}


.hero-button:focus {
    background-color: #404bbf;
}

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

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

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

}

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

}

.footer-icon-link:hover,
.footer-icon-link:focus {
    background-color: var(--green);
}

/* ----------- */

/* reset */
ul,
ol {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

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

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

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

/* ---------------------- */

/* header */
.header {
    background: var(--white);
    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);
}

.nav-container {
    display: flex;
    justify-content: space-between;

}

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

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

}

.nav-link {

    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    margin-right: 76px;
}

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

.current-page {
    color: #404bbf;
}

.nav-list-link {
    padding-top: 24px;
    padding-bottom: 24px;

    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    display: flex;


}

.nav-list a {
    font-weight: 500;
}

/* .nav-lsit-item:active{
 color: #404bbf;
} */


.address {
    font-style: normal;
    display: flex;
    align-items: center;
}

.address-list {
    display: flex;
    gap: 40px;

}

.address-link {
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* hero */



.hero-title {
    background: var(--navy-blue);
    padding: 188px 0;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/people-office.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 1440px;
    margin: 0 auto;
    background-size: cover;
}

.hero-container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.main-title {
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    text-align: center;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 48px;
    max-width: 496px;
}

.hero-button {
    background-color: #4d5ae5;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    line-height: 1.5;
    padding: 16px 32px;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 169px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}



/* benefits */




.icon-item {
    display: flex;
    justify-content: center;
    background: var(--cloud);
    border: 1px solid var(--light-slate);
    border-radius: 4px;
    width: 264px;
    height: 112px;
    align-items: center;
    margin-bottom: 8px;
}





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

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

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

.benefits-text {
    color: var(--slate);
}

/* ------------------- */

/* team */

.team-section {
    background: var(--cloud);
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


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



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

.team-item {
    background: var(--white);
    justify-content: center;
    width: calc((100% - 3*24) / 4);
    border-radius: 0 0 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);
}

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

.team-text {

    text-align: center;
    color: var(--slate);
    margin-bottom: 8px;
}


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

.team-icon-item {
    width: 40px;
    height: 40px;
}


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




}

.team-icon {
    fill: #f4f4fd;

}



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

.portfolio-container {
    display: flex;
    flex-direction: column;
}


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

}


.portfolio-item {
    border-left: 1px solid var(--cornflower);
    border-right: 1px solid var(--cornflower);
    border-bottom: 1px solid var(--cornflower);
    width: 360px;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    width: 360px;
}

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

}


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

.portfolio-text {
    color: #434455
}

/* footer */
.footer {
    background: var(--navy-blue);
    padding: 100px 0;
}



.footer-container {
    /* display: flex; */
    flex-direction: column;
    margin-right: 120px;
}


.logo-footer {
    font-family: "Raleway", sans-serif;
    color: #f4f4fd;
    display: inline-block;
}

.footer-link {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    font-family: "Raleway", sans-serif;
    margin-bottom: 16px;
    display: inline-block;

}

.footer-text {
    color: var(--cloud);
    max-width: 264px;
}

.footer-social-links {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    margin-right: 80px;
}

.footer-social-title {
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-social-list {
    display: flex;
    gap: 16px;
}

.footer-social-item {
    width: 40px;
    height: 40px;
}


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

.footer-icon {
    fill: #f4f4fd;
}

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


.subscribe-form {
    display: flex;
    gap: 24px;
}

/* .footer-label {} */



.footer-subscribe {
    display: flex;
    flex-direction: column;
}

.footer-subscribe-text {
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.footer-email-field {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #fff;

    border: 1px solid var(--white);
    border-radius: 4px;
    width: 264px;
    height: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: transparent;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-email-field:focus {
    border-color: #404bbf;
}


.footer-subscribe-btn {
    border-radius: 4px;
    padding: 8px 24px;
    min-width: 165px;
    height: 40px;
    cursor: pointer;
    background-color: #4d5ae5;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-direction: row; */
    line-height: 1.5;
    border: none;

    font-weight: 500;

    letter-spacing: 0.04em;
    text-align: center;
    color: #ffffff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.footer-subscribe-btn:hover {
    background-color: #404bbf;
}

.footer-icon-subscribe {
    margin-left: 16px;
}

/* backdrop and modal */

.backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 99999999999999;
    background-color: rgba(46, 47, 66, 0.4);

    pointer-events: none;

    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);

    opacity: 0;
}

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

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 408px;
    min-height: 584px;

    border-radius: 4px;

    background-color: #fcfcfc;
    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);
    padding: 72px 24px 24px 24px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #e7e9fc;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}


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

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

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

.modal-close-icon:hover,
.modal-clsoe-icon:focus {
    fill: #ffffff;
}

/* 1st p */

.modal-text {
    font-weight: 500;
    max-width: 360px;
    margin-bottom: 16px;
    color: #2e2f42;
    text-align: center;
}

/* /1st p */

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;

}


/* input */

.modal-action {
    height: 40px;
    width: 100%;
    padding-left: 38px;
    border-radius: 4px;
    gap: 8px;
    outline: none;
    border: 1px solid rgba(46, 47, 66, 0.4);
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-action:focus,
.modal-action:hover {
    border: 1px solid #4d5ae5;
}

/* /input */


.modal-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}



.modal-icon:focus {
    stroke: #4d5ae5;
}


/* icon wrapper div */
.modal-icon-wrapper {
    position: relative;
    gap: 8px;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.modal-icon-wrapper:hover {
    fill: #4d5ae5;
}

.modal-icon-wrapper:focus-within .modal-icon {
    fill: #4d5ae5;
}

/* /icon wrapper div */

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


/* textarea */
.modal-comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* .comment-input {} */

.msg-input {
    outline: none;
    border-radius: 4px;
    resize: none;

    padding: 8px 16px;
    outline: transparent;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--navy-blue-modal);
    border: 1px solid rgba(46, 47, 66, 0.4);
    height: 120px;

    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.msg-input:focus {
    border: 1px solid #4d5ae5;
}

/* .modal-comment-msg {

    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: #8e8f99;
} */

/* /textarea */


/* /checkbox */
.checkbox-span {
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    border: 1px solid var(--navy-blue-modal);
    width: 16px;
    height: 16px;
    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);
    display: inline-flex;
}

.checkbox-input:checked+.checkbox-label .checkbox-span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
}

.checkbox-label {
    margin-right: 8px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;

}



.privacy-link {
    color: #4d5ae5;
    text-decoration: underline;
}

.checkbox {
    display: flex;
    margin-bottom: 24px;
}

/* /checkbox */

.send-button {
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #4d5ae5;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    line-height: 1.5;

    font-weight: 500;

    letter-spacing: 0.04em;
    text-align: center;
    color: #ffffff;
    cursor: pointer;

    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.send-button:hover,
.send-button:focus {
    background-color: var(--ocean);
}

/* .modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
} */