body {
  font-family: "Roboto", sans-serif;
  background-color: #ffffff;
  font-size: 16px;
  color: #434455;
  font-weight: 400;
}

.page-content {
  background-color: #f4f4fd;
  min-height: 100vh;
  padding: 40px 16px;
}

.page-block {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid rgba(46, 47, 66, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(46, 47, 66, 0.08);
  padding: 32px;
}

.page-block h1 {
  font-size: 36px;
  line-height: 1.1;
  color: #2e2f42;
  margin-bottom: 24px;
}

.page-block h2 {
  font-size: 24px;
  color: #404bbf;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-block p {
  font-size: 16px;
  line-height: 1.7;
  color: #434455;
  margin-bottom: 16px;
}

.page-block a {
  color: #4d5ae5;
  text-decoration: none;
  border-bottom: 1px dashed #4d5ae5;
}

.page-block a:hover,
.page-block a:focus {
  color: #404bbf;
  border-bottom-color: #404bbf;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

.container {
  max-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*----------------------HEADER-------------------- */

.header-container {
  display: flex;
}

.header {
  /* padding-top: 24px; */
  /* padding-bottom: 24px; */
  padding-top: 16px;
  padding-bottom: 16px;
  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);
}

.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;
  /* 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;
}

.header-nav {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.header-menu {
  /* display: flex; */
  display: none;
  gap: 40px;
}

.header-item-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  padding: 24px 0;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.header-item:first-child .header-item-link {
  color: #404bbf;
}

.header-item:first-child .header-item-link::after {
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  bottom: -1px;
  background-color: #404bbf;
  border-radius: 2px;
}

.header-item-link:hover,
.header-item-link:focus,
.header-item-link:hover::after,
.header-item-link:focus::after {
  color: #404bbf;
}

.contacts-data {
  display: none;
  font-style: normal;
}

.adress-list {
  display: flex;
  /* gap: 40px; */
  gap: 12px;
}

.data {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.data:hover {
  color: #404bbf;
}

.data:focus {
  color: #404bbf;
}

.mob-menu-btn {
  background-color: transparent;
  border: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mob-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  padding: 24px 24px 40px 16px;
}

.mob-close {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  right: 24px;
  top: 24px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-close:hover,
.mob-close:focus {
  background-color: #404bbf;
  border: none;
  fill: #ffffff;
}

.mob-nav {
}

.mob-links {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mob-menu-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 72px;
}

.mob-item {
}

.mob-item-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  color: #2e2f42;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mob-item:first-child .mob-item-link {
  color: #404bbf;
}

.mob-item-link {
}

.mob-contacts-data {
}

/* Footer links style */
.footer-soc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.footer-soc .footer-link {
  color: #404bbf;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: color 250ms ease-in-out, transform 250ms ease-in-out;
}

.footer-soc .footer-link:hover,
.footer-soc .footer-link:focus {
  color: #2e2f42;
  transform: translateY(-1px);
}

.footer-soc .footer-link:active {
  color: #1f236b;
}


.mob-adress-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mob-data-email {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #4d5ae5;
  font-style: normal;
}

.mob-data-phone {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #434455;
  font-style: normal;
}

.mob-list-soc {
  justify-content: space-between;
  display: flex;
  flex-direction: row;
}

.mob-item-icon {
  width: 40px;
  height: 40px;
}

.mob-link {
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-icon {
  fill: #f4f4fd;
}

/*------------------------------first section Title----------------------- */

.title {
  max-width: 320px;
  background-color: #2e2f42;
  /* padding: 188px 0; */
  padding: 72px 0;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/1.jpg);
  margin: 0 auto;
  /* max-width: 1440px; */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media screen and (min-resolution: 2x), (-webkit-min-device-pisel-ratio: 2x) {
  .title {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/1.jpg);
  }
}

.title-header {
  font-weight: 700;
  /* font-size: 56px; */
  font-size: 36px;
  line-height: 1.11111;
  /* line-height: 1.07; */
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  /* max-width: 496px; */
  max-width: 216px;
  margin: 0 auto;
}

.title-button {
  font-weight: 500;
  font-size: 16px;
  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;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.title-button:hover {
  background-color: #404bbf;
}

.title-button:focus {
  background-color: #404bbf;
}

/*----------------------------------Features------------------------------- */

.features-title-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  /* gap: 24px; */
  gap: 72px;
}

.features {
  /* padding-top: 120px;
  padding-bottom: 120px; */
  padding-top: 96px;
  padding-bottom: 96px;
}

.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;
}

.features-list-item {
  /* width: calc((100% - 72px) / 4); */
}

.list-title {
  /* font-weight: 500;
  font-size: 20px;
  line-height: 1.2; */
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
  text-align: center;
}

.features-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.features-icon-block {
  display: none;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  width: 264px;
  height: 112px;
  justify-content: center;
  align-items: center;
  background-color: #f4f4fd;
  margin-bottom: 8px;
}

/*--------------------------------------Our Team---------------------------- */

.team {
  background-color: #f4f4fd;
  /* padding: 120px 0; */
  padding-top: 96px;
  padding-bottom: 96px;
}

.team-container {
  max-width: 294px;
}

.team-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.team-list {
  /* flex-direction: row; */
  flex-direction: column;
  display: flex;
  /* gap: 24px; */
  gap: 72px;
  flex-wrap: wrap;
  justify-content: center;
}

.team-list-item {
  width: 264px;
  background-color: #ffffff;
  /* width: calc((100% - 72px) / 4); */
  border-radius: 0px 0px 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);
}

.team-item-text {
  padding: 32px 0;
}

.team-list-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 8px;
}

.team-list-text {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  text-align: center;
}

.team-list-soc {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.soc-list-item {
  width: 40px;
  height: 40px;
}

.soc-link {
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.soc-link:hover,
.soc-link:focus {
  background-color: #404bbf;
}

.soc-icon {
  fill: #f4f4fd;
  color: #f4f4fd;
}

/* --------------------------------------Portfolio -------------------------*/

.portfolio {
  /* padding-top: 120px;
  padding-bottom: 120px; */
  padding-top: 96px;
  padding-bottom: 96px;
}

.portfolio-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  /* gap: 24px;
  row-gap: 48px; */
  gap: 48px;
}

.portfolio-list-item {
  max-width: 288px;
  /* width: calc((100% - 48px) / 3); */
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-list-item: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);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img-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-list-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.portfolio-list-text {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/*------------------------------------footer -----------------------------*/

.footer {
  background-color: #2e2f42;
  padding: 100px 0;
}

.footer-container {
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-inf {
  /* margin-right: 120px; */
  text-align: center;
  margin-bottom: 72px;
}

.logo-footer {
  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;
}

.logo-footer-studio {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4f4fd;
}

.footer-text {
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  /* max-width: 264px; */
}

.footer-soc {
  margin: 0 auto;
  margin-bottom: 72px;
}

.soc-text {
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-list-soc {
  display: flex;
  gap: 16px;
}
.footer-soc-list-item {
  width: 40px;
  height: 40px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-soc-link {
  background-color: #4d5ae5;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-soc-link:hover,
.footer-soc-link:focus {
  background-color: #31d0aa;
}

/* ----------------------LAPTOP---------------------------------- */

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
  }

  .mob-menu-btn {
    cursor: pointer;
    display: none;
  }

  .header {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header-container {
    align-items: center;
  }

  .header-item-link {
    display: block;
  }

  .logo {
    margin-right: 120px;
  }

  .header-menu {
    display: flex;
  }

  .contacts-data {
    display: block;
  }

  .adress-list {
    flex-direction: column;
  }

  .mob-menu {
    display: none;
  }

  .title {
    max-width: 768px;
    padding: 112px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/1.jpg);
  }

  @media screen and (min-resolution: 2x), (-webkit-min-device-pisel-ratio: 2x) {
    .title {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/1.jpg);
    }
  }

  .title-header {
    margin-bottom: 36px;
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
  }

  .features-title-list {
    flex-direction: row;
    gap: 24px;
    row-gap: 72px;
  }

  .features-list-item {
    width: calc((100% - 24px) / 2);
  }

  .list-title {
    text-align: left;
    gap: 24px;
  }

  .team-list {
    flex-direction: row;
    gap: 24px;
  }

  .team-list-item {
    width: calc((100% - 24px) / 2);
    width: 264px;
  }

  .portfolio-list {
    justify-content: center;
    gap: 24px;
    row-gap: 72px;
    flex-direction: row;
  }

  .portfolio-list-item {
    width: calc((100% - 24px) / 2);
    max-width: 356px;
  }

  .footer-container {
    flex-direction: row;
    padding-left: 108px;
  }

  .footer-inf {
    text-align: left;
  }

  .footer-text {
    max-width: 264px;
  }

  .footer-soc {
    margin-left: 24px;
  }

  .soc-text {
    text-align: left;
  }

  .form-text {
    text-align: left;
  }

  .footer-form {
    gap: 24px;
  }

  .modal {
    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px 24px;
  }

  .modal-input {
    min-width: 360px;
  }
}

/* -------------------------------PC-------------------------------- */

@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
  }

  .header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .header-item-link {
    display: inline;
  }

  .logo {
    margin-right: 76px;
  }

  .adress-list {
    flex-direction: row;
    gap: 40px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .title {
    max-width: 1440px;
    padding: 188px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/1.jpg);
  }

  @media screen and (min-resolution: 2x), (-webkit-min-device-pisel-ratio: 2x) {
    .title {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/1.jpg);
    }
  }

  .features {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .features-list-item {
    width: calc((100% - 72px) / 4);
  }

  .list-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
  }

  .features-text {
    font-weight: 400;
  }

  .team {
    padding: 120px 0;
  }

  .team-list {
    flex-direction: row;
    gap: 24px;
  }

  .team-list-item {
    width: calc((100% - 72px) / 4);
  }

  .portfolio {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .portfolio-list {
    gap: 24px;
    row-gap: 48px;
  }

  .portfolio-list-item {
    width: calc((100% - 48px) / 3);
    max-width: 360px;
  }

  .footer-container {
    align-items: baseline;
  }

  .footer-inf {
    margin-right: 120px;
  }

  .footer-soc {
    margin: 0;
  }

  .footer-text {
    max-width: 264px;
    margin-bottom: 0;
  }

  .footer-form-box {
    margin-left: 80px;
  }

  .features-icon-block {
    display: flex;
  }
}
