.headerr {
  box-sizing: border-box;
  background-color: #ffffff;
  border-bottom: 1px solid #e7e9fc;
  box-shadow:
    0px 2px 1px 0 rgba(46, 47, 66, 0.08),
    0px 1px 1px 0 rgba(46, 47, 66, 0.16),
    0px 1px 6px 0 rgba(46, 47, 66, 0.08);
}

img {
  display: block;
}
.container {
  max-width: 1158px;
  /*padding-left: 0;
  padding-right: 0;*/
  padding: 0 15px;
  margin: auto;
}
h1,
h2,
h3,
h4 h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: normal;
}
.nav {
  display: flex;

  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0px;

  font-family: "Roboto", sans-serif;
  color: #4d5ae5;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  margin-right: 76px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo-accent {
  color: #2e2f42;
}
.header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 40px;
  padding-top: 0;
  padding-bottom: 0;
}
.nav-list {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  list-style-type: none;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  color: #2e2f42;
}
.nav-link {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-active {
  position: relative;
  color: #404bbf;
}
.nav-link-active::after {
  content: "";
  position: absolute;
  width: 100%;
  border-radius: 2px;
  height: 4px;

  background-color: #404bbf;
  left: 0;
  bottom: -1px;
}
.nav-link:hover {
  color: #404bbf;
}
.nav-link:focus {
  color: #404bbf;
}
.contacts {
  font-style: normal;
  color: #434455;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  align-items: center;
  justify-content: center;
}
.contacts-link {
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-link:hover,
.contacts-link:focus {
  color: #404bbf;
}
.contacts-list {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  text-decoration: none;
}
.main-section-button {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  color: #4d5ae5;
  font-family: inherit;
  font-size: 16px;
  background-color: #4d5ae5;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;

  display: block;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  border: none;
  border-radius: 4px;
  min-width: 169px;
  height: 56px;
  margin: 48px auto 0;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
button:hover,
button:focus {
  background-color: #404bbf;
  fill: #fff;
}

.main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #2e2f42;
  background-image:
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url("../images/img-name.jpg");
  background-size: cover;
  max-width: 1440px;
  margin: 0 auto;
  padding: 188px 0 188px;
  background-position: center;
  background-repeat: no-repeat;
}
.main-title {
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  line-height: 1.07;
  letter-spacing: 0.02em;
  font-size: 56px;
  color: #ffffff;
  margin: 0 auto 0;
  max-width: 496px;
}
.services-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
}
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}
.service-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 112px;
  background-color: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  margin-bottom: 8px;
}
.services-item {
  width: calc((100% - 72px) / 4);
}
.services {
  padding: 120px 0 120px;
}
.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;
}

.services-subtitle {
  color: #2e2f42;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.services-description {
  color: #434455;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
}
.our-team {
  font-weight: 400;
  font-size: 36px;
  color: #2e2f42;
  line-height: 1.5;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 72px;
}
.our-team-member {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.team-description {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.portrets-img {
  background-color: #ffffff;
  box-sizing: content-box;
  border-bottom: 0 solid #ffffff;
  border-radius: 4px;
  overflow: hidden;
}
.team-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
}
li {
  list-style: none;
}
.team {
  background-color: #f4f4fd;
  padding: 120px 0 120px;
}
.portrets {
  background-color: #ffffff;
  width: calc((100% - 72px) / 4);
  border-radius: 0px 0px 4px 4px;
  box-shadow:
    0px 2px 1px 0 rgba(46, 47, 66, 0.08),
    0px 1px 1px 0 rgba(46, 47, 66, 0.16),
    0px 1px 6px 0 rgba(46, 47, 66, 0.08);
  background: #fff;
}

.team-blok {
  padding: 32px 0;
}

.our-team-member {
  color: #2e2f42;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.team-description {
  color: #434455;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.social-link {
  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);
}
.social-link:hover,
.social-link:focus {
  background-color: #404bbf;
}

.social-link-ico {
  width: 16px;
  height: 16px;
  fill: #f4f4fd;
}

.social-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #404bbf;
  border-radius: 50%;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-item:hover,
.social-item:focus {
  background-color: #31d0aa;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 1158px;
  justify-content: space-between;

  column-gap: 24px;
  row-gap: 48px;
}

.portfolio-item {
  width: calc((100% - 48px) / 3);
  cursor: pointer;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.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);
}
.portfolio-thumb {
  position: relative;
  overflow: hidden;
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 40px 32px;
  background-color: #4d5ae5;

  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #f4f4fd;
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0%);
}
.portfolio-item:hover .overlay-text {
  transform: translateY(0%);
}

.portfolio-section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.section-title {
  line-height: 1.11;
  color: #2e2f42;
  letter-spacing: 0.02em;
  font-size: 36px;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.portfolio-blok {
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
  padding: 32px 16px;
}

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

.portfolio-description {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
a {
  color: currentColor;
  display: inline-block;
  text-decoration: none;
}

address {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}
body {
  background-color: #ffffff;
  font-family: "Roboto", sans-serif;
  color: #434455;
  font-size: 16px;
  margin: 0;
}

.footer {
  background-color: #2e2f42;
  padding: 100px 0;
  align-items: baseline;
  display: block;
  gap: 16px;
}
.footer-box {
  display: flex;
  align-items: baseline;
}
.footer-logo-wrapper {
  margin-right: 120px;
}
.footer-social-wrapper {
  margin-right: auto;
}
.footer-subscribe-wrapper {
  width: 453px;
  height: 80px;

  align-items: center;
  justify-content: center;
}

.footer-social-title,
.footer-subscribe-title {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
}
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;

  border-radius: 4px;
  min-width: 165px;
  height: 40px;
  font-weight: 500;
  font-size: 16px;

  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: white;
  border: none;
  background-color: #4d5ae5;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.submit-btn:hover,
.submit-btn:focus {
  background-color: #31d0aa;
}
.svg-class-submit {
  margin-left: 16px;
}

.subscribe-label {
  display: flex;
  width: 264px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 4px;
  width: 264px;
  height: 40px;
  gap: 24px;
  background-color: #2e2f42;
}
.subscr-input {
  width: 264px;
  height: 40px;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;

  border: 1px solid #fff;
  border-radius: 4px;
  background: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  outline: none;
  color: #ffffff;
}
input::placeholder {
  color: #ffffff;
  opacity: 1;
}
.subscr-input:focus {
  border-color: #31d0aa;
}

.subscribe-form {
  display: flex;
  align-items: center;
  justify-items: center;
  flex-direction: row;
  gap: 24px;
  max-width: 453px;
  border: none;
}

.footer-social-list {
  display: flex;
  gap: 16px;
}
.footer-social-link {
  display: block;
  width: 24px;
  height: 24px;
  fill: #f4f4fd;
}
.footer-social-link-item {
  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-social-link-item:hover,
.footer-social-link-item:focus {
  background-color: #31d0aa;
}
.footer-logo-accent {
  color: #f4f4fd;
}
.footer-list-link {
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-description {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  max-width: 264px;
}

.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: #4d5ae5;
  display: inline-block;
  margin-bottom: 16px;
}

.backdrop {
  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;
  pointer-events: none;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 408px;
  min-height: 584px;
  background: #fcfcfc;

  padding: 72px 24px 24px 24px;
  border-radius: 4px;
  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);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  top: 24px;
  right: 24px;

  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e7e9fc;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);

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

.modal-close-btn:hover,
.modal-close-btn:focus {
  border: none;
  background-color: #404bbf;
}
.modal-close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-title {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}
.modal-form {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
}

.modal-form-wrapper {
  margin-bottom: 8px;
  width: 100%;
}
.modal-form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
}
.modal-input-wrapper {
  position: relative;
}
.modal-form-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-input:focus {
  border-color: #4d5ae5;
}
.modal-form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus + .modal-form-icon {
  fill: #4d5ae5;
}

.modal-textarea-wrapper {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  margin-bottom: 16px;
  width: 100%;
}
.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;
}

.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-form-textarea {
  width: 100%;
  height: 120px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  background-color: transparent;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  padding: 8px 16px;
  outline: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-form-textarea::placeholder {
  color: rgba(46, 47, 66, 0.4);
}

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

.policy-wrapper {
  margin-bottom: 24px;
  line-height: 1.16667;
  width: 100%;
}
.policy-label {
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
  cursor: pointer;
}
.policy-span {
  display: inline-flex;
  width: 16px;
  height: 16px;
  line-height: 1.16667;
  margin-right: 8px;
  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);
  fill: transparent;

  align-items: center;
  justify-content: center;
}
.policy-svg {
  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);
  fill: transparent;
}

.policy-checkbox {
  border-radius: 2px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition-property: background-color, border, fill;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  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);
  fill: transparent;
}

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

.policy-checkbox:checked + .policy-label > .policy-span {
  background-color: #404bbf;
  border: none;
  fill: #f4f4fd;
}

.modal-form-btn {
  display: block;
  min-width: 169px;
  min-height: 56px;
  margin: 0 auto;

  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  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);
}

.modal-form-btn:hover,
.modal-form-btn:focus {
  background-color: #404bbf;
}
