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

/* reset */

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

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

a {
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    white-space: nowrap;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    margin: -1px;
}

/* common */

.container {
    max-width: 320px;
    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 */

.page-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;
    align-items: center; 
    justify-content: space-between;
}

.nav-list, 
.contacts {
    display: none;
}

.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: 16px 0;
    display: block;
}

.header-logo .logo-part {
    color: #2e2f42;
}

.burger-btn {
    padding: 0;
    border: none;
    background-color: transparent;
}

.burger-icon {
    display: block;
    fill: #2f2f37;
}

@media screen and (min-width: 768px) {
    .burger-btn {
        display: none;
    }

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

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

    .header-logo {
        padding: 24px 0;
        margin-right: 120px;
    }

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

    .nav-link.current {
        position: relative;
    }

    .nav-link.current::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background-color: #404bbf;
        opacity: 0;
    }

    .contacts {
        font-style: normal;
        display: block;
    }

    .contacts-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

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

    .nav-link:hover,
    .nav-link:focus,
    .contacts-link:hover,
    .contacts-link:focus,
    .nav-link.current {
        color: #404bbf;
    }

    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.current::after {
        opacity: 1;
    } 
}

@media screen and (min-width: 1158px) {
    .header-logo {
        margin-right: 76px;
    }

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

    .contacts-link {
        padding: 24px 0;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
}

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

.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;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fafbff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.mobile-menu-nav {
    margin-bottom: auto;
}

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

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

.mobile-nav-link:hover,
.mobile-nav-link::after {
    color: #404bbf;
}

.mobile-nav-link:hover::after,
.mobile-nav-link:focus::after {
    opacity: 1;
}

.menu-contacts {
    font-style: normal;
    display: block; 
}

.menu-contacts-list {
    margin-top: 168px;
    width: 193px;
    display: flex;
    flex-direction: column;
    gap: 24px; 
}

.menu-contacts-link {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.33;
    letter-spacing: 0.02em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.menu-contacts-link:hover,
.menu-contacts-link::after {
    color: #4d5ae5;
}

.team-social.menu-social {
    gap: 40px;
    margin-top: 48px;
}

@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    } 
}

/* hero */

.hero {
    max-width: 320px;
    margin: auto;
    padding-top: 72px;
    padding-bottom: 72px;
    text-align: center;
    background-image: linear-gradient(to bottom, 
    rgba(46, 47, 66, 0.7), 
    rgba(46, 47, 66, 0.7)), 
    url("../images/background/background-mob-min.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; 
}

@media (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(to bottom,
                rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url("../images/background/background-mob@2x-min.jpg");
    }
}

@media screen and (min-width: 768px) {
    .hero {
        background-image: linear-gradient(to bottom,
                rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url("../images/background/background-tab-min.jpg");
    }

    @media (min-resolution: 192dpi) {
        .hero {
            background-image: linear-gradient(to bottom,
                    rgba(46, 47, 66, 0.7),
                    rgba(46, 47, 66, 0.7)),
                url("../images/background/background-tab@2x-min.jpg");
        }
    } 
}

@media screen and (min-width: 1158px) {
    .hero {
        background-image: linear-gradient(to bottom,
                rgba(46, 47, 66, 0.7),
                rgba(46, 47, 66, 0.7)),
            url("../images/background/background-desk-min.jpg");
    }

    @media (min-resolution: 192dpi) {
        .hero {
            background-image: linear-gradient(to bottom,
                    rgba(46, 47, 66, 0.7),
                    rgba(46, 47, 66, 0.7)),
                url("../images/background/background-desk@2x-min.jpg");
        }
    }
}

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

.hero-button {
    display: block;
    margin: 0 auto;
    min-width: 169px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background: #4d5ae5;
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

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

@media screen and (min-width: 768px) {
    .hero {
        max-width: 768px;
        padding-top: 112px;
        padding-bottom: 112px;
    }

    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
        margin: 0 auto 36px auto;
    }
}

@media screen and (min-width: 1158px) {
    .hero {
        max-width: 1440px;
        padding-top: 188px;
        padding-bottom: 188px;
    }

    .hero-title {
        max-width: 496px;
        margin: 0 auto 48px auto;
    } 
}


/* success */

.icon-success {
    display: none; 
}

.success {
    padding-bottom: 96px;
    padding-top: 96px;
}

.success-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
}

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

.success-item {
    width: 100%;
}

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

@media screen and (min-width: 768px) {
    .success-title {
        text-align: left;
    }

    .success-list {
        column-gap: 24px;
        row-gap: 72px;
    }

    .success-item {
        width: calc((100% - 24px) / 2);
    } 
}

@media screen and (min-width: 1158px) {
    .icon-success {
        display: flex;
    }

    .success-title {
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
    }

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

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

    .success-list {
        justify-content: space-between;
        gap: 24px;
    }
    
    .success-item {
        width: calc((100% - 72px) / 4);
    }
    
    .success-text {
        font-weight: 400;
    }
} 

/* team */

.team {
    background: #f4f4fd;
    padding-bottom: 96px;
    padding-top: 96px;
}

.team-container {
    padding: 0 28px;
}

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

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

.team-member {
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    text-align: center;
    width: 100%;
    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-member img {
    display: block;
    width: 100%;
    height: auto;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.team-member-info {
    padding: 32px 0;
}

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

.team-member-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    margin: 0 0 8px; 
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px; 
}

.team-social-item{
    display: inline-block;
    border-radius: 50%;
    background-color: #4d5ae5;
}

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

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

.icon {
    fill: #f4f4fd;
}

@media screen and (min-width: 768px) {
    .team-container {
        padding: 0 108px;
    }

    .team-list {
        flex-direction: row;
        column-gap: 24px;
    }

    .team-member {
        width: calc((100% - 24px) / 2);
    }
}

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

    .team-container {
        padding: 0 15px;
    }

    .team-list {
        justify-content: space-between;
        gap: 24px;
    }

    .team-member {
        width: calc((100% - 72px) / 4);
    }

    .team-member-text {
        margin: 0;
    }
}

/* portfolio */

.portfolio {
    padding-top: 96px;
    padding-bottom: 96px;
    background-color: #ffffff; 
}

.our-portfolio {
    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;
    row-gap: 48px;
}

.portfolio-member {
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-member:hover {
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolio-item {
    position: relative;
    overflow: hidden; 
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto; 
}

.portfolio-member:hover .overlay-text {
    transform: translateY(0%);
}

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

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

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

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

@media screen and (min-width: 768px) {
    .portfolio-container {
        padding: 0 16px;
    }

    .portfolio-list {
        flex-direction: row;
        column-gap: 24px;
    }
    
    .portfolio-member {
        width: calc((100% - 24px) / 2);
    } 
}

@media screen and (min-width: 1158px) {
    .portfolio-member {
        width: calc((100% - 48px) / 3);
    }
}

/* footer */

.page-footer {
    background: #2e2f42;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding-top: 96px;
    padding-bottom: 96px; 
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    row-gap: 72px;
    column-gap: 72px;
}

.footer-contacts,
.footer-subscribe {
    text-align: center;
}

.footer-logo-container {
    max-width: 288px;
    margin: 0 auto;
}

.footer-logo {
    display: block;
    text-align: center;
    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-bottom: 16px;
    text-decoration: none;
}

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

.footer-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 288px; 
}


.footer-social {
    width: 208px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

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

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

.footer-social-item {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4d5ae5; 
}

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

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

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

.footer-form {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

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

.footer-form-input:hover,
.footer-form-input:focus {
    border-color: #404bbf; 
 }

 .footer-form-button {
     font-family: "Roboto", sans-serif;
     border-radius: 4px;
     min-width: 165px;
     height: 40px;
     background-color: #4d5ae5;
     border: none;
     font-weight: 500;
     font-size: 16px;
     line-height: 1.5;
     letter-spacing: 0.04em;
     text-align: center;
     color: #ffffff;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
 }

 .footer-form-button:hover,
 .footer-form-button:focus {
     background: #31d0aa;
 }

 .footer-form-icon {
    margin-left: 16px;
    fill: #ffffff;
}

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

    .footer-logo-container {
        max-width: 264px;
        margin: 0;
        text-align: left;
    }

    .footer-logo {
        text-align: left;
    }

    .footer-social {
        width: 208px;
        text-align: left; 
    }

    .footer-form {
        margin: 0;
        text-align: left;
    }

    .footer-social-text {
        text-align: left;
    }
    
    .footer-form-container {
        flex-direction: row;
        gap: 24px;
        justify-content: flex-start;
        align-items: center;
    }
    
    .footer-form-input {
        width: 264px;
    } 
}

@media screen and (min-width: 1158px) {
    .page-footer {
        max-width: 100%;
        height: 312px;
        padding: 100px 0;
    }

    .footer-container {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0 15px;
        gap: 0;
    }

    .footer-logo-container {
        max-width: 264px;
        margin-right: 120px;
    }

    .footer-text {
        max-width: 264px;
    }

    .footer-social {
        max-width: 208px;
        margin-right: 80px; 
    }

    .footer-form {
        max-width: 453px;
    }
    
    .footer-form-container {
        gap: 24px;
        flex-direction: row;
        align-items: center;
    }
    
    .footer-form-input {
        box-shadow: none;
        opacity: 1;
        width: 264px;
    }   
}

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

.modal {
    position: absolute;
    box-sizing: border-box;
    width: 288px;
    height: 623px;
    padding: 72px 16px 24px 16px;
    top: 50%;
    left: 50%;
    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);
}

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


.modal-close {
    position: absolute;
    padding: 0;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: 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:hover,
.modal-close:focus {
    background-color: #404bbf;
    border: none;
    fill: #ffffff;
}

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

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

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

.modal-form-group {
    margin-bottom: 8px;
}

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

.modal-form-input {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 200%;
    letter-spacing: 0.04em;
    color: var(--white);
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 40px;
    padding-left: 38px;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.modal-form-input:hover,
.modal-form-input:focus {
    border-color: #4d5ae5;
    outline: none;
}

.input-text:hover,
.input-text:focus {
    border-color: #4d5ae5;
    outline: none;
}

.modal-form-input-container {
    position: relative;
}

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

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

.modal-form-group-comment {
    margin-bottom: 16px;
}

.modal-form-textarea {
    width: 100%;
    height: 120px;
    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);
    background-color: transparent;
    border-radius: 4px;
    background-color: transparent;
    padding: 8px 16px;
    outline: transparent;
    resize: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.17;
    color: #8e8f99;
}

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

.modal-form-checkbox-text {
    display: inline-flex;
    width: 16px;
    height: 16px;
    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);
    align-items: center;
    justify-content: center;
    fill: transparent;
}

.modal-form-checkbox-link {
    color: #4d5ae5;
    text-decoration: underline;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.modal-form-button:hover {
    background-color: #404bbf; 
}

@media screen and (min-width: 768px) {
    .modal {
        width: 408px;
        height: 584px;
        padding: 72px 24px 24px 24px;
    } 
}

