body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #fff;
  text-decoration: none;
}
/* reset */
a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
/* скидаємо марджин заголовків та параграфів до «0»  */

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
} /*для видалення маркерів елементів списку, скидаємо марджин падінг та  до «0»*/

img {
  display: block;
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}

button {
  border: none;
  cursor: pointer;
}

/* common */

.container {
  max-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

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

@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.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;
}

/* Header */

.header-box {
  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);
  background: #fff;
  display: flex;

  /* vertical-align: top; */
}

@media only screen and (min-width: 1158px) {
  .header-box {
    display: block;
  }
}

.header-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-header {
  display: flex;
  align-items: center;
}

.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;
}
.nav-logo {
  padding: 16px 0;
  margin-right: 149px;
}

@media screen and (min-width: 768px) {
  .nav-logo {
    padding: 24px 0;
    margin-right: 120px;
  }
}

@media only screen and (min-width: 1158px) {
  .nav-logo {
    margin-right: 76px;
  }
}

.logo-studio {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e2f42;
}
.mobile-button {
  border: none;
  background-color: transparent;
}

.button-menu {
  display: block;
  fill: #2f2f37;
}

.nav-ul {
  display: none;
}

@media screen and (min-width: 768px) {
  .nav-ul {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

.nav-adress {
  display: none;
  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .nav-adress {
    display: initial;
  }
}

.nav-ul-link {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition:
    color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 2500ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #2e2f42;
  padding: 24px 0;
}

.current {
  color: #404bbf;
}

.nav-ul-link.current {
  position: relative;
}

.nav-ul-link.current::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
}

.nav-ul-link:hover,
.nav-ul-link:focus,
.adress-link:hover,
.adress-link:focus,
.nav-ul-link.current {
  color: #404bbf;
}

.adress-ul {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media only screen and (min-width: 1158px) {
  .adress-ul {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

.adress-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #4d5ae5;
}

@media screen and (min-width: 768px) {
  .adress-link {
    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: #434455;
    margin-left: 120px;
  }
}

@media only screen and (min-width: 1158px) {
  .adress-link {
    display: block;
    padding: 24px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }
}

/* Mobile menu */

.mobile-menu {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
.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%;
}

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

.nav-ul-mobile {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nav-ul-link-mob {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

.nav-ul-link-mob.current {
  color: #404bbf;
}

.adress-ul-mob {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.adress-link-mob {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #434455;
}

.adress-link-mob.current {
  color: #4d5ae5;
}

.team-social.team-social-dop {
  gap: 40px;
}

/*End Mobili menu*/

/* Hero*/

.hero {
  background-color: #2e2f42;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  max-width: 100%;
  height: auto;
  padding: 72px 0;
  background-image:
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    image-set(
      url("../images/Hero/Office-mob@1x.jpg") 1x,
      url("../images/Hero/Office-mob@2x.jpg") 2x
    );
}

@media screen and (min-width: 768px) {
  .hero-container {
    padding: 112px 0;
    background-image:
      linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      image-set(
        url("../images/Hero/Office-dsk@1x.jpg") 1x,
        url("../images/Hero/Office-dsk@2x.jpg") 2x
      );
  }
}

@media only screen and (min-width: 1158px) {
  .hero-container {
    padding: 188px 0;
    max-width: 1440px;
    background-color: #2e2f42;
    padding: 188px 0;
    background-image:
      linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      image-set(
        url("../images/Hero/Office-pc@1x.jpg") 1x,
        url("../images/Hero/Office-pc@2x.jpg") 2x
      );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-tekst {
  max-width: 216px;
  margin: 0 auto 72px auto;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
}
@media screen and (min-width: 768px) {
  .hero-tekst {
    max-width: 496px;
    margin: 0 auto 36px auto;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
  }
}
.hero-button {
  border-radius: 4px;
  border: none;
  width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
  /* margin-bottom: 72px; */
}
.hero-button:hover {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background: #404bbf;
}

/*Direct*/

.directions-icon {
  display: none;
}

@media only screen and (min-width: 1158px) {
  .directions-icon {
    height: 112px;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    background-color: #f4f4fd;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.directions {
  padding: 96px 0;
}

@media only screen and (min-width: 1158px) {
  .directions {
    padding: 120px 0;
  }
}

.directions-ul {
  display: flex;
  flex-direction: column;
  gap: 72px;
  background-color: #fff;
}
.directions-h {
  align-items: start;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 8px;
}
@media screen and (min-width: 768px) {
  .directions-ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
    justify-content: space-between;
  }
  .directions-li {
    width: calc((100% - 24px) / 2);
  }

  @media only screen and (min-width: 1158px) {
    .directions-li {
      margin: 0;
      width: 360px;
    }
  }

  .directions-h {
    display: flex;
  }
}

@media only screen and (min-width: 1158px) {
  .directions-h {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
  }
}

@media only screen and (min-width: 1158px) {
  .directions-ul {
    flex-wrap: nowrap;
    gap: 24px;
  }
}

.directions-p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

@media only screen and (min-width: 1158px) {
  .directions-p {
    font-weight: 400;
  }
}

/*Team*/

.team {
  padding: 96px 0;
  background: #f4f4fd;
}

@media only screen and (min-width: 1158px) {
  .team {
    padding: 120px 0;
  }
}

.team-our {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}

.team-ul {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 0 12px;
}

@media screen and (min-width: 768px) {
  .team-ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 64px 24px;
    justify-content: center;
  }
  .team-ul-li {
    width: 264px;
  }
}

@media only screen and (min-width: 1158px) {
  .team-ul {
    flex-wrap: nowrap;
  }
}

.team-ul-li {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 4px 4px;
  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);
  background: #fff;
}

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

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

.team-title {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: #434455;
  margin-bottom: 8px;
}

.team-social {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.team-social-link {
  display: flex;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  fill: #f4f4fd;
}

.team-social-color {
  width: 24px;
  height: 24px;
}

/* Our Portfolio*/

.portfolio {
  padding: 96px 0;
  background-color: #fff;
}

@media only screen and (min-width: 1158px) {
  .portfolio {
    padding: 120px 0;
  }
}

.portfolio-our {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}

.portfolio-ul {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-li {
  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);
}

@media only screen and (min-width: 1158px) {
  .portfolio-li {
    box-shadow: none;
  }
  .portfolio-li:hover {
    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);
  }
}

/* 
} */

.overlay {
  display: none;
}

.portfolio-div-name {
  padding: 32px 15px;
}

.portfolio-li-pone {
  margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
  .portfolio-ul {
    /* column-count: 2; */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
    justify-content: center;
  }
  .portfolio-li {
    width: 356px;
  }
}

@media only screen and (min-width: 1158px) {
  .portfolio-ul {
    gap: 48px 24px;
  }
  .portfolio-li {
    width: calc((100% - 48px) / 3);
    margin-bottom: 0;
  }
}

.portfolio-overlay {
  position: relative;
  overflow: hidden;
}
.overlay {
  display: flex;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  background-color: #3f51b5;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 250ms ease-in-out;
  padding: 40px 32px 164px;
}

.portfolio-overlay:hover .overlay {
  transform: translateY(0);
}

@media only screen and (max-width: 1158px) {
  .overlay {
    display: none;
  }
}

/* Footer */

.footer-page {
  padding: 96px 0;
  background-color: #2e2f42;
}

.footer-all {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

@media only screen and (min-width: 768px) {
  .footer-all-div {
    margin-bottom: 72px;
  }
}

@media only screen and (min-width: 1158px) {
  .footer-all-div {
    margin-bottom: 0;
  }
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 17.5px;
}

.footer-logo .logo-studio {
  color: #f4f4fd;
}

.footer-text {
  width: 288px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
}

@media screen and (min-width: 768px) {
  .footer-text {
    width: 264px;
  }
}

.footer-social-h {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
  .footer-social-h {
    display: flex;
    justify-content: start;
  }
}

.team-social-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

@media screen and (min-width: 768px) {
  .footer-subscribe {
    display: flex;
  }
}

.footer-subscribe-input {
  width: 288px;
  height: 40px;
  background-color: #2e2f42;
  border-radius: 4px;
  padding-left: 12px;
  border: 1px solid #fff;
  color: #fff;
  margin-bottom: 16px;
}

.footer-subscribe-btn {
  border-radius: 4px;
  padding-block: 8px;
  padding-inline: 24px;
  margin: 0 auto;
  width: 165px;
  height: 40px;
  background-color: #4d5ae5;
  color: #fff;
  fill: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media screen and (min-width: 768px) {
  .footer-all {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
    padding-left: 108px;
    padding-right: 164px;
  }

  .footer-logo {
    justify-content: start;
  }
  .subscripe-p {
    display: flex;
    justify-content: start;
  }
  .footer-subscribe-input {
    width: 264px;
  }

  .footer-subscribe-btn {
    margin-left: 24px;
    display: inline-flex;
  }
}

@media only screen and (min-width: 1158px) {
  .footer-page {
    padding: 100px 0;
  }
  .footer-all {
    flex-wrap: nowrap;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/*Modal*/

.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 {
  max-width: 288px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  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);
  padding: 72px 16px 24px;
}
.backdrop:not(.is-open) .modal {
  transform: translate(-50%, -50%) scale(1.5);
}
.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  border-radius: 100%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e7e9fc;
  stroke-width: 1px;
  stroke: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
  background-color: #404bbf;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.modal-close-btn:hover .close-icon {
  fill: #f3f0f0;
}
.close-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  fill: #2e2f42;
}

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

.label-mod {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.16667;
  letter-spacing: 0.04em;
  color: #8e8f99;
}
.input-form {
  border: 1px solid rgba(46, 47, 66, 0.4);
  outline: 2px solid transparent;
  border-radius: 4px;
  min-width: 256px;
  width: 100%;
  height: 40px;
  padding-left: 38px;
}

.input-form:hover {
  border: 1px solid #4d5ae5;
  border-radius: 4px;
}

.modal-icons {
  position: absolute;
  left: 32px;
  transform: translateY(30%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #2e2f42;
}

@media only screen and (min-width: 1158px) {
  .modal-icons:hover {
    fill: #4d5ae5;
  }
}

.input-comment {
  min-height: 120px;
  font-size: 12px;
  line-height: 1.16667;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  padding-top: 8px;
  padding-left: 16px;
  height: 120px;
}
.div-terms {
  margin-top: 16px;
  margin-bottom: 24px;
  display: flex;
}

.div-terms-checkbox {
  border-radius: 2px;
  fill: #404bbf;
  border: 1px solid #404bbf;
  margin-right: 8px;
  width: 16px;
}

.label-terms {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
}

.privacy-policy {
  line-height: 1.33333;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #4d5ae5;
}
.button-send {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background: #4d5ae5;
  border-radius: 4px;
  width: 169px;
  height: 56px;
}
.button-send:hover,
.button-send:focus {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background: #404bbf;
}
.form-send-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
  .modal {
    max-width: 408px;
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 408px;
  }
}
