/* =================GLOBAL STYLES======================== */
@media screen {
  body {
    font-family: 'Roboto', sans-serif;
    color: #434455;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  ul,
  ol {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  button {
    cursor: pointer;
    display: block;
  }

  img {
    display: block;
    padding: auto;
    margin: auto;
  }

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

/* ======================end global styles====================== */

/* =============================== HEDER ================================*/

.header-page {
  padding-left: 16px;
  padding-right: 16px;
}

.container {
  box-sizing: border-box;
  max-width: 288px;
  margin-left: 16px;
  margin-right: 16px;
}

.header-page {
  background: #ffffff;
  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);
}

.topline-box {
  display: flex;
  align-items: center;
}

.topline-logo-web {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
}

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

.topline-menu-nav,
.topline-address {
  display: none;
}

.mobile-menu-open-btn {
  background-color: transparent;
  border: none;
  padding: 0;
}
.second {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===============================   768px   ======================= */
@media only screen and (min-width: 768px) {
  .mobile-menu-open-btn {
    display: none;
  }
  .container {
    box-sizing: border-box;
    max-width: 736px;
    margin: 0 auto;
  }

  .header-page {
    background: #ffffff;
    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);
  }

  .topline-box {
    display: flex;
    align-items: center;
  }

  .topline-logo-web {
    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: 120px;
  }

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

  .topline-menu-nav {
    display: flex;
    gap: 40px;
  }

  .menu-item {
    display: block;
  }

  .topline-scroll {
    font-weight: 500;
    display: block;
    padding-top: 24px;
    padding-bottom: 24px;
    position: relative;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .studio {
    color: #404bbf;
  }

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

  .topline-scroll:hover {
    color: #404bbf;
  }

  .topline-scroll:focus {
    color: #404bbf;
  }

  .topline-address {
    display: block;
    font-style: normal;
  }

  .topline-menu-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .topline-address-inf {
    font-weight: 400;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .topline-address-inf:hover {
    color: #404bbf;
  }

  .topline-address-inf:focus {
    color: #404bbf;
  }
}

/* ============================ 1168px ================================*/
@media only screen and (min-width: 1168px) {
  .container {
    box-sizing: border-box;
    max-width: 1158px;
    margin: 0 auto;
  }
  .header-page {
    background: #ffffff;
    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);
  }

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

  .topline-box {
    display: flex;
    align-items: center;
  }

  .topline-logo-web {
    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;
  }

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

  .topline-menu-nav {
    display: flex;
    gap: 40px;
  }

  .menu-item {
    display: block;
  }

  .topline-scroll {
    font-weight: 500;
    display: block;
    padding-top: 24px;
    padding-bottom: 24px;
    position: relative;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .studio {
    color: #404bbf;
  }

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

  .topline-scroll:hover {
    color: #404bbf;
  }

  .topline-scroll:focus {
    color: #404bbf;
  }

  .topline-address {
    display: flex;
    font-style: normal;
  }

  .topline-menu-address {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .topline-address-inf {
    font-weight: 400;
    padding-top: 24px;
    padding-bottom: 24px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .topline-address-inf:hover {
    color: #404bbf;
  }

  .topline-address-inf:focus {
    color: #404bbf;
  }
}
/* ============================ END HEDER =========================== */

/* ========================== HERO SECTION =========================== */
.hero {
  margin: 0 auto;
  padding: 72px 0;
  background: #2e2f42;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url('../images/hero/people-office-1.jpg');
  max-width: 320px;
}

.hero-title {
  letter-spacing: -0.01em;
  font-size: 36px;
  line-height: 1.11;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  max-width: 216px;
  text-align: center;
  margin-bottom: 72px;
}

.hero-btn {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: #4d5ae5;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  height: 56px;
  border: none;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
  background-color: #404bbf;
}

.hero-btn:focus {
  background-color: #404bbf;
}

/* ====================== END HERO SECTION ========================== */

/* ======================= FEATURE SECTION ============================= */

.feature-icon {
  display: none;
}

.feature {
  padding-top: 96px;
  padding-bottom: 96px;
}

.feature-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 111%;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  text-align: center;
  margin-bottom: 8px;
}

.feature-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #434455;
}

/* ============================== END FEATURE SECTION===================== */

/* ============================== TEAM SECTION ============================ */
.container {
  /* margin-left: 28px;
  margin-right: 28px; */
}
.team {
  background-color: #f4f4fd;
  padding-top: 96px;
  padding-bottom: 96px;
}

.team-banner {
  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-box {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.team-card {
  border-radius: 0 0 4px 4px;
  width: 264px;
  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-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 32px;
}

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

.social-box {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.social-box-item {
  width: 40px;
  height: 40px;
}

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

.social-link:hover,
.social-link:focus {
  background-color: #404bbf;
}

.icon {
  fill: #f4f4fd;
}

/* ========================END TEAM SECTION =========================== */

/* ========================PORTFOLIO SECTION ===========================*/
/* .container {
  margin-right: 16px;
  margin-left: 16px;
} */
.portfolio {
  padding-top: 96px;
  padding-bottom: 96px;
}

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

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

.portfolio-item {
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.card-content {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 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-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* .portfolio-overleyt {
  
} */

.portfolio-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.portfolio-item:hover .overleyt-text {
  transform: translateY(0%);
}
.overleyt-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  display: block;
  background-color: #4d5ae5;
  padding: 40px 32px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================== END PORTFOLIO SECTION ======================== */

/* ========================== FOOTER SECTION ================================ */

.end {
  background: #2e2f42;
  padding-top: 96px;
  padding-bottom: 96px;
}

.end-logo-web {
  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-bottom: 18px;
  display: inline-block;
  text-align: center;
}

.end-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: #f4f4fd;
}

.end-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
  max-width: 288px;
  text-align: left;
  margin-bottom: 72px;
}

/* .footer-conteiner {
  display: flex;
  align-items: baseline;
} */

.text-footera {
  max-width: 288px;
  text-align: center;
}

.social-media-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
}

.social-media-box {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 72px;
}

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

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

.footer-all-tryba {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 288px;
}

.footer-label-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 16px;
  align-items: center;
}
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-tryba {
  border: 1px solid #fff;
  border-radius: 4px;
  width: 288px;
  height: 40px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 200%;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2e2f42;
  background-color: transparent;
  padding-left: 16px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  padding: 8px 24px;
  width: 165px;
  height: 40px;
  background: #4d5ae5;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.icon-telega {
  margin-left: 16px;
}

/* ============================ END FOOTER SWCTION===================== */
