.hidden {
    display: none;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #434455;
    background-color: #FFFFFF;
}

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

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

a {
    text-decoration: none;
}

[href] {
    color: #434455;
}

button {
    cursor: pointer;
    background-color: #4D5AE5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
button:focus {
     background-color: #404BBF;

}

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

/* common */
.container {
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;

}

@media screen and (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media screen and (min-width: 1158px) {
    .container {
        max-width: 1158px;
        padding: 0 15px;
    }
}

/* header */
.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);
}

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

}
@media screen and (max-width: 767px) {
    .header-menu-list,
    .contacts {
        display: none;
}
}


.header-logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    color: #4d5ae5;
    text-transform: uppercase;
    justify-content: flex-start;
    padding: 16px 0;
    display: block;
}

.header-logo-studio {
    color: #2E2F42;
}

.burger-btn {
    padding: 0;
    border: none;
    background-color: transparent;
}
.burger-btn:hover,
.burger-btn:focus {
    display: none;
}
.burger-icon {
    display: block;
    fill: #2f2f37;
}

@media screen and (min-width: 768px) {
    .header .container {
        align-items: center;
    }
    .burger-btn {
        display: none;
    }
    .header-navigation {
        display: flex;
        
    }
    .header-logo {
        padding: 24px 0;
        margin-right: 120px;
    }
    .header-menu-list {
        display: flex;
        gap: 40px;
        
    }
    .header-menu-link {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.04em;
        color: #2e2f42;
        padding: 24px 0;
        display: block;
    }
    .header-menu-link.current {
        position: relative;
    }
    .header-menu-link.current::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        background-color: #404bbf;
        border-radius: 2px;
        width: 100%;
        height: 4px;
    }
    .header-menu-link:hover,
    .header-menu-link:focus,
    .header-menu-link.current {
        color: #404bbf;
    }
    .contacts {
        font-style: normal;
    }
    .contacts-menu-list {
        display: flex;
        gap: 12px;
        flex-direction: column;
    }
    
    .contacts-menu-link {
        font-size: 12px;
        line-height: 1.16;
        letter-spacing: 0.04em;
        color: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);

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

@media screen and (min-width: 1158px) {
    .header-logo {
        margin-right: 76px;
    }
    .contacts-menu-list {
        gap: 40px;
        flex-direction: row;
    }
    .contacts-menu-link {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        padding: 24px 0;
    }

}
/* mobile menu */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    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);
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu-container {
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border-radius: 100%;
    background-color: transparent;
    border-width: 1px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    stroke-opacity: 0.1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.close-icon-menu {
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-nav {
    margin-bottom: auto;
}
.header-menu-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 40px; 
}
.header-menu-mobile-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.04em;
    color: #2e2f42;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-menu-mobile-link.current {
    color: #404bbf;
}
.header-menu-mobile-link:hover,
.header-menu-mobile-link:focus {
    color: #404bbf;
}
.contacts-mobile {
    font-style: normal;
    display: block;
    margin-bottom: 48px;
}

.contacts-menu-mobile-list {
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.contacts-menu-mobile-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);
    
}

.contacts-menu-mobile-link:hover,
.contacts-menu-mobile-link:focus {
    color: #404BBF;
}
.contacts-menu-mobile-link.current {
    color: #404BBF;
}
.soc-media-mobile-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    
}

.soc-media-mobile-item {
    width: 40px;
    height: 40px;
}

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

.soc-media-mobile-link:hover,
.soc-media-mobile-link:focus {
    background-color:#404BBF;
}

.soc-media-mobile-icon {
    fill: #f4f4fd;
}

/* hero */
/* Section 1 */
.hero {
    background: #2e2f42;
    padding-top: 72px;
    padding-bottom: 72px;
    max-width: 320px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-mob.jpg);
}
@media screen and (min-resolution: 2x) {
    .hero {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-mob-2x.jpg);
        
    }
}
.hero-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 auto;
    text-align: center;
    max-width: 216px;
}
.hero-button {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    width: 169px;
    height: 56px;
    display: block;
    min-width: 169px;
    border: none;
    border-radius: 4px;
    margin: 0 auto;
    margin-top: 72px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}


@media screen and (min-width: 768px) {
    .hero {
        padding-top: 112px;
        padding-bottom: 112px;
        max-width: 768px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-tab.jpg);
    }
        @media screen and (min-resolution: 2x) {
            .hero {
                background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-tab-2x.jpg);
            }
    
        }
    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
    }
    .hero-button {
        margin-top: 36px;
    }
}

@media screen and (min-width: 1158px) {
    .hero {
        padding-top: 188px;
        padding-bottom: 188px;
        max-width: 1440px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-desc.jpg);
    }
        @media screen and (min-resolution: 2x) {
            .hero {
                background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero-bg-desc-2x.jpg);
            }
    
        }
    .hero-button {
        margin-top: 48px;
    }
}

/* Section 2 */
@media (min-width: 200px) and (max-width: 1157px) {

    .features-icon-wrapper {
        display: none;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}
.features {
    padding-top: 96px;
    padding-bottom: 96px;
    
}
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
}
.features-subtitle {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    margin-bottom: 8px;
}

.features-item-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}
@media screen and (min-width: 768px) {
    .features-list {
        column-gap: 24px;
        row-gap: 72px;
    }
    .features-item {
        flex-basis: calc((100% - 24px) / 2);
    }
    .features-subtitle {
        text-align: left;
    }
}

@media screen and (min-width: 1158px) {
    .features {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    
    .features-list {
        gap: 24px;
    }
    
    .features-item {
        flex-basis: calc((100% - 72px) / 4);
    }
    .features-item-text {
        font-weight: 400;
    }
    
    .features-icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 112px;
        width: 100%;
        border: 1px solid #8e8f99;
        background-color: #f4f4fd;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .features-subtitle {
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
    }
}

/* Section 3 */
.team {
    background: #f4f4fd;
    padding: 96px 12px;
}
.team-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    text-transform: capitalize;
    margin-bottom: 72px;
}
.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
    width: 100%;
    align-items: center;
}
.team-item {
    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);
    width: 264px;
    border-radius: 0px 0px 4px 4px;
}
.team-image {
    display: block;
    width: 100%;
    height: auto;
}
.team-card {
    padding: 32px 0;
}

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

.team-item-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    margin-bottom: 8px;
}
.soc-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0 16px;
}


.soc-list-item {
    width: 40px;
    height: 40px;
}

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

.soc-link:hover,
.soc-link:focus {
    background-color: #404BBF;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.soc-link-icon {
    fill: #f4f4fd;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
    .team {
        /* padding-left: 16px;
        padding-right: 16px; */
    }
    .team-list {
        gap: 64px 24px;
        justify-content: center;
        
    }
    .team-item {
        flex-basis: calc((100% - 24px) / 2);
        max-width: 264px;
}
}
@media screen and (min-width: 1158px) {
    .team {
        padding-top: 120px;
        padding-bottom: 120px;
        padding-left: 0;
        padding-right: 0;
    }
    .team-list {
        gap: 24px;
    }
    .team-item {
        flex-basis: calc((100% - 72px) / 4);
    }

}


/* Section 4 */
@media (min-width: 200px) and (max-width: 1157px) {
    .portfolio-item-descr {
        display: none;
    }

}

.portfolio {
    padding-top: 96px;
    padding-bottom: 96px;
}
.portfolio-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    text-transform: capitalize;
    margin-bottom: 72px;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.portfolio-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);
}

.portfolio-item-img {
    position: relative;
}
.portfolio-image {
    display: block;
    max-width: 100%;
}
.portfolio-card {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;

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

}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
    .portfolio {
        padding-top: 72px;
        padding-bottom: 96px;
    }
    .portfolio-list {
        gap: 72px 24px;
    }
    .portfolio-item {
        width: calc((100% - 24px) / 2);
    }
}
@media screen and (min-width: 1158px) {
    .portfolio {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .portfolio-list {
        gap: 48px 24px;
    }
    .portfolio-item {
        box-shadow: none;
        width: calc((100% - 48px) / 3);
        transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .portfolio-item:hover,
    .portfolio-item: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);
    }
    .portfolio-item-descr {
        
        position: absolute;
        top: 0;
        background-color: #4d5ae5;
        color: #f4f4fd;
        line-height: 1.5;
        letter-spacing: 0.02em;
        padding: 40px 32px;
        height: 100%;
        transform: translateY(100%);
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        }
    .portfolio-item:hover .portfolio-item-descr {
        transform: translateY(0%);
    }
    .portfolio-item-img {
        overflow: hidden;
    }
    .portfolio-image {
        object-fit: contain;
    }
    
}

/* FOOTER */
.footer {
    background-color: #2e2f42;
    padding-top: 96px;
    padding-bottom: 96px;
    
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-descr {
    max-width: 288px;
    text-align: center;
}
.footer-logo-studio {
    color: #f4f4fd;
}
.footer-logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    margin-bottom: 16px;
    display: inline-block;
    
}
.footer-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 264px;
    font-weight: 400;
    text-align: left;
}

.footer-soc-media {
    display: flex;
    flex-direction: column;
    max-width: 208px;
    align-items: center;
    
}
.soc-media-text {
    margin-bottom: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    display: flex;
    font-weight: 500;
}
.soc-media-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    
}

.soc-media-item {
    width: 40px;
    height: 40px;
}

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

.soc-media-link:hover,
.soc-media-link:focus {
    background-color: #31d0aa;
}

.soc-media-icon {
    fill: #f4f4fd;
}

.footer-subscribe {
    margin-left: auto;
    max-width: 288px;
}

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


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

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

.subscribe-input:hover,
.subscribe-input:focus {
    border-color: #31d0aa;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-radius: 4px;
    min-width: 165px;
    height: 40px;
    background-color: #4d5ae5;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fff;
    border: none;
    margin: 0 auto;

}

.subscribe-btn:hover,
.subscribe-btn:focus {
    background-color: #31d0aa;
}

.subscribe-icon {
    fill: #fff;
    vertical-align: middle;
    margin-left: 16px;
}

@media screen and (min-width: 768px) {
    .footer-container {
        display: flex;
        max-width: 768px;
        padding: 0 108px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap:  72px 24px;
    }

    .footer-descr {
        width: 264px;
        text-align: left;
    }
    
    .footer-soc-media {
        width: 208px;
        align-items: flex-start;
    }
    
    .footer-subscribe {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        margin-left: 0;
        max-width: 453px;
    }
    .subscribe-title {
        text-align: start;
    }
    .subscribe-form {
        display: flex;
        flex-direction: row;
        gap: 24px;   
    }
    .subscribe-label {
        display: contents;
    }
    .subscribe-input {
        width: 264px;
    }
    
    .subscribe-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }
    
    
}

@media screen and (min-width: 1158px) {
    .footer {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .footer-container {
        align-items: baseline;
        max-width: 1158px;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
    }

    .footer-descr {
        min-width: 264px;
        margin-right: 120px;
        text-align: start;
    }

    .footer-soc-media {
        flex-direction: column;
    }

    .footer-subscribe {
        margin-left: auto;
        text-align: start;
    }

    .subscribe-form {
        display: flex;
        gap: 24px;
    }
    .subscribe-btn {
        margin-right: 0;
    }
}


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

.backdrop:not(.is-open) .modal {
    transform: translate(-50%, -100%);
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 288px;
    min-height: 623px;
    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);
    border-radius: 4px;
    transform: translate(-50%, -50%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 72px 16px 24px 16px;

}

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

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

}

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

}

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

}

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

.modal-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: 4px;
    height: 336px;


}

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

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

}

.modal-input-wrap {
    position: relative;

}

.modal-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;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.modal-input:hover,
.modal-input:focus {
    border-color: #4d5ae5;

}

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

.modal-input:focus+.modal-icon {
    fill: #4D5AE5;
}


.modal-field-textarea {
    margin-bottom: 16px;
    width: 100%;
}

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

.modal-textarea:focus,
.modal-textarea:hover {
    border-color: #4D5AE5;
}



.check-text {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    align-items: center;
    display: flex;
    gap: 8px;


    a {
        color: #4d5ae5;
        text-decoration-line: underline;
        line-height: 1.33;
        text-decoration-skip-ink: none;
        padding-left: 5px;
    }

}

.modal-field-checkbox {
    margin-bottom: 24px;
    width: 100%;
}
.modal-checkbox-span {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    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);
}
.modal-checkbox-descr {
    display: inline-block;
    line-height: 1.3;
    background-color: transparent;
}
.modal-check:checked+.check-text .modal-checkbox-span {
    background-color: #404bbf;
    fill: #f4f4fd;
    border: none;
}
.check-icon {
    top: 4px;
    right: 3px;
}
.user-privacy-link {
    color: #4d5ae5;
    text-decoration-line: underline;
}

.modal-send-btn {
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    border: none;

}

@media screen and (min-width: 768px) {
    .modal {
        width: 408px;
        min-height: 584px;
        padding: 72px 24px 24px 24px;
    }
    .check-text {
        gap: 0;
    }
    .modal-checkbox-descr {
        margin-left: 8px;
    }
}