.hidden{
    display: none;
}
body {
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
    color: #434455;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}
ul,
ol {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
a {
    text-decoration: none;
}
img {
    display: block;
    width: 100%;
    height: auto;
}
button{
    border: none;
    cursor: pointer;
}
 /* Common */
.container {
    max-width: 320px;
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}
@media screen and (min-width:768px) {
.container {
    max-width: 768px;
}
}
@media screen and (min-width:1158px) {
.container {
    max-width: 1158px;
    padding: 0 15px;
}
}
/* Header */
.top {
    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);
}
.top-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-navigate-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;
    padding: 16px 0;
    display: block;
}
.top-logo-word {
    color: #2e2f42;
}

.top-navigate-list, 
.contact{
    display: none;
}

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

.contact-list-link {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-list-link:hover,
.contact-list-link:focus {
    color: #404bbf;
}
}

@media screen and (min-width:1158px) {
.top-navigate-logo {
    margin-right: 76px;
}
.contact-list {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.contact-list-link {
    padding: 24px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
}
.mobile-menu{
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    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;
}
.mobile-menu-container{
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mobile-menu-navigate{
    margin-bottom: auto;
}
.mobile-menu-close-btn{
    width: 24px;
    height: 24px;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn-icon{
    fill: #2E2F42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background-color: #404BBF;
    border: none;
}
.mobile-menu-btn:hover .modal-close-btn-icon,
.mobile-menu-btn:focus .modal-close-btn-icon{
    fill: #FFFFFF;
}
.mobile-menu-navigate-list{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.mobile-menu-navigation-link{
    display: block;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #2E2F42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-navigation-link:hover,
.mobile-menu-navigation-link:focus,
.mobile-menu-navigation-link.current {
    color: #404BBF;
}
.mobile-menu-contact{
    font-style: normal;
    margin-bottom: 48px;
}
.mobile-menu-contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-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);
}
.mobile-menu-contact-link:focus,
.mobile-menu-contact-link.mobile{
    color: #4D5AE5;
}
.mobile-menu-social-links{
    display: flex;
    justify-content: space-between;
}
.mobile-menu-links-item{}

.mobile-menu-link{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4D5AE5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-link-icon {
    fill: #F4F4FD;
}
.mobile-menu-link:hover,
.mobile-menu-link:focus{
    background-color: #404BBF;
}
@media screen and (min-width:768px) {
    .mobile-menu{
        display: none;
    }
}

/* Main*/

/* First section Article*/
.article {
    background-color: #2e2f42;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ),
    url(../images/studio/hero/background-section-1-mob-min.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 72px;
    padding-bottom: 72px;
    max-width: 320px;
    margin: 0 auto;}

    @media (min-resolution:192dpi) {
    .article{
        background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ), url(../images/studio/hero/background-section-1-mob@2x-min.jpg);
    }
    
}
.article-title {
    color: #ffffff;
    font-size: 36px;
    text-align: center;
    line-height: 1.11;
    letter-spacing: 0.02em;
    max-width: 216px;
    letter-spacing: 0.02em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 72px;
}
.article-interactive {
    display: block;
    color: #ffffff;
    background-color: #4d5ae5;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: none;
    min-width: 169px;
    padding: 16px 0;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.article-interactive:hover,
.article-interactive:focus {
    background-color: #404bbf;
}
@media screen and (min-width:768px) {
.article {
    background-color: #2e2f42;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ), url(../images/studio/hero/background-section-1-tab-min.jpg);
    padding-top: 112px;
    padding-bottom: 112px;
    max-width: 768px;
}

    @media (min-resolution:192dpi) {
    .article{
        background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ),
    url(../images/studio/hero/background-section-1-tab@2x-min.jpg);
    }
}
.article-title {
    font-size: 56px;
    line-height: 1.07;
    max-width: 496px;
    margin-bottom: 36px;
}
}
@media screen and (min-width:1158px){
    .article{
        background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ),
    url(../images/studio/hero/background-section-1-desk-min.jpg);
    padding-top: 188px;
    padding-bottom: 188px;
    max-width: 1440px;
    }
    @media (min-resolution:192dpi) {
    .article{
        background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
    ),
    url(../images/studio/hero/background-section-1-desk@2x-min.jpg);
    }
}
.article-title {
    margin-bottom: 48px;
}
}

/*Second section Benefits*/
.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;
}
.benefits {
    padding: 96px 0;
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 72px;
}
.benefits-icons{
    display: none;
}
.benefits-list-title {
    font-size: 36px;
    color: #2e2f42;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}
.benefits-list-text {
    color: #434455;
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 500;
}
@media screen and (min-width:768px) {
.benefits-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
}
.benefits-list-item {
    flex-basis: calc((100% - 24px) / 2);
}
.benefits-list-title {
    text-align: start;
}
}
@media screen and (min-width:1158px){
    .benefits {
    padding: 120px 0;
}
.benefits-list {
    gap: 24px;
}
.benefits-list-item {
    flex-basis: calc((100% - 72px) / 4);
}
.benefits-icons {
    display: flex;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    width: 264px;
    height: 112px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
}
.benefits-list-title {
    font-size: 20px;
    color: #2e2f42;
    font-weight: 500;
    line-height: 1.2;
}
.benefits-list-text {
    color: #434455;
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 400; 
}
}

/* Third section Team*/
.team {
    background-color: #f4f4fd;
    padding: 96px 0;
}
.team-title {
    text-transform: capitalize;
    font-size: 36px;
    color: #2e2f42;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 72px;
}
.team-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 72px;
}
.team-cards-item {
    max-width: 264px;
    background-color: #ffffff;
    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-item-person {
    padding: 32px 0;
}
.team-person-name {
    color: #2e2f42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}
.team-person-text {
    color: #434455;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;

}
.team-person-social-links{
    display: flex;
    justify-content: center;
    gap: 24px;
}
.team-person-links-item{}

.team-person-link{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4D5AE5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-person-link-icon {
    fill: #F4F4FD;
}
.team-person-link:hover,
.team-person-link:focus{
    background-color: #404BBF;
}
@media screen and (min-width:768px) {
    .team-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
}
.team-cards-item {
    flex-basis: calc((100% - 24px) / 2);
}

}
@media screen and (min-width:1158px){
.team {
    padding: 120px 0;
}
.team-cards{
    flex-wrap: nowrap;
}
.team-cards-item {
    flex-basis: calc((100% - 72px) / 4);
}
}
/* Forth section Portfolio*/
.portfolio {
    padding: 96px 0;
}
.portfolio-title {
    text-transform: capitalize;
    font-size: 36px;
    color: #2e2f42;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 72px;
}
.portfolio-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
}
.portfolio-cards-item {
    box-shadow: none;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-cards-photo {
    position: relative;
    overflow: hidden;
}
.portfolio-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-cards-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);
}
.portfolio-cards-item:hover .portfolio-overlay-text {
    transform: translateY(0%);
    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-app-name {
    color: #2e2f42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.portfolio-app-text {
    color: #434455;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.portfolio-cards-app {
    padding: 32px 16px;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    border-bottom: 1px solid #e7e9fc;
}
@media screen and (min-width:768px) {
    .portfolio-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
}
.portfolio-cards-item {
    flex-basis: calc((100% - 24px) / 2);
}
}
@media screen and (min-width:1158px){
.portfolio {
    padding: 120px 0;
}
.portfolio-cards{
    row-gap: 48px;
}
.portfolio-cards-item {
    flex-basis: calc((100% - 48px) / 3);
}
}
/*Footer*/
.bottom {
    background-color: #2e2f42;
    padding: 96px 0;
}
.bottom-container{
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    row-gap: 72px;
}
.bottom-link{
    display: block;
}
.bottom-link-logo {
    display: block;
    font-family: 'Raleway', sans-serif;
    color: #4d5ae5;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}
.bottom-logo-word {
    color: #f4f4fd;
}
.bottom--link-text {
    color: #f4f4fd;
    line-height: 1.5;
    letter-spacing: 0.02em;
    max-width: 288px;
}
.bottom-media{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.bottom-media-text{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
} 
.bottom-media-links{
    display: flex;
    align-items: center;
    gap: 16px;
}
.bottom-links-item{}
.bottom-social-link-item{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4D5AE5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-social-link-icon {
    fill: #F4F4FD;
}
.bottom-social-link-item:hover,
.bottom-social-link-item:focus{
    background-color:  #31D0AA;
}

.bottom-subcribe{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.bottom-subcribe-text{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;

}
.bottom-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.bottom-form-input{
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    width: 288px;
    height: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    font-weight: 400;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    padding-left: 16px;
    background-color: transparent;
    outline: transparent;
    opacity: 0.6;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-form-input::placeholder{
    color: #FFFFFF;
}
.bottom-form-input:focus{
    border-color: #31D0AA;
}
.bottom-subcribe-button{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 8px 24px;
    max-width: 165px;
    height: 40px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #FFFFFF;
    background-color: #4D5AE5;
    cursor: pointer;
    border: none;
    fill: #FFFFFF;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-subcribe-button-icon{
    margin-left: 16px;
}
.bottom-subcribe-button:hover,
.bottom-subcribe-button:focus{
    background-color:  #31D0AA;
}
@media screen and (min-width:768px) {
    .bottom-container{
    padding: 0 108px;   
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
}

.bottom--link-text{
    max-width: 264px;
}
.bottom-link-logo {
    text-align: start;
}
.bottom-media{
    align-items: start;
}
.bottom-subcribe{
    align-items: start;
}
.bottom-form{
    flex-direction: row;
    align-items: start;
    gap: 24px;
}
.bottom-form-input{
    width: 264px;
}
}
@media screen and (min-width:1158px){
    .bottom-container{
    padding: 0 15px;
    flex-wrap: nowrap;
    gap: 0;
}
.bottom{
    padding: 100px 0;
}
.bottom-link{
    margin-right: 120px;
}
.bottom-subcribe{
    margin-left: auto;
}
}
/* Modal */
.backdrop{
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(46, 47, 66, 0.4);
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: 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);
}
.backdrop.is-open{
    opacity: 1;
    visibility:visible;
    pointer-events:auto;
}
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 288px;
    min-height: 623px;
    background-color: #FCFCFC;
    border-radius: 4px;
    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);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 72px 16px 24px 16px;
}
.backdrop:not(.is-open) .modal{
    transform: translate(-50%, -100%);
}
.modal-close-btn{
    width: 24px;
    height: 24px;
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #E7E9FC;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    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-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 .modal-close-btn-icon,
.modal-close-btn:focus .modal-close-btn-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-field-info{
    margin-bottom: 8px;
}
.modal-field-comment{
    margin-bottom: 16px;
}
.modal-field-label{
    display: block;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8E8F99;
    margin-bottom: 4px;
}
.modal-field-info-wrapper{
    position: relative;
}
.modal-field-info-wrapper svg{
    position: absolute;
    fill: #2E2F42;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-field-text-input{
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 40px;
    background-color: transparent; 
    padding: 11px 16px 11px 38px;
    outline: transparent; ;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #2E2F42;;
}
.modal-field-text-input:focus{
    border-color: #4D5AE5;
}
.modal-field-text-input:focus + svg{
    fill: #4D5AE5;
}
.modal-field-textarea{
    border: 1px solid rgba(46, 47, 66, 0.4);
    background-color: transparent;
    outline: transparent;
    border-radius: 4px;
    width: 100%;
    height: 120px;
    resize: none;
    padding: 8px 16px;
    outline: transparent;
    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-field-textarea::placeholder{
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}
.modal-field-textarea:focus{
    border-color: #4D5AE5;
}
.modal-field-rules{
    margin-bottom: 24px;
}
.modal-custom-checkbox{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    margin-right: 8px;
    background-color: transparent;
    fill: transparent;
    flex-shrink: 0;
    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-field-privacy{
    display: flex;
    align-items: center;
    }
.modal-field-privacy-text{
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8E8F99;    
    }
.modal-field-privacy-link{
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4D5AE5;
}
.modal-field-checkbox:checked + .modal-field-privacy > .modal-custom-checkbox {
    background-color: #404BBF;
    border: none;
    fill: #F4F4FD;
}
.modal-submit-btn{
    display: block;
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: #4D5AE5;
    border: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #FFFFFF;
    margin: 0 auto;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-submit-btn:hover,
.modal-submit-btn:focus{
    background-color: #404bbf;
}
@media screen and (min-width:768px){
    .modal {
    width: 408px;
    min-height: 524px;
    padding: 72px 24px 24px 24px;
    }
}
@media screen and (min-width:1158px){
    .modal {
    min-height: 584px;
    }
}