/* #region Base / Global */
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #ffffff;
}
/* Block page scroll */
body:has(.backdrop.is-open) {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;   
}
a {
    color: currentColor;
    text-decoration: none;
}
img {
    display: block;
}
ul {
    list-style: none;
    padding:0;
    margin:0;
}
button {
    font-family: inherit;
    cursor: pointer;
    /* border: none; */
    background-color: transparent;
    display: block;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #4d5ae5;
}
address {
    font-style: normal;
}
/* #endregion */

/* #region Common */
.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;
}
.logo {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    color: #4d5ae5;
    display: flex;
    align-items: center;
    margin-right: 76px;
}
.footer-logo {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    color: #4d5ae5;
    display: inline-block; 
    align-items: center;
    /* margin-right: 76px; */
    margin-bottom: 16px;
}
/* #endregion */

/* #region Header */
.header {
    box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 
                0px 1px 1px rgba(46, 47, 66, 0.16), 
                0px 1px 6px rgba(46, 47, 66, 0.08);
    border-bottom: 1px solid #e7e9fc
}
.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}
.header-container {
    display: flex;
    align-items: center;
    /* width: 1158px;
    padding: 0 15px; */
}
   
.header-nav {
  margin-right: auto;
  align-items: center;
  display: flex;  
}
.menu-list {
  display: flex;
  gap: 24px;
}

.dark {
    color: #2E2F42;
}
.menu-link {    
    padding: 24px 0;  
    display: block;
            font-size: 16px;
         line-height: 1.5;   
            letter-spacing: 0.02em;
            color: #434455; 
  transition-property: color, opacity;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
 
}

.menu-link:hover, 
.menu-link:focus {
    text-decoration: none;
    color: #404bbf;
}

.menu-link.current {
  color: #404BBF;
position: relative;

}
.menu-link.current::after {
  content: '';
  position: absolute; 
  bottom: -1px;
  display: block;
  width: 100%;
  height: 4px;
  background-color: #404BBF;
  border-radius: 2px; 
  
}

.menu-item {
    font-weight: 400;
}
.menu-list {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: auto;
    gap: 40px;
    font-weight: 500;
}
.menu-post {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
}
.post-item {
    display: flex;
    align-items: center;
    gap: 40px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1); 
    }
.header-address {
    display: flex;
}
.post {
}
.post-item {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  transition-property: color, opacity;
  transition-duration: 300ms;
  transition-timing-function: ease-in;

}
.post-item:hover, 
.post-item:focus {
    color: #404bbf;
    text-decoration: none;
}
/* #endregion */

/* #region Hero */
.main {
    }
.hero {
    max-width: 1440px;
    height: 600px;
    background-color: #2E2F42;
    color: #fff;
    text-align: center;
    padding: 188px 0;  
    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;
    max-width: 1440px;
    margin:0 auto;
}
.hero-container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
    
  /* background-color: orange; */
  /* background-image: url('../images/people-office.jpg');
    
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; */
}  
.hero-header {
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    max-width: 496px;
}
.hero-header {
    margin: 0 auto;
    margin-bottom: 48px;
}
.service-btn {
    padding: 0;
    min-width: 169px;
    height: 56px;
    font-family: "Roboto", sans-serif;
    color: #ffffff;
    background-color: #4d5ae5;
    font-size: 16px;
    font-weight: 500; 
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin-bottom: 188px;
    margin: 0 auto;
    transition: background-color 250ms 
    cubic-bezier(0.4, 0, 0.2, 1); 
}
.service-btn:hover, 
.service-btn:focus {
    background-color: #404bbf;
    border: none;   
    fill: #ffffff;
} 

.service-btn:hover, 
.service-btn:focus {
    fill: #ffffff
}
/* #endregion */

/* #region Feature */
.features {
    padding: 120px 0;
}
.feature-menu {
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    margin: 0;
}
.feature-menu-item {
    width: calc((100% - 72px) / 4);
}

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

.feature-header {
    color: #2e2f42;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    max-width: 264px;
    margin-bottom: 8px;
}
.feature-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: left;
}
/* #endregion */

/* #region Team */
.team {
    background-color: #F4F4FD;
    text-align: center;
     padding: 120px 0;
}
.team-header {
    font-size: 36px;
    line-height: 1.11; 
    letter-spacing: 0.02em;
    margin-bottom: 72px;
    text-transform: capitalize; 
    color: #2e2f42;  
 }
.team-menu {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}
.team-item {
    background-color: #FFFFFF;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0px 0px 4px 4px; 
    width: calc((100% - 72px) / 4);
    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);
}
.team-photo {
    margin: 0;
    padding: 0;
    width: 264px;
}
.team-info {
    padding: 32px 0;
    margin: 0 16px;

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

.team-socials {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.socials-item {
  width: 40px;
  height: 40px;
   justify-content: center;
}
.socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #4D5AE5;
  border-radius: 50%;
  transition: background-color 250ms 
            cubic-bezier(0.4, 0, 0.2, 1);
}
.socials-link:hover,    
.socials-link:focus {
    background-color: #404bbf;
}

.socials-icon {
  fill:  #f4f4fd;
}

/* #endregion */

/* #region portfolio */
.portfolio {
    padding-top: 120px; 
    padding-bottom: 120px; 
    text-align: center;
    letter-spacing: 0.02em;
}
.portfolio-header {
    font-size: 36px;
    line-height: 1.11; 
    letter-spacing: 0.02em;  
    margin-bottom: 72px;
    text-transform: capitalize;
    color: #2e2f42;
} 
.portfolio-menu {
    display: flex;
    column-gap: 24px;
    row-gap: 48px;
    flex-wrap: wrap;
    padding-left: 0;
}
.portfolio-item {
    padding: 0;
    margin: 0;
    width: calc((100% - 48px) / 3);
    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-text,
.portfolio-item:focus .portfolio-text {
    transform: translateY(0%);
} 
.portfolio-item-photo {
    position: relative;
    overflow: hidden;
}
.portfolio-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-photo {
}
.portfolio-app {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none; 
}
.portfolio-name {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: left;
    margin-bottom: 8px;   
}
.portfolio-title {
    font-size: 16px;
    line-height: 1.5; 
    text-align: left;
}
/* #endregion */

/* #region Footer */
.footers {
    background-color: #2E2F42;
    color: #F4F4FD;
    display: flex;
    padding-top: 100px;
    padding-bottom: 100px; 
    display: flex;
    align-items: baseline;
}
.whole-footer {
    display: flex;
    align-items: baseline;
    /* max-width: 1158px; */
    width: 100%;
}
.footer-container {
    padding: 0;
    /* padding-left: 156px; */
    margin-right: 120px;
}
.social-container {
    padding: 0;
    max-width: 208px;
    height: 80px;
    margin: 0;
    color: #ffffff; 
    margin-right: 80px;   
}
.light {
    color: #f4f4fd;
}
.footer-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align:left; 
   width: 264px;
}
.social-footer-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align:left; 
   width: 96px;
   margin-bottom: 16px;
  transition-property: background-color, opacity;
  transition-duration: 300ms;
  transition-timing-function: ease-in;

}
.socials-footer {
    gap: 16px;
}
.socials-link-footer:hover,
.socials-link-footer:focus {
  background-color: #31D0AA;
  /* border-color: rgba(253, 146, 34, 0.1); */
}
.subscribe-footer-text {
    margin-bottom: 16px; 
    font-weight: 500; 
    font-size: 16px; 
    line-height: 1.5; 
    letter-spacing: 0.02em; 
    color: #ffffff;
}
.subscribe-form {
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0;
    color: #ffffff; 
}
.footer-label {
    display: block;
    font-weight: 500;
    font-size: 16px; 
    line-height: 1.5; 
    letter-spacing: 0.02em; 
    color: #FFFFFF;
}
.footer-form-wrapper {
position: relative;
display: flex;
gap: 24px;
align-items: center;
justify-content: center;
}
.footer-form-input {
    font-family: Roboto;
font-weight: 400;
font-size: 12px;
line-height: 2;
letter-spacing: 0.04em;
vertical-align: middle;
color: #FFFFFF;
padding-left: 16px; 
width: 264px;
height: 40px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: transparent; 
    outline: transparent;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-form-input::placeholder {
  color: #FFFFFF;
}
.subscribe-btn {
min-width: 165px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
font-family: "Roboto", sans-serif;
 font-size: 16px;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.04em;
cursor: pointer;
border-radius: 4px;
opacity: 1;
padding-top: 8px;
padding-right: 24px;
padding-bottom: 8px;
padding-left: 24px;
background-color: #4D5AE5;
color: #FFFFFF;
border: none; 
   transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}
.subscribe-btn:hover, 
.subscribe-btn:focus {
    background-color: #404bbf;
    border: none;   
    fill: #ffffff;
} 
.subscribe-icon {
    fill: currentColor;
margin-left: 16px; 
}
/* #endregion */

/* #region Modal */

.backdrop {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color:rgba(46, 47, 66, 0.4);
    z-index: 10;
  
    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: initial;
  /* transition-delay: 0ms; */
}
.modal {
    width: 408px;
    min-height: 584px;
    position: absolute;
    background-color: #fcfcfc;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 2px 1px rgba(0, 0, 0, 0.2); 
    border-radius: 4px;
    top: 50%;
    left: 50%;
    padding: 72px 24px 24px 24px; 
    transform: translateX(-50%) translateY(-70%);
    opacity: 0; /* visualisation*/
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); 
 }

.backdrop.is-open .modal {
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
  /* transition-delay: 250ms; */
} 

.modal-header {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: rgba(46, 47, 66, 1);
    margin-bottom: 16px;

}
.modal-btn {
  width: 24px;
  height: 24px;
  display: flex;
  padding: 0;
  position: absolute;
  justify-content: center;
  align-items: center;
  background-color: #E7E9FC;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #2E2F42; 
  top: 24px;
  right: 24px;
   transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1); 
}
.modal-btn:hover, 
.modal-btn:focus {
    background-color: #404bbf;
    border: none;   
    fill: #ffffff;
} 
.modal-close-icon {
  fill: currentColor;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-icon:hover,
.modal-close-icon:focus {
    fill: #ffffff;

}   
.modal-form {
}
.modal-form-field {
    margin-bottom: 8px;
}
.modal-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px; 
    line-height: 1.17; 
    letter-spacing: 0.04em; 
    color: #8e8f99;
}
.modal-form-wrapper {
  position: relative;
}
.modal-btn:hover > .modal-close-icon,
.modal-btn:focus > .modal-close-icon {
    fill: #ffffff;
}

.modal-input {
    display: block;
    width: 100%;
    height: 40px;
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 38px; 
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent; 
    outline: transparent;
    /* transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); */ 
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-input:focus {
  border-color: #4d5ae5;
}
.modal-input-icon {
    position: absolute;
    fill: #2e2f42;
    top: 50%;
    left: 16px;
    pointer-events: none;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%);
}
.modal-input:focus + .modal-input-icon {
  fill: #4D5AE5;
}
.modal-form-comment {
    margin-bottom: 16px
}
.user-comment {
    width: 100%;
    height: 120px;
    padding: 8px 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4); 
    background-color: transparent; 
    padding: 8px 16px;
    resize: none;
    outline: transparent;
    /* transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); */
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.user-comment:focus {
  border-color: #4d5ae5;
}
.user-comment::placeholder {
  color: rgba(46, 47, 66, 0.4);
}
.modal-form-agreement {
    margin-bottom: 24px;
}
.modal-checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    letter-spacing: 0.04em;
    line-height: 1.17;
    color: #8e8f99;
}
/* input[type='checkbox']:checked + .modal-checkbox-label > .agreement-check {
  background-color:  #404bbf;
  border: none;
  fill: #F4F4FD;
} */
.agreement-icon {
}  
.modal-checkbox:checked + .modal-checkbox-label > .agreement-check {
  background-color:  #404bbf;
  border: none;
  fill: #F4F4FD;
} 

.agreement-check {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    width: 16px; 
    height: 16px;
    fill: currentColor;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid rgba(46, 47, 66, 0.4);
    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);
}

.accent-text {
    color: #4d5ae5;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
}

/* #endregion */
