.hidden {
    display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

/* common */

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

    .nav-list {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    
    .header-logo {
        padding: 24px 0;
        margin-right: 120px;
    }
    
    .header-nav {
        display: flex;
        align-items: center;
    }

    .nav-link {
        position: relative;
        padding: 24px 0;
        display: block;
        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::after {
        content: "";
    
        position: absolute;
        left: 0;
        bottom: -1px;
    
        width: 100%;
        border-radius: 2px;
        height: 4px;
        background-color: #404bbf;
    
        opacity: 0;
    
        transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-link:hover::after,
    .nav-link:focus::after,
    .nav-link.current::after {
        opacity: 1;
    }

    .nav-link:hover,
    .nav-link:focus,
    .contacts-link:hover,
    .contacts-link:focus,
    .nav-link.nav-link.current {
        color: #404bbf;
    }
    
    .contacts {
        font-style:normal;
        display: block;
    }
    
    .contacts-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        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);
    }
}

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

.container-menu {
    max-width: 320px;
    padding: 0 16px;
    margin: 0 auto;
}

.mobile-menu-close {
    display: flex; 
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #e7e9fc;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 24px;
    right: 24px;
    border-radius: 50%;
    fill: #e7e9fc;
    stroke-width: 1px;
    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);
}

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

.mobile-menu-container {
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;

    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.footer-social {
    width: 280px;
}

.footer-social-group {
    text-align: center;
    display: flex;
    gap: 40px;
}

.footer-social-list {
    height: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    width: calc((100% - 48px) / 4);
}

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


.footer-socials:hover,
.footer-socials:focus {
    background-color: #31D0AA;
}

.footer-socials {
    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);
}

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

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

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

.nav-list-menu {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    color: #2e2f42;
    display: flex;
    flex-direction: column;
    gap: 40px;

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

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

.nav-list-menu:visited {
    color: inherit;
}

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

/* main section */

.main-container {
    align-items: center;
    display: inline;
}

.main-section {
    background-image: 
    linear-gradient(
    to bottom, 
    rgba(46, 47, 66, 0.7), 
    rgba(46, 47, 66, 0.7)
    ),
    url(../images/people-office.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #2e2f42;
    display: flex;
    flex-direction: column;
    padding: 72px 0;
    max-width: 1440px;
}

.caption {
    max-width: 320px;
    padding: 0 52px;
    margin-bottom: 72px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
}
 
.main-button {
    min-width: 169px;
    border-radius: 4px;
    border: none;
    padding: 16px 32px;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: #4d5ae5;
    cursor:pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.main-button:hover,
.main-button:focus{
    background-color: #404BBF
}

@media (min-resolution: 2x) {
    .main-section {
        background-image: 
    linear-gradient(
    to bottom, 
    rgba(46, 47, 66, 0.7), 
    rgba(46, 47, 66, 0.7)
    ),
    url(../images/people-office@2x.jpg);
    }
}

@media screen and (min-width: 768px) {
    .main-section {
        padding: 112px 0;
    }

    .caption {
        max-width: 768px;
        padding: 0 112px;
        margin-bottom: 36px;
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07143;
        letter-spacing: 0.02em;
    }
}

@media screen and (min-width: 1158px) {
    .main-section {
        padding: 188px 0;
    }

    .caption {
        max-width: 768px;
        margin-bottom: 48px;
    }
}

/*pros section*/

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

.pros-section {
    padding: 96px 0;
}

.pros-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
}

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

.pros-item {
    width: calc((100% - 216px) / 4);
    width: 100%;
}

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

.pros-icon-section {
    display: none;
}


@media screen and (min-width: 768px) {
    .pros-head {
        text-align: left;
    }
    .pros-list {
        gap: 24px;
    }
    .pros-item {
        width: calc((100% - 24px) / 2);
        margin-bottom: 72px;
    }
    .pros-section {
        padding-top: 96px;
        padding-bottom: 24px;
    }
} 

@media screen and (min-width: 1158px) {
    .pros-section {
        padding: 120px 0;
    }
    
    .pros-list {
        gap: 24px;
    }
    
    .pros-head {
        margin-bottom: 8px;
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
    }

    .pros-text {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
    
    .pros-item {
        width: calc((100% - 72px) / 4);
        margin: 0;
    }
    
    .pros-icon-section {
        align-items: center;
        display: flex;
        gap: 24px;
        justify-content: center;
        height: 112px;
        border: 1px solid #8e8f99;
        border-radius: 4px;
        width: 264px;
        margin-bottom: 8px;
        background-color: #f4f4fd;
        text-align: center;
        padding: 24px 100px;
    }
}

.team-section {
    background: #f4f4fd;;
    padding: 96px 0;
}

.team-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 72px;
}

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

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

.team-person {
    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);
    border-radius: 0 0 4px 4px;
}

.team-content {
    text-align: center;
    padding: 32px 0;
}

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

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

.team-socials-group {
    justify-content: center;
    text-align: center;
    display: flex;
    gap: 24px;
    padding: 0 16px;
}

.team-socials-list {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    width: calc((100% - 72px) / 4);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team-socials {
    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);
}

.team-socials-list:hover,
.team-socials-list:focus {
    background-color: #404BBF;
}

.team-socials:hover,
.team-socials:focus {
    background-color: #404BBF;
}

.team-icon {
    fill: #f4f4fd;
}

@media screen and (min-width: 768px) {
    .team-list {
        gap: 24px;
    }
    .team-person {
        margin-bottom: 64px;
    }
    .team-section {
        background: #f4f4fd;;
        padding-top: 96px;
        padding-bottom: 32px;
    }
} 

@media screen and (min-width: 1158px) {
    .team-section {
        padding: 120px 0;
    }
    .team-person {
        margin-bottom: 0;
    }
    .team-section {
        background: #f4f4fd;;
        padding-top: 96px 0;
    }
}

.portfolio-section {
    padding: 96px 0;
}

.portfolio-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
}
    

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

.portfolio-overlay {
    position: relative;
    overflow: hidden;

}

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

}

.overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;

  transform: translatey(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}
  
.portfolio-item:hover .overlay {
      transform: translateY(0);
}

.portfolio-item {
    transform: translateY(0%);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    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-content {
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    padding: 32px 16px;
}

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

.portfolio-item .portfolio-list {
    width: calc((100% - 49px) / 3); 
}

@media screen and (min-width: 768px) {
    .portfolio-list {
        row-gap: 72px;
    }
    .portfolio-item .portfolio-list {
        width: calc((100% - 24px) / 2);
    }

    .portfolio-item {
        max-width: 356px;
    }

} 

@media screen and (min-width: 1158px) {
    .portfolio-list {
        row-gap: 48px;
    }
    .portfolio-item .portfolio-list {
        width: calc((100% - 49px) / 3); 
    }
    .portfolio-item {
        max-width: 360px;
    }
    .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); 
    }
    .portfolio-section {
        padding: 120px 0;
    }
}

.page-footer {
    background-color: #2e2f42;
    padding: 96px 0;
}

.footer-box {
    max-width: 288px;
    justify-items: center;
}

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

.footer-container {
    justify-content: center;
}

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

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

.footer-logo {
    margin-bottom: 16px;
    display: inline-block;
    justify-content: center;
    align-items: center;
}

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

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

.footer-social-group {
    text-align: center;
    display: flex;
    gap: 16px;
}

.footer-social-list {
    height: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    width: calc((100% - 48px) / 4);
}

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


.footer-socials:hover,
.footer-socials:focus {
    background-color: #31D0AA;
}

.footer-socials {
    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-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 72px;
    justify-content: center;
}

.subscribe {
    display: flex;
    flex-wrap: wrap;
}

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

.input-form {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background-color: transparent;
    justify-content: center;
}

.email-input {
    width: 288px;
    color: #fff;
    border: 1px solid #fff;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    padding-left: 16px;
    border-radius: 4px;
    height: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: transparent;
}

.email-input::placeholder {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 8px 16px;
}

.submit-button {
    display: flex;
    flex-wrap: wrap;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    padding: 8px 24px;
    min-width: 165px;
    height: 40px;
    background-color: #4d5ae5;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    justify-content: center;
    align-items: center; 
}
  
  .submit-button:hover,
  .submit-button:focus {
    background-color: #404BBF
  }

.footer-input-icon {
    fill: #fff;
    margin-left: 16px;
}

@media screen and (min-width: 768px) {

.footer-box {
    justify-items: left;
    }

.footer-social {
    text-align: start;
}

.footer-input {
    text-align: start;
    justify-items: left;
} 

.footer-container {
    justify-content: left;
}

.input-form {
    justify-content: left;
}
}

@media screen and (min-width: 1158px) {

    .footer-text {
        max-width: 288px;
    }
    
    .footer-social {
        width: 208px;
    }
    
}


/*backdrop*/

.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;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

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

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

.close {
    display: flex; 
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #e7e9fc;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 24px;
    right: 24px;
    border-radius: 50%;
    fill: #e7e9fc;
    stroke-width: 1px;
    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);

}

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

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

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

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

.form {
    margin-bottom: 8px;
}

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

.name-input {
    position: relative; 
}

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

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

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

.form-input:hover,
.form-input:focus {
    border: 1px solid #4d5ae5;
    border-radius: 4px;
    height: 40px;
    fill: #4D5AE5;
}

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

.comment-area {
    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);
    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);
}

.comment-area:focus {
    border-color: #4D5AE5;
}

.accept {
    margin-bottom: 24px;
}

.check {
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
}

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

.checked {
    margin-right: 8px;
    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);
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    fill: transparent;
}

.check:checked +  .check-label .checked {
    fill: #F4F4FD;
    background-color: #404bbf;
    border: none;
}

.policy {
    line-height: 1.33333;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
}

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

@media screen and (min-width: 768px) {

    .modal {
        padding: 72px 24px 24px 24px;
    
        width: 408px;
        min-height: 584px;
    }
}

