body {
    background-color: #ffffff;
    color: #434455;
    font-family: 'Roboto', sans-serif;
  }
  
  a {
    text-decoration: none;
  }
  
  ul,
  ol {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  address {
    font-style: normal;
  }
  
  img {
    display: block;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    margin: 0;
  }
  
  .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: 1158px;
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}
  
  .header {
    border-bottom: 1px solid #e7e9fc;
    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);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-nav {
    display: flex;
    align-items: center;
  }
  
  .header-logo {
    font-size: 18px;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.17;
    letter-spacing: 0.03em;
    color: #4d5ae5;
    margin-right: 76px;
  }
  
  .header-logo-span {
    color: #2e2f42;
  }
  
  .header-menu {
    display: flex;
    gap: 40px;
  }
  
  .header-menu-item-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    padding: 24px 0;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .header-menu-item-link:hover,
  .header-menu-item-link:focus {
    color: #404bbf;
  }
  
  .header-menu-item:nth-child(1) .header-menu-item-link {
    position: relative;
    color: #404bbf;
  }
  
  .header-menu-item:nth-child(1) .header-menu-item-link::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
  }
  
  .header-contacts-menu {
    display: flex;
    gap: 40px;
  }
  
  .header-contacts-menu-item-link {
    font-size: 16px;
    line-height: 1.5;
    font-weight: normal;
    color: currentColor;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-menu-item-link.active {
  position: relative;
  color: #404bbf;
}

.header-menu-item-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}
  
  .header-contacts-menu-item-link:hover,
  .header-contacts-menu-item-link:focus {
    color: #404bbf;
  }
  
  .section-hero {
    padding: 188px 0;
    background-color: #2e2f42;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/people-office.jpg);
    max-width: 1440px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
  }
  
  .hero-container {
  }
  
  .section-hero-title {
    font-size: 56px;
    font-weight: bold;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #ffffff;
    max-width: 496px;
    margin: 0 auto;
  }
  
  .section-hero-button {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    background-color: #4d5ae5;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    margin: 48px auto 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  }
  
  .section-hero-button:hover,
  .section-hero-button:focus {
    background-color: #404bbf;
  }
  
  .section-about {
    padding: 120px 0;
  }
  
  .section-about-list {
    display: flex;
    gap: 24px;
  }
  
  .section-about-list-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: calc((100% - 72px) / 4);
  }
  
  .about-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    background-color: #f4f4fd;
    border-radius: 4px;
    border: 1px solid #8e8f99;
    margin-bottom: 8px;
  }
  
  .section-about-list-item-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
  }
  
  .section-about-list-item-description {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }
  
  .section-team {
    background-color: #f4f4fd;
    padding: 120px 0;
  }
  
  .section-team-title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
  }
  
  .section-team-list {
    display: flex;
    gap: 24px;
  }
  
  .section-team-list-item {
    background-color: #ffffff;
    width: calc((100% - 72px) / 4);
    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);
  }
  
  .team-card {
    padding: 32px 16px;
  }
  
  .section-team-list-item-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 8px;
  }
  
  .section-team-list-item-description {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
  }
  
  .social-media-menu-team {
    display: flex;
    justify-content: center;
    gap: 24px;
  }
  
  .social-media-team-item {
    width: 40px;
    height: 40px;
  }
  
  .social-media-link {
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .social-media-link:hover,
  .social-media-link:focus {
      background-color: #404bbf;
  }
  
  .social-media-svg {
    fill: #f4f4fd;
  }
  
  .section-portfolio {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  
  .section-portfolio-title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
  }
  
  .section-portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
  }
  
  .section-portfolio-list-item {
    width: calc((100% - 48px) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .section-portfolio-list-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);
  }
  
  .section-portfolio-list-item:hover .section-portfolio-overlay {
    transform: translateY(0%);
  }
  
  .section-portfolio-overlay {
    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);
  }
  
  .section-portfolio-image {
    position: relative;
    overflow: hidden;
  }
  
  .section-portfolio-list-item-image {
    width: 360px;
    height: 300px;
  }
  
  .portfolio {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
  }
  
  .section-portfolio-list-item-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
  }
  
  .section-portfolio-list-item-description {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }

.footer {
    background-color: #2e2f42;
    padding: 100px 0;
  }
  .footer-container{
    display: flex;
    align-items: baseline;
  }
  
  .footer-left{
    margin-right: 120px;
  }

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

  .footer-right-menu{
    display: flex;
    gap: 16px;
  }

  .footer-right-menu-item{
    width: 40px;
    height: 40px;
  }

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

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

  .footer-social-media-svg{
    fill: #f4f4fd;
  }
  .footer-logo {
    font-size: 18px;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.17;
    letter-spacing: 0.03em;
    color: #4d5ae5;
    display: inline-block;
    margin-bottom: 16px;
  }
  
  .footer-logo-span {
    color: #f4f4fd;
  }
  
  .footer-description {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 264px;
  }

  .footer-form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: auto;
  }
  
  .form-title {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
  }
  
  .footer-form {
    display: flex;
    gap: 24px;
  }
  
  .form-label {
    display: flex;
  }
  
  .form-input {
    width: 264px;
    height: 40px;
    border: 1px solid #ffffff;
    background-color: transparent;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    padding-left: 16px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: #ffffff;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .form-input::placeholder {
    color: #ffffff;
  }

  .form-input:focus {
  border-color: #31d0aa;
}

.form-input:hover {
  border-color: #4d5ae5;
}
  
  .form-button {
    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;
    color: #ffffff;
    cursor: pointer;
    background-color: #4d5ae5;
    border: none;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .form-button-icon {
    margin-left: 16px;
  }

  .form-button:hover,
  .form-button:focus {
    background-color: #31d0aa;
  }
  
  
  .modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
  }

 .modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

  .modal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 408px;
    min-height: 584px;
    background: #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;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 72px 24px 24px 24px;
  }

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

  .exit-button:hover,
  .exit-button:focus{
    background-color: #404bbf;
    border: none;
  }

  .exit-button .svg{
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .exit-button:hover .svg,
  .exit-button:focus .svg{
    fill: #ffffff;
  }

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

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

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

  .modal-form-item .label-input{
    position: relative;
  }

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


  .modal-form-item .label-input .input:focus{
    border-color: #4d5ae5;
  }
  .modal-form-item .label-input .svg{
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .label-input:focus-within .svg{
    fill: #4d5ae5;
  }

  .form-coment{
    margin-bottom: 16px; 
  }
  .form-coment .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);
    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);
  }

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

  .modal-form .checkbox-div{
    margin-bottom: 24px;
    padding: 0;
  }

  .checkbox-div .label{
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .input-checkbox:checked + .label .span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
  }  
  
  .checkbox-div .span{
    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;
  }

  .checkbox-div .span .svg {
  fill: transparent;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-checkbox:checked + .label .span {
  background-color: #404bbf;
  border: none;
}

.input-checkbox:checked + .label .span .svg {
  fill: #f4f4fd;
}

  .checkbox-div .label {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .policy-text {
    display: inline;
  }
  
  .checkbox-div .link{
    line-height: 1.33333;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
  }

  .modal-form .button{
    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;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  }
  