html {
  scroll-behavior: smooth;
}
body {
  background-color: #fff;
  font-family: "Roboto", sans-serif;
  color: #434455;
}
input,
textarea,
button {
  font-family: inherit;
  line-height: inherit;
}
button {
  cursor: pointer;
}
ul,
ol {
  list-style-type: none;
}
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
}

/* COMMON */
.container {
  max-width: 320px;
  padding: 0 16px;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding: 0 15px;
  }
}
.section {
  padding: 96px 0;
}
@media screen and (min-width: 1158px) {
  .section {
    padding: 120px 0;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* HEADER */
.header-page {
  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);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list,
.contacts {
  display: none;
}
.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-link-logo {
  display: block;
  padding: 16px 0;
}
.nav-link-logo .logo-part {
  color: #2e2f42;
}
.burger-btn {
  border: none;
  padding: 0;
  background-color: transparent;
}
.burger-icon {
  display: block;
  fill: #2f2f37;
}
@media screen and (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .header-page-nav {
    display: flex;
    align-items: center;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .nav-link-logo {
    padding: 24px 0;
    margin-right: 120px;
  }
  .nav-list-item-link {
    display: block;
    padding: 24px 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-list-item-link.current {
    position: relative;
  }
  .nav-list-item-link.current::after {
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    left: 0;
    bottom: -1px;
    background-color: #404bbf;
    border-radius: 2px;
  }
  .contacts {
    font-style: normal;
    display: block;
  }
  .contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .contacts-list-item-link {
    display: block;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-list-item-link:hover,
  .nav-list-item-link:focus,
  .contacts-list-item-link:hover,
  .contacts-list-item-link:focus,
  .nav-list-item-link.current {
    color: #404bbf;
  }
}
@media screen and (min-width: 1158px) {
  .nav-link-logo {
    margin-right: 76px;
  }
  .contacts-list {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .contacts-list-item-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  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);
  z-index: 1000;
}
.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-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.mobile-menu-nav {
  margin-bottom: auto;
}
.nav-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.mobile-menu-nav-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.mobile-menu-nav-link.current {
  color: #404bbf;
}
.mobile-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.mobile-contacts-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-style: normal;
}
.mobile-contacts-tel {
  color: #4d5ae5;
}
.mobile-contacts-email {
  color: #434455;
}
.mobile-soc-list {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
}
.mobile-soc-icon {
  width: 40px;
  height: 40px;
  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);
}
.mobile-soc-icon svg {
  fill: #f4f4fd;
  width: 24px;
  height: 24px;
}
.mobile-soc-icon:hover,
.mobile-soc-icon:focus {
  background-color: #404bbf;
}
@media screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* HERO */
.main-section {
  background:
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/people-office.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 72px 0;
  width: 100%;
  margin: 0 auto;
}
@media (min-resolution: 192dpi) {
  .main-section {
    background-image:
      linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/people-office@2x.jpg);
  }
}
@media screen and (min-width: 768px) {
  .main-section {
    padding: 112px 0;
    background-image:
      linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/people-office.jpg);
    background-size: cover;
    background-position: center;
  }
  @media (min-resolution: 192dpi) {
    .main-section {
      background-image:
        linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/people-office@2x.jpg);
    }
  }
}
@media screen and (min-width: 1158px) {
  .main-section {
    padding: 188px 0;
    background-image:
      linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
      url(../images/people-office.jpg);
    background-size: cover;
    background-position: center;
    max-width: 1440px;
    margin: 0 auto;
  }
  @media (min-resolution: 192dpi) {
    .main-section {
      background-image:
        linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/people-office@2x.jpg);
    }
  }
}
.main-section-text {
  max-width: 216px;
  margin: 0 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) {
  .main-section-text {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
  }
}
.main-section-button {
  display: block;
  margin: 72px auto 0;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  background-color: #4d5ae5;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media screen and (min-width: 768px) {
  .main-section-button {
    margin-top: 36px;
  }
}
@media screen and (min-width: 1158px) {
  .main-section-button {
    margin-top: 48px;
  }
}
.main-section-button:hover,
.main-section-button:focus {
  background-color: #404bbf;
}

/* FEATURES */
.features-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}
.features-section-item {
  max-width: 100%;
}
.icon-container {
  display: none;
}
@media screen and (min-width: 768px) {
  .features-section-list {
    gap: 72px 24px;
  }
  .features-section-item {
    width: calc((100% - 24px) / 2);
  }
}
@media screen and (min-width: 1158px) {
  .features-section-list {
    gap: 24px;
  }
  .features-section-item {
    width: calc((100% - 72px) / 4);
  }
  .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 264px;
    height: 112px;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    margin-bottom: 8px;
  }
}
.features-section-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 8px;
}
@media screen and (min-width: 768px) {
  .features-section-title {
    text-align: left;
  }
}
@media screen and (min-width: 1158px) {
  .features-section-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
  }
}
.features-section-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
@media screen and (min-width: 1158px) {
  .features-section-text {
    font-weight: 400;
  }
}

/* TEAM */
.section-team {
  background-color: #f4f4fd;
  padding: 96px 0;
}
@media screen and (min-width: 1158px) {
  .section-team {
    padding: 120px 0;
  }
}
.team-page {
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}
.team-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 72px;
  column-gap: 24px;
}
.team-page-item {
  background-color: #fff;
  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);
  max-width: 264px;
  width: 100%;
}
.team-page-card {
  padding: 32px 16px;
}
.team-page-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 8px;
}
.team-page-text {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 8px;
}
.soc-list {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.soc-icon {
  width: 40px;
  height: 40px;
  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);
}
.soc-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.soc-icon:hover,
.soc-icon:focus {
  background-color: #404bbf;
}
.social {
  fill: #f4f4fd;
}

/* PORTFOLIO */
.section-portfolio {
  padding: 96px 0;
}
@media screen and (min-width: 1158px) {
  .section-portfolio {
    padding: 120px 0;
  }
}
.portfolio-page {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  color: #2e2f42;
  margin-bottom: 72px;
}
.portfolio-page-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 24px;
}
@media screen and (min-width: 768px) {
  .portfolio-page-list {
    row-gap: 72px;
    column-gap: 24px;
  }
  .portfolio-page-item {
    width: calc((100% - 24px) / 2);
  }
}
@media screen and (min-width: 1158px) {
  .portfolio-page-list {
    row-gap: 48px;
    column-gap: 24px;
  }
  .portfolio-page-item {
    width: calc((100% - 48px) / 3);
  }
}
.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
}
.portfolio-page-img {
  width: 100%;
  height: auto;
  display: block;
}
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 32px;
  display: flex;
  align-items: center;
}
.portfolio-page-item:hover .portfolio-overlay {
  transform: translateY(0);
}
.portfolio-overlay-text {
  color: #f4f4fd;
  font-size: 16px;
  line-height: 1.5;
}
.portfolio-full-text {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
  background-color: #fff;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1158px) {
  .portfolio-full-text {
    box-shadow: none;
  }
  .portfolio-page-item:hover .portfolio-full-text {
    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 (max-width: 1157px) {
  .portfolio-full-text {
    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-page-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
  margin-bottom: 8px;
}
.portfolio-page-text {
  font-size: 16px;
  line-height: 1.5;
  color: #434455;
}

/* FOOTER */
.footer-page {
  background-color: #2e2f42;
  padding: 96px 0;
}
@media screen and (min-width: 1158px) {
  .footer-page {
    padding: 100px 0;
  }
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}
@media screen and (min-width: 768px) {
  .footer-container {
    max-width: 584px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 72px 24px;
    padding: 0 16px;
  }
}
@media screen and (min-width: 1158px) {
  .footer-container {
    max-width: 1158px;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 15px;
  }
  .footer-brand {
    margin-right: 120px;
  }
  .footer-social {
    margin-right: 80px;
  }
  .footer-subscribe {
    margin-left: auto;
  }
}
.footer-brand {
  max-width: 264px;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}
.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.logo-part {
  color: #f4f4fd;
}
.footer-text {
  color: #f4f4fd;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.footer-social-title,
.footer-subscribe-title {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
@media screen and (min-width: 768px) {
  .footer-social-title,
  .footer-subscribe-title {
    text-align: left;
  }
}
.soc-list-footer {
  display: flex;
  gap: 16px;
}
.soc-icon-footer {
  width: 40px;
  height: 40px;
  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);
}
.soc-icon-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.soc-icon-footer:hover,
.soc-icon-footer:focus {
  background-color: #31d0aa;
}
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
@media screen and (min-width: 768px) {
  .subscribe-form {
    flex-wrap: nowrap;
    gap: 24px;
  }
}
.subscribe-input {
  width: 264px;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  background-color: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.subscribe-input:focus {
  border-color: #31d0aa;
}
.subscribe-input::placeholder {
  color: #fff;
}
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  background-color: #4d5ae5;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.subscribe-btn:hover,
.subscribe-btn:focus {
  background-color: #31d0aa;
}
.subscribe-icon {
  fill: #fff;
}

/* BACKDROP + 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);
  z-index: 999;
}
.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 288px;
  background-color: #fcfcfc;
  border-radius: 4px;
  padding: 72px 16px 24px;
}
@media screen and (min-width: 768px) {
  .modal {
    width: 90%;
    max-width: 408px;
    padding: 72px 24px 24px;
  }
}
.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-btn:hover,
.modal-close-btn:focus {
  background-color: #404bbf;
}
.modal-close-btn svg {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-btn:hover svg,
.modal-close-btn:focus svg {
  fill: #fff;
}
.modal-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 16px;
}
.order-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.label-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
}
.input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  fill: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.form-input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  outline: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.form-textarea {
  padding: 11px 16px;
  height: 120px;
  resize: none;
}
.form-input:focus {
  border-color: #4d5ae5;
}
.input-wrapper:focus-within .input-icon {
  fill: #4d5ae5;
}
.checkbox-field {
  margin: 16px 0 24px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
}
.checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}
.checkbox-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 2px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.checkbox-icon {
  fill: transparent;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox-input:checked + .checkbox-custom {
  background-color: #404bbf;
  border-color: #404bbf;
}
.checkbox-input:checked + .checkbox-custom .checkbox-icon {
  fill: #f4f4fd;
}
.checkbox-input:focus + .checkbox-custom {
  border-color: #4d5ae5;
  box-shadow: 0 0 0 2px rgba(77, 90, 229, 0.3);
}
.checkbox-text {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #8e8f99;
}
.privacy-link {
  color: #4d5ae5;
  text-decoration: underline;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.privacy-link:hover,
.privacy-link:focus {
  color: #404bbf;
}
.submit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 169px;
  height: 56px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  background-color: #4d5ae5;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.submit-btn:hover,
.submit-btn:focus {
  background-color: #404bbf;
}
