body {
    font-family: "Roboto", sans-serif;
    color:#434455;
    background-color: #fff;
    margin: 0;
}

a {
    text-decoration: none;
    font-style: normal;
}

h1,h2,h3,p {
    margin: 0;
}

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

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

picture {
    flex-shrink: 0;
}

input {
    outline: none;
    font-family: inherit;
}


.container {
    max-width: 320px;
    padding-left: 16px;
    padding-right: 16px;
    margin:auto;
}

/*#region section header*/
.logo-web {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    /* margin-right: 76px; */
}

.logo-studio {
    color: #2e2f42;
}
.container-header {
    border-bottom: 1px solid #e7e9fc;
    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);
    background: #fff;
}
 .wrapper-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
.btn-menu {
    border: none;
    background-color: transparent;
    padding: 16px 0;
}
.icon-menu {
    width: 18px;
    height: 16px;
    fill: #2f2f37;
   }
.mob-menu {
    background-color: #fff;
    position: fixed;
    padding: 72px 16px 40px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;

    opacity: 0;
    pointer-events: none;

}

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

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

.btn-close-mob-menu:focus,
.btn-close-mob-menu:hover {
    background-color: #404bbf;
    border: none;
}

.mob-menu-list {
}

.mob-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mob-menu-items:not(:last-child) {
    margin-bottom: 40px;
}

.mob-menu-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu-link:hover,
.mob-menu-link:focus {
    color: #404bbf;
}

.mob-menu-contact {
    margin-bottom: 48px;
}

.mob-menu-contact-item:not(:last-child) {
    margin-bottom: 24px;
}

.mob-menu-contact-link {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu-contact-link:hover,
.mob-menu-contact-link:focus {
    color: #404bbf;
}

.mob-menu-social {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/*#endregion section header*/


/*#region section hero*/
.hero {
    padding: 72px 36px;
    margin-bottom: 96px;
}

.title {
    font-weight: 700;
    /* font-size: 56px;
    line-height: 1.07; */
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    /* max-width: 496px; */
    /* margin-bottom: 48px; */
    max-width: 216px;
    margin: 0 auto 72px;
}

.order-service {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
}

.order-service:hover, 
.order-service:focus {
    background-color: #404BBF;
}

.hero {
    max-width: 1440px;
    background-color: #2e2f42;
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)),
        url(../images/bg-hero/hero-mob.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* margin: auto; */
}

@media screen and (min-resolution:192dpi) {
    .hero {
    background-image: linear-gradient(to bottom,
                rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url(../images/bg-hero/hero-mob2x.jpg);
    }
    
}


.order-service {
    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    background-color:#4d5ae5;
    border-radius: 4px;
    cursor: pointer;
    padding: 16px 32px;
    margin: auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}
/*#endregion section hero*/


/*#region section feature*/
.features {
    /* padding: 120px 0px; */
    margin-bottom: 96px;
}

.features-title {
    /* font-weight: 500;
    font-size: 20px;
    line-height: 1.2; */
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    margin-bottom: 8px;
}

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

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


.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
    /* justify-content: center;
    gap: 24px; */
}

.features-items {
    /* width: calc((100% - 72px) / 4);     */
}

.wrap-features-icon {
    display: none;
}
/*#endregion section feature*/


/*#region section our team*/
.sectionteam {
    width: 100vw;
    background-color: #f4f4fd;
    padding: 96px 0;
    /* padding: 120px 0px; */
}

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

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

.ourteam-people-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    margin-bottom: 8px;
}

.ourteam-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
    /* justify-content: flex-start;
    align-items: center;
    gap: 24px; */
}

.ourteam-items {
    /* width: calc((100%-72px) / 4); */
    border-radius: 0 0 4px 4px;
}

.container-ourteam-people {
    padding: 32px 16px;
}
.ourteam-items {
    background-color: #fff;
    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);
}

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

.social-link-list .social-link-items {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4D5AE5;
    fill: #f4f4fd;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link-items:hover,
.social-link-items:focus {
    background-color: #404bbf;
}

/*#endregion section our team*/


/*#region section portfolio*/
.portfolio {
    padding: 96px 0;
    /* padding: 120px 0px; */
}

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

.ourportfolio-project {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

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


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

.portfolio-items {
    /* width: calc((100% - 48px) / 3) */
}

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

}

.ourportfolio-project {
    margin-bottom: 8px;
}

.card-box {
    position: relative;
    overflow: hidden;
}

.overlay-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px 164px 32px;
}

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

.portfolio-items:hover .overlay-text,
.portfolio-items:focus .overlay-text {
    transform: translatey(0%)
}

.portfolio-items {
 transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);   
}

.portfolio-items:hover,
.portfolio-items:focus {
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);
}
/*#endregion section portfolio*/


/*#region section footer*/
.footer {
    width: 100vw;
    background-color: #2e2f42;
    padding: 96px 0;
    /* padding: 100px 0px; */
}

.footer-logo-web {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #4d5ae5;
    display: block;
    margin: 0 auto 16px;
}

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

.footer-text {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
}

.container-footer {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.wrapper-footer-logo {
    /* margin-bottom: 72px; */
    /* max-width: 264px; */
    /* margin-right: 120px */
}

.footer-social {
    /* margin-bottom: 72px; */
}

.footer-link {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.footer-link-list {
    width: 40px;
    height: 40px;
}

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

.footer-link-items:hover,
.footer-link-items:focus {
    background-color: #31d0aa;
}

.social-link-icon {
    fill: #f4f4fd;
}

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

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

.form {
    display: flex;
    flex-wrap: wrap;
    /*flex-direction: row;
    gap: 24px; */
}

.form-label {
    margin-bottom: 16px;
}

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

.form-input::placeholder {
    color: #fff;
}

.form-input:focus-within {
    border-color: #4d5ae5;
}

.btn-email {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fff;
    cursor: pointer;
    background-color: #4d5ae5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    min-width: 165px;
    height: 40px;
    margin: 0 auto;

}

.icon-telegram {
    fill: #fff;
}

/*#endregion section footer*/

/*#region modal window*/
.modal-overlay {
    background-color: rgba(46, 47, 66, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    pointer-events: none;

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

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

.modal {
    position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 4px;
        width: 408px;
        min-height: 584px;
        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;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 72px;
        padding-left: 24px;
        padding-bottom: 24px;
        padding-right: 24px;
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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


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

.modal-form {
    width: 100%;
    margin-bottom: 8px;
}

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

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

.wrapper-input {
    position: relative;
}

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

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

.wrapper-comment {
    margin-bottom: 16px;
}

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

.modal-form-input:focus-within {
    border-color: #4d5ae5;
}

.modal-textarea:focus-within {
    border-color: #4d5ae5;
}

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


/*#region checkbox*/
.wrapper-checkbox {
    margin-bottom: 24px;
}

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

.checkbox-span {
    width: 16px;
    height: 16px;
    color: #4d5ae5;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    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;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    fill: transparent;
}

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

.link-privat-police {
    color: #4d5ae5;;
}

/*#endregion checkbox*/
.btn-modal {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    border: none;
    background: #4d5ae5;
    padding: 16px 32px;
    display: block;
    min-width: 169px;
    height: 56px;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}
/*#endregion modal window*/