
body {
font-family: "Roboto", sans-serif;
color: #434455;  
background-color: #ffffff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* reset */

ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}
a{
    text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

button{
cursor: pointer;    
}
/* 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-header-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;
  margin-right: 76px;
}
.header-logo-part{
color:#2e2f42;  
}
.header-logo {
  padding: 16px 0;
  display: block;
}
.burger-button {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
.burger-icon {
display: block;
fill: #2f2f37;
}
.mobile-menu{
 background-color: #FFFFFF; 
 position: fixed;
 top: 0;
 right: 0;
 width: 80%;
 height: 100%;
}
.mobile-menu-close{
position: absolute;
display: flex; 
align-items: center; 
justify-content: center;
border-radius: 4px;
top: 24px;
right: 24px;
background-color: #E7E9FC;
height: 24px;
width: 24px;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
padding: 0;
stroke: #000000;
cursor: pointer;
border: none;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
border 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(0, 0, 0, 0.1); 
}
.burger-nav{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  margin-bottom: 168px;
  margin-left: 16px;
}
.studio{
font-weight: 700;
font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;  
color: #404bbf;
}

.burger-link{
font-weight: 700;
font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;
color: #2e2f42;  
}

.burger-contacts{
display: flex;
margin-left: 16px;
margin-bottom: 48px;
flex-direction: column;
gap: 24px;
}
.telephone{
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #404bbf;  
}
.burger-contacts-items{
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #434455;
}

.burger-list{
display: flex;
flex-direction: row;
gap: 40px;    
margin-left: 16px;
margin-right: 24px; 
margin-bottom: 40px; 
}
.burger-social{   
width: 40px;
height: 40px;

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

.burger-socials-icon{
  fill: #F4F4FD; 
  
}

@media screen and (min-width: 768px) {
 .burger-button {
 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 {
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;
color: #404bbf;
}
.nav-link.current::after {
content: "";
  
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 4px;
border-radius: 2px;

background-color: #404bbf;
}

.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,
.nav-link.current
.contacts-link:focus {
  color: #404bbf;
}
}

@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;
margin: auto;
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%;
justify-content: space-between;
}

.mobile-menu-close {
position: absolute;
top: 24px;
right: 24px;
}

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

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

/*hero*/
.section-hero {
margin: auto;
background-color: #2e2f42;
max-width: 320px;
padding-top: 72px;
padding-bottom: 72px;
background-image: url(./images/people-officemob1x.jpg);
background-image: linear-gradient(rgba(46, 47, 66, 0.7), 
 rgba(46, 47, 66, 0.7)), url(../images/people-officemob1x.jpg);
background-image: 
background-repeat: no-repeat;
background-position: center; 
background-size: cover;
}
@media (min-resolution: 2x) {
.section-hero{
background-image: url(./images/people-officemob2x.jpg);
background-image: linear-gradient(rgba(46, 47, 66, 0.7), 
 rgba(46, 47, 66, 0.7)), url(../images/people-officemob2x.jpg);
}
}

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

.button {
cursor: pointer;
background-color: #4D5AE5;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.04em;
color: #ffffff;
display: block;
min-width: 169px;
height: 56px;
border: none;
border-radius: 4px;  
margin: 0 auto;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}
 .button:hover,
 .button:focus{
    background-color: #404BBF;
 }

@media screen and (min-width: 768px) {
 .section-hero {
margin: auto;
background-color: #2e2f42;
max-width: 768px;
padding-top: 112px;
padding-bottom: 112px;
background-image: url(./images/people-officetab1x.jpg);
background-image: linear-gradient(rgba(46, 47, 66, 0.7), 
 rgba(46, 47, 66, 0.7)), url(../images/people-officetab1x.jpg);
background-repeat: no-repeat;
background-position: center; 
background-size: cover;
}

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

.hero-title {
font-size: 56px;
line-height: 1.07;
letter-spacing: 0.02em;
color: #ffffff;
text-align: center;
max-width: 496px;
margin: 0 auto 36px auto;
}
} 

@media screen and (min-width: 1158px) {
 .section-hero {
margin: auto;
background-color: #2e2f42;
max-width: 1440px;
padding-top: 188px;
padding-bottom: 188px;
background-image: url(./images/people-office.jpeg);
background-image: linear-gradient(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;
}
 
@media (min-resolution: 2x) {
.section-hero{
  background-image: url(./images/people-officedesc2x.jpg);
background-image: linear-gradient(rgba(46, 47, 66, 0.7), 
 rgba(46, 47, 66, 0.7)), url(../images/people-officedesc2x.jpg);
}
}
.hero-title {
font-size: 56px;
line-height: 1.07;
letter-spacing: 0.02em;
color: #ffffff;
text-align: center;
max-width: 496px;
margin: 0 auto 48px auto;
}
}

/*section adventures*/

.section-adventures{
padding-top: 96px;
padding-bottom: 96px;
}
.adventures-title{
font-weight: 500;
font-size: 20px ;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
}
.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;
}
.adventures-list{
display: flex;
flex-wrap: wrap;
gap: 72px;
margin: 0;
}

.container-icon-advantures{
display: none;
}

.adventures-item-title{
font-weight: 700;
font-size: 36px;
line-height: 1.1;
letter-spacing: 0.02em;
text-align: center;
color: #2e2f42;
margin-bottom: 8px;
}
.adventures-item-description{
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}


@media screen and (min-width: 768px) {
.adventures-list{   
row-gap: 72px;
column-gap: 24px;
margin: 0;
}
.adventures-item{
width: calc((100% - 24px) / 2);
}
.adventures-item-title{
text-align: left;    
}
}


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

.section-adventures{
padding-top: 120px;
padding-bottom: 120px;
max-width: 100%;
}
.adventures-title{
font-weight: 500;
font-size: 20px ;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
}
.adventures-list{
display: flex;
flex-direction: row; 
gap: 24px;
}
.adventures-item{
width: calc((100% - 72px) / 4);
}
.container-icon-advantures{
display: flex;
align-items: center;
justify-content: center;
background-color: #f4f4fd;
height: 112px;
border-radius: 4px;
border: 1px solid #8e8f99;
margin-bottom: 8px;
 }
 .adventures-item-title{
font-weight: 500;
font-size: 20px;
line-height: 1.2;
}
.adventures-item-description{
 font-weight: 400;
}
}


/*section team*/
.section-team{
background-color: #f4f4fd;
padding-top: 96px;
padding-bottom: 96px;
}
.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;
align-items: center;  
justify-content: center;
}
.team-item-title{
font-weight: 700;
font-size: 20px;
line-height: 1.1;
letter-spacing: 0.02em;
color: #2e2f42;
text-align: center;  
margin-bottom: 8px;
}
.team-item{
background-color: #FFFFFF;   
border-radius: 0px 0px 4px 4px;
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);
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);   
}
.title-description-container{
padding-top: 32px;
padding-bottom: 32px;
}
.team-item-descriprion{
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
text-align: center;
margin-bottom: 8px;
}
.team-icon{
 fill: #f4f4fd;
}
.social-list{
display: flex;
justify-content: center;
gap: 24px;
}
.social-list-item{
width: 40px;
height: 40px;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
gap: 24px;
}
.socials-link{
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
background-color: #4D5AE5;
border-radius: 50%;
height: 100%;
width: 100%;

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

@media screen and (min-width: 768px) {
.team-container{
    
}
.team-list {
display: flex; 
row-gap: 72px;
column-gap: 24px;
justify-content: center;
}
}

@media screen and (min-width: 1158px) {
.section-team{
padding-top: 120px;
padding-bottom: 120px;
}
 .team-list {
display: flex;
flex-direction: row;
gap: 24px;  
}  
.team-item{
width: calc((100% - 72px) / 4);
}
   
.team-item-title{
font-weight: 500;
font-size: 20px;
line-height: 1.2;
}
}

/*section portfolio*/
.section-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-direction: column; 
gap: 48px;
}

.portfolio-item{
 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); 
 transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}

.portfolio-item:hover .portfolio-item-image-text {
  transform: translateY(0%);
}
.portfolio-item-images-container{
 position: relative;
 overflow: hidden; 
}
.portfolio-item-image-text{
position: absolute; 
top: 0;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color:#f4f4fd; 
padding: 40px 32px;
background-color: #4d5ae5;
height: 100%;
width: 100%;
transform: translateY(100%);
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item-title{
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
margin-bottom: 8px 
}
.portfolio-item-description{
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}
.portfolio-item-description-container{
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;  
}


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

@media screen and (min-width: 1158px) {
.section-portfolio{
 padding-top: 120px; 
 padding-bottom: 120px; 
}
.portfolio-list{
display: flex;
flex-direction: row; 
column-gap: 24px;
row-gap: 48px;
}
.portfolio-item{
 width: calc((100% - 48px) / 3);
 box-shadow: none;
}
.portfolio-item: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);
transform: translateY(0%);   
}
}

/*footer*/
.page-footer{
background-color: #2e2f42;
line-height: 1.5;
letter-spacing: 0.02em;
padding-top: 96px;   
padding-bottom: 96px;
}
.footer-container{
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 72px;
}

.logo-footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  text-transform: uppercase;
  color: #4d5ae5;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.logo-part{
color: #f4f4fd;  
}
.footer-description{
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
max-width: 264px;
}
.footer-description-social{
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color:#FFFFFF;
margin-bottom: 16px;
display: flex;
justify-content: center; 
}
.social-list-icon{
display: flex;
gap: 16px;  
}
.footer-social-list{
width: 40px;
height: 40px; 
}
.footer-social-link{
display: flex; 
justify-content: center; 
width: 100%;
height: 100%;
background-color:#4d5ae5;
border-radius: 50%;
align-items: center;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}
.footer-social-link:hover,
.footer-social-link:focus{
background-color: #31d0aa;
background-color: #31d0aa;
}
.footer-icon{
fill:#f4f4fd;
}
.subscribe-form{
position: relative; 
}
.footer-subscribe{
display: flex;
justify-content: center;
margin-bottom: 16px;
font-weight: 500;  
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #ffffff;;  
}
.footer-form{
gap: 16px; 
}
.footer-label-field{
width: 288px;
height: 40px;
border: 1px solid #ffffff; 
background-color: transparent;
font-size: 12px;
line-height: 2;
letter-spacing: 0.04em;
padding-left: 16px;
margin-bottom: 16px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15); 
border-radius: 4px; 
color: #ffffff; 
}
.input::placeholder{
color: #ffffff; 
}
.button-subscribe{
font-family: "Roboto", sans-serif;
display: flex;
margin-right: auto;
margin-left: auto;
font-size: 16px;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.04em;
border: none; 
border-radius: 4px;
min-width: 165px;
height: 40px;
justify-content: center;
align-items: center;
color: #ffffff;
cursor: pointer;
background-color: #4D5AE5;
}
.footer-subscribe-icon{
 margin-left: 16px;
 fill: #fff;
}
@media screen and (min-width: 768px) {
.footer-container{
flex-direction: row;
column-gap: 24px;
row-gap: 72px;
padding: 0 164px 0 108px;
} 
.logo-footer-logo{
justify-content: flex-start;
}

.footer-description-social{
justify-content: left;    
}
.footer-form{
display: flex;
gap: 24px; 
}
.footer-label-field{
width: 264px;
}
.footer-subscribe{ 
justify-content: flex-start; 
}

}
@media screen and (min-width: 1158px) {
.page-footer{
padding-top: 100px;   
padding-bottom: 100px;
}
.footer-container{
align-items: baseline;
padding: 0 15px;
gap: unset;
}
.container-logo{
 margin-right: 120px; 
}
.subscribe-form{
position: relative;
margin-left: auto;
}

.footer-form{      
gap: 24px; 
}
.footer-label-field{
width: 264px;
}
}

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

.modal{
position: absolute;
top: 50%;
left: 50%;
padding-left: 16px;
padding-right: 16px;
padding-top: 72px; 
padding-bottom: 24px;
width: 288px;
min-height: 584px;
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;
display: flex; 
align-items: center; 
justify-content: center;
border-radius: 4px;
top: 24px;
right: 24px;
background-color: #E7E9FC;
height: 24px;
width: 24px;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
padding: 0;
stroke: #000000;
cursor: pointer;
border: none;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
border 250ms cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(0, 0, 0, 0.1);  
}
.modal-close:hover,
.modal-close:focus{
background-color: #404bbf;
border: none;
}
.modal-close-btn-icon{
 transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);  
}
.modal-close:hover .modal-close-btn-icon
.modal-close:focus .modal-close-btn-icon{
fill: #ffffff; 
}
.modal-close:hover,
.modal-close:focus{
fill: #ffffff;   
}

.modal-input-icon{
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.popup-description{
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
text-align: center;
color: #2e2f42; 
letter-spacing: 0.02em;
margin-bottom: 16px;
}
.form-field-wrapper-field{
margin-bottom: 16px;
}
.form-field-wrapper{
margin-bottom: 8px;
}
.label-field{ 
display: block; 
font-size: 12px;
font-weight: 400;
line-height: 1.16667;
letter-spacing: 0.04em;
color: #8e8f99;
margin-bottom: 4px;
line-height: 1.17;
}
.field-wrapper {
  position: relative;
}
.text-field{  
border-radius: 4px;
width: 100%;
height: 40px;
border: 1px solid rgba(46, 47, 66, 0.4); 
background-color: transparent; 
padding-left: 38px;
outline: transparent;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.text-field:focus{
border-color: #4D5AE5;
}
.text-field:focus + .modal-input-icon{
fill: #4D5AE5;
} 
.text-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);
}
.text-area:focus{
border-color: #4D5AE5; 
}
.agreement{
margin-bottom: 24px;
}

.text-agreement{
font-size: 12px; 
line-height: 1.17;
letter-spacing: 0.04em;
color: #8e8f99;
}
.privacy-span{
 width: 16px;
 height: 16px; 
 margin-right: 8px;
 border: 1px solid rgba(46, 47, 66, 0.4); 
 border-radius: 2px;
 display: inline-flex; 
 align-items: center;
justify-content: center;
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);
}
.text-privacy:checked + .text-agreement .privacy-span{
  border: none;
  fill: #F4F4FD;
  background-color: #404bbf;
}

.accent{
color: #4d5ae5;  
}

.button-primary{
cursor: pointer;
background-color: #4D5AE5;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.04em;
color: #ffffff;
display: block;
min-width: 169px;
height: 56px;
border: none;
border-radius: 4px;  
margin: 0 auto;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);   
}

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

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