a {
  text-decoration: none;
}
.contact-link {
  color: #434455; /*slate*/
}
h1,
h2,
h3,
h4,
p {
  margin: 0; /* Прибирає відступи */
}
img {
  display: block; /* Прибирає нижній відступ */
}
ul,
ol {
  list-style-type: none; /* Прибирає маркери/цифри */
  margin: 0;
  padding-left: 0;
}
body {
  font-family: "roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455; /*slate*/

  background-color: #ffffff;
}
.container {
  max-width: 1158px;
  margin: 0 auto;

  padding-left: 15px;
  padding-right: 15px;
}
.header {
  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);
  border-bottom: 1px solid #e7e9fc;
}
.header-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  font-family: "raleway", sans-serif;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  color: #2e2f42; /*navyblue*/
}

.logo-text {
  font-family: "raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5; /*iris*/
}
.logo:hover,
.logo:focus,
.nav-link:hover,
.nav-link:focus,
.contact-link:hover,
.contact-link:focus {
  color: #404bbf; /*ocean*/
}
.nav-link-active::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf; /*ocean*/
  bottom: -1px;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #404bbf; /*ocean*/
}
.nav {
  padding-left: 76px;
  flex-grow: 1;
}
.nav-list {
  display: flex;
  gap: 40px;
}
.nav-link-active {
  position: relative;
  color: #404bbf; /*ocean*/
  display: block;
  padding-block: 24px;
}
.nav-link {
  position: relative;
  font-weight: 500;
  display: block;
  padding-block: 24px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #2e2f42; /*navyblue*/
}
.contact {
  font-style: normal;
}
.contact-link {
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-contact {
  display: flex;
  gap: 40px;
}
.solutions {
  background-image:
    linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/solutionbg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1440px;
  margin: 0 auto;
}

.solutions-wrapper {
  max-width: 496px;
  margin: 0 auto;
  padding-top: 188px;
  padding-bottom: 188px;
}
.solutions-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 48px;

  color: #ffffff; /*white*/
}
.solution-button {
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  color: #ffffff; /*white*/
  background-color: #4d5ae5; /*iris*/
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}
.solution-button:hover,
.solution-button:focus {
  background-color: #404bbf; /*ocean*/
}
.features-title,
.team-title,
.portfolio-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42; /*navyblue*/
  margin-bottom: 72px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.features-title {
  display: none;
}
.features-wrapper,
.team-wrapper,
.portfolio-wrapper {
  padding-top: 120px;
  padding-bottom: 120px;
}
.features-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4fd;
  height: 112px;
  margin-bottom: 8px;
  padding: 24px 100px;
  border: #8e8f99 solid 1px;
  border-radius: 4px;
}
.features-list {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.features-item {
  width: 264px;
}
.features-item-title,
.team-item-title,
.portfolio-item-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42; /*navyblue*/
  margin-bottom: 8px;
}

.team {
  background-color: #f4f4fd; /*cloud*/
}
.social-link:hover,
.social-link:focus {
  background-color: #404bbf; /*ocean*/
}
.team-img {
  width: 264px;
}
.team-item-wrapper {
  padding: 32px 16px;
}
.team-item {
  width: 264px;

  text-align: center;
  border-radius: 0 0 4px 4px;
  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);
}
.team-list {
  display: flex;
  gap: 24px;
}
.social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}
.social-link,
.footer-social-link {
  background-color: #4d5ae5;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-icon {
  margin: 12px auto;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}
.portfolio-item {
  width: 360px;
  overflow: hidden;
}
.portfolio-item:hover,
.curtain:focus,
.portfolio-item-wrapper:focus {
  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-img {
  width: 360px;
}
.portfolio-item-wrapper {
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
  padding: 32px 16px;
}
.curtain-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  padding: 40px 32px;
  background-color: #4d5ae5;
  color: #f4f4fd;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover .curtain-text {
  transform: translateY(0);
}
.curtain {
  position: relative;
  overflow: hidden;
}
.footer-wrap {
  display: flex;
  align-items: baseline;
}
.footer-wrapper {
  max-width: 264px;
}

.footer {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: #2e2f42; /*navyblue*/
}
.footer-text {
  color: #f4f4fd; /*cloud*/
  margin-top: 16px;
}
.footer-logo {
  font-family: "raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4f4fd; /*cloud*/
}
.footer-social-wrapper {
  max-width: 208px;

  margin-left: 120px;
  margin-right: 80px;
  align-items: baseline;
}
.footer-social-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff; /*cloud*/
}
.footer-social-link:hover,
.footer-social-link:focus {
  background-color: #31d0aa; /*ocean*/
}
.footer-social {
  display: flex;
  gap: 16px;
  text-align: center;
  justify-content: left;
  margin-top: 16px;
}
.footer-icon {
  margin: 8px auto;
}
.footer-subscribe {
  margin-left: auto;
  box-shadow: #31d0aa;
  border-color: #fff;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-form {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-subscribe-text {
  color: #fff;
  margin-bottom: 16px;
}

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

  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-input::placeholder {
  color: #fff;
}
.footer-input:focus {
  outline: transparent;
  border-color: #31d0aa;
}
.footer-btn {
  padding-block: 8px;
  padding-left: 24px;
  cursor: pointer;
  width: 165px;
  border: none;
  text-align: center;
  border-radius: 4px;
  background-color: #4d5ae5; /*iris*/
  color: #fff; /*cloud*/
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-btn:hover,
.footer-btn:focus {
  background-color: #31d0aa; /*ocean*/
}

.footer-subscribe-icon {
  margin-left: 16px;
}

.team-title,
.team-text {
  text-align: center;
}
.features-text,
.portfolio-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.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%;
  width: 408px;
  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-btn {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 24px;
  margin-right: 24px;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-btn:hover,
.modal-close-btn:focus {
  background-color: #404bbf;
  fill: #fff;
}
.modal-wrapper {
  display: flex;
  flex-direction: column;
  padding-inline: 24px;
  padding-top: 72px;
  padding-bottom: 22px;
}
.modal-title {
  font-weight: 500;
  font-size: 16px;
  padding-bottom: 16px;
  text-align: center;
  color: #2e2f42; /*navyblue*/
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8e8f99;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  border-radius: 4px;
  position: relative;
}
.modal-input {
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  height: 40px;
  padding-left: 38px;
  width: 100%;
}
.modal-input:focus {
  outline: transparent;
  border-color: #4d5ae5;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-input:focus + .modal-name-icon {
  fill: #4d5ae5;
  transition: stroke 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-textarea {
  width: 100%;
  height: 120px;
  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);
  padding-top: 8px;
  padding-left: 16px;
  resize: none;
}
.modal-textarea:focus {
  outline: transparent;
  border-color: #4d5ae5;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-input-wrapper:hover,
.modal-input-wrapper:focus,
.modal-textarea:hover,
.modal-textarea:focus {
  border-color: #404bbf;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
  padding-top: 14px;
  padding-bottom: 24px;
}
.checkbox-checked {
  display: flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 2px;
}
.checkbox-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding-top: 14px;
  margin-bottom: 24px; */
}
.modal-checkbox:checked + .checkbox .checkbox-checked {
  background-color: #404bbf;
  border-color: #404bbf;
  opacity: 1;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-checkbox:checked + .checkbox .checkbox-icon {
  fill: #f4f4fd;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox-checked {
  border: 1px solid rgba(46, 47, 66, 0.4);
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox-link {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #4d5ae5;
  text-decoration: underline;
}

.modal-name-icon {
  position: absolute;
  bottom: 50%;
  left: 16px;
  fill: #2e2f42;
  transform: translateY(100%);
}
.modal-button {
  width: 169px;
  height: 56px;
  padding: 8px 24px;
  border: none;
  border-radius: 4px;
  background-color: #4d5ae5; /*iris*/
  color: #fff; /*cloud*/
  cursor: pointer;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-button:hover,
.modal-button:focus {
  background-color: #404bbf; /*ocean*/
}
