body {
  background-color: #ffffff;
  color: #757575;
  font-family: Roboto, sans-serif;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media screen and (min-width: 480px) {
  .container {
    width: 480px;
  }
}
@media screen and (min-width: 768px) {
  .container {
    width: 768px;
  }
}
@media screen and (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}

.container__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: opacity 500ms, visibility 500ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal__button-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__button-close:hover, .modal__button-close:focus {
  fill: #2196f3;
  cursor: pointer;
}

.modal {
  position: relative;
  width: 100%;
}
@media screen and (min-width: 450px) {
  .modal {
    width: 450px;
    height: 609px;
  }
}
@media screen and (min-width: 1200px) {
  .modal {
    width: 528px;
    height: 581px;
  }
}
.modal {
  padding: 40px;
  background-color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
  transform: scale(1);
  transition-property: background-color, transform, width, height;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop.is-hidden .modal {
  transform: scale(1.25);
  transition: transform 500ms;
}

.modal__title {
  font-size: 20px;
  line-height: 1.17;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #212121;
}

.modal__form {
  font-size: 12px;
  line-height: 1.17;
  color: #757575;
  letter-spacing: 0.01em;
}

.form__field {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form__label {
  font-size: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.form__icon {
  position: absolute;
  top: 29px;
  left: 12px;
  width: 18px;
  height: 18px;
  transition-property: fill;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.form__input:focus + .form__icon {
  fill: #2196f3;
}

.form__input {
  outline: none;
  padding-left: 42px;
  height: 40px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  box-sizing: border-box;
  border-radius: 4px;
  transition-property: border-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.form__input:focus {
  border-color: #2196f3;
}

.form__field-comments {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
}

.form__label + .form__comments {
  display: block;
  resize: none;
  height: 120px;
  padding: 12px 16px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: rgba(117, 117, 117, 0.5);
  transition-property: border;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.form__comments:focus {
  border: 1px solid #2196f3;
  outline: none;
}
.form__label + .form__comments:not(:placeholder-shown) {
  color: #000000;
}

.form__label {
  position: relative;
  margin-bottom: 4px;
  display: flex;
}

.checkbox__form {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.checkbox__label {
  display: flex;
  align-items: center;
}

.checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.checkbox__icon {
  border: 2px solid black;
  border-radius: 2px;
  width: 16px;
  height: 15px;
  margin-right: 7px;
  fill: transparent;
  display: inline-block;
  background-size: contain;
  background-origin: border-box;
  transition-property: fill, background, border;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox__input:checked ~ .checkbox__icon {
  border-radius: 2px;
  background: #2196f3;
  fill: #ffffff;
  border: 2px solid #2196f3;
}

.checkbox__text {
  display: inline;
  margin-right: 4px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.03em;
}
@media screen and (min-width: 1200px) {
  .checkbox__text {
    font-size: 14px;
    line-height: 1.71;
  }
}

.checkbox__link {
  position: relative;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  color: #2196f3;
}
@media screen and (min-width: 1200px) {
  .checkbox__link {
    font-size: 14px;
    line-height: 1.71;
  }
}
@media screen and (max-width: 449.8px) {
  .checkbox__link {
    text-decoration-line: underline;
  }
}
@media screen and (min-width: 450px) {
  .checkbox__link::after {
    position: absolute;
    bottom: 2px;
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #2196f3;
  }
}
@media screen and (min-width: 450px) and (min-width: 1200px) {
  .checkbox__link {
    bottom: 5px;
  }
}

.modal__button-form {
  display: block;
  margin: 0 auto;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.06em;
  background: #2196f3;
  color: #ffffff;
  min-width: 200px;
  min-height: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: transparent;
  padding: 0;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.modal__button-form:focus, .modal__button-form:hover {
  background-color: #188ce8;
}

.mobile-menu__button-open {
  min-height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background-color: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}
.mobile-menu__button-open:focus {
  fill: #2196f3;
}
@media (min-width: 768px) {
  .mobile-menu__button-open {
    display: none;
  }
}

.mobile-menu__button-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu__button-close:hover, .mobile-menu__button-close:focus {
  fill: #2196f3;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(100%);
  transition: transform 250ms linear;
  padding: 48px 40px;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
@media (max-width: 439px) {
  .mobile-menu {
    padding: 30px 30px;
  }
}

.mob-menu__item:not(:last-child) {
  margin-bottom: 32px;
}

.mob-menu__link {
  font-weight: 500;
  font-size: 40px;
  line-height: 47px;
  letter-spacing: 0.02em;
  color: #212121;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu__link:hover, .mob-menu__link:focus {
  color: #2196f3;
}

.mob-menu__link--current {
  color: #2196f3;
}

.mob-contacts__item:not(:last-child) {
  margin-bottom: 32px;
}

.mob-contacts__link {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.17;
  letter-spacing: 0.02em;
  color: #2196f3;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-contacts__link:hover, .mob-contacts__link:focus {
  color: #2196f3;
}
@media (max-width: 439px) {
  .mob-contacts__link {
    font-size: 28px;
  }
}
.mob-contacts__link--mail-font {
  font-size: 24px;
  color: #757575;
}

.mob-social {
  display: none;
}
@media screen and (min-width: 440px) {
  .mob-social {
    display: flex;
    margin-top: 64px;
  }
}

.mob-social__item:not(:last-child) {
  margin-right: 10px;
}

.mob-social__link {
  display: flex;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #2196f3;
}
.mob-social__item:not(:last-child) .mob-social__link::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  margin-left: 10px;
  background-color: rgba(33, 33, 33, 0.2);
}

@media (max-width: 439px) {
  .mobile-social {
    display: flex;
    margin-top: 32px;
  }
  .mobile-social__item {
    width: 44px;
    height: 44px;
  }
  .mobile-social__item + .mobile-social__item {
    margin-left: 10px;
  }
  .mobile-social__link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #2196f3;
    transition-property: color, background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-social__link:focus, .mobile-social__link:hover {
    background-color: #2196f3;
    color: #ffffff;
  }
  .mobile-social__logo {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
}
@media screen and (min-width: 440px) {
  .mobile-social {
    display: none;
  }
}

.logo {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.19;
  letter-spacing: 0.03em;
  color: #2196f3;
}
@media screen and (min-width: 1200px) {
  .logo {
    font-size: 26px;
  }
}
.logo-header {
  color: #212121;
}
.logo-footer {
  color: #ffffff;
}

.logo {
  padding-top: 16px;
  padding-bottom: 16px;
}
@media screen and (min-width: 768px) {
  .logo {
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 1200px) {
  .section {
    padding-top: 94px;
    padding-bottom: 94px;
  }
}

.section--no-padding-top {
  padding-top: 0;
}

.section__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.17;
  text-align: center;
  letter-spacing: 0.03em;
  color: #212121;
  margin-bottom: 30px;
}
@media screen and (min-width: 1200px) {
  .section__title {
    font-size: 36px;
    margin-bottom: 50px;
  }
}

.section__title--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 {
  border-bottom: 1px solid #ececec;
  background-color: #ffffff;
}

@media screen and (max-width: 767px) {
  .header__container {
    display: flex;
    justify-content: space-between;
  }
}
@media screen and (min-width: 768px) {
  .header__container {
    display: flex;
    align-items: center;
  }
}

.header__logo-menu {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .menu {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .menu {
    display: flex;
    align-items: center;
    margin-left: 88px;
  }
}
@media screen and (min-width: 1200px) {
  .menu {
    margin-left: 93px;
  }
}

.menu__item:not(:last-child) {
  margin-right: 50px;
}

.menu__link {
  display: block;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: #212121;
  position: relative;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.menu__link:hover, .menu__link:focus {
  color: #2196f3;
}

.menu__link--current {
  color: #2196f3;
}
.menu__link--current::after {
  content: "";
  width: 100%;
  height: 4px;
  background-color: #2196f3;
  position: absolute;
  bottom: -1%;
  display: block;
  border-radius: 2px;
}

@media screen and (max-width: 767px) {
  .contacts {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .contacts {
    margin-left: auto;
  }
}
@media screen and (min-width: 1200px) {
  .contacts {
    display: flex;
    align-items: center;
  }
}

.contacts__item:not(:last-child) {
  margin-bottom: 10px;
}
@media screen and (min-width: 1200px) {
  .contacts__item:not(:last-child) {
    margin-bottom: 0;
    margin-right: 30px;
  }
}

.contacts__link {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: #757575;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts__link:hover, .contacts__link:focus {
  color: #2196f3;
}
@media screen and (min-width: 1200px) {
  .contacts__link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
    font-size: 14px;
  }
}

.contacts__icon-mail {
  width: 14px;
  height: 10px;
  margin-right: 10px;
  fill: currentColor;
}
@media screen and (min-width: 1200px) {
  .contacts__icon-mail {
    width: 16px;
    height: 12px;
  }
}

.contacts__icon-tel {
  width: 10px;
  height: 14px;
  margin-right: 10px;
  fill: currentColor;
}
@media screen and (min-width: 1200px) {
  .contacts__icon-tel {
    height: 16px;
  }
}

.filter {
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  min-width: 73px;
}
@media screen and (max-width: 767.5px) {
  .filter {
    flex-wrap: wrap;
    justify-content: start;
    margin-bottom: 40px;
    margin-top: -15px;
  }
}
@media screen and (min-width: 768px) {
  .filter {
    justify-content: center;
    margin-bottom: 30px;
  }
}
@media screen and (min-width: 1200px) {
  .filter {
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 767.5px) {
  .filter__item {
    margin-top: 15px;
  }
}
.filter__item:not(:last-child) {
  margin-right: 8px;
}

.filter__button {
  background: #f5f4fa;
  border-radius: 4px;
  border-width: 0;
  padding: 6px 22px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;
  text-align: center;
  letter-spacing: 0.03em;
  color: #212121;
  transition-property: background-color, color, box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.filter__button:hover, .filter__button:focus, .filter__button.filter__button--active {
  cursor: pointer;
  color: #ffffff;
  background: #2196f3;
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);
}

.portfolio {
  margin: -30px;
}
@media screen and (min-width: 768px) {
  .portfolio {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
  }
}

.portfolio__item {
  margin: 30px;
}
.portfolio__item.portfolio__item--hidden {
  display: none;
}
@media screen and (min-width: 768px) {
  .portfolio__item {
    margin: 15px;
    flex-basis: calc((100% - 60px) / 2);
  }
}
@media screen and (min-width: 1200px) {
  .portfolio__item {
    flex-basis: calc((100% - 90px) / 3);
  }
}

.portfolio__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition-property: box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio__link:hover, .portfolio__link:focus {
  display: block;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px rgba(0, 0, 0, 0.06), 1px 4px 6px rgba(0, 0, 0, 0.16);
}

.portfolio__img-description {
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 768px) and (max-width: 1199.5px) {
  .portfolio__img {
    width: 354px;
  }
}
@media screen and (min-width: 1200px) {
  .portfolio__img {
    width: 370px;
  }
}

.portfolio__description {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 24px;
  background-color: #2196f3;
  color: #ffffff;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.56;
  overflow: auto;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio__link:hover .portfolio__description, .portfolio__link:focus .portfolio__description {
  transform: translateY(0%);
}

.portfolio__title-item {
  flex-grow: 1;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
  border-bottom: 1px solid #eeeeee;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
}

.portfolio__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #212121;
}

.portfolio__text {
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.03em;
  color: #757575;
}

.footer {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #2f303a;
  text-align: center;
}
@media screen and (min-width: 1200px) {
  .footer {
    text-align: left;
  }
}

@media screen and (min-width: 768px) {
  .footer__columns {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-around;
  }
}
@media screen and (min-width: 1200px) {
  .footer__columns {
    flex-grow: 1;
    justify-content: space-between;
  }
}

.footer__columns--title {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.14;
  text-transform: uppercase;
  color: #ffffff;
}

.address {
  margin-top: 20px;
}

.footer-contacts__item:not(:last-child) {
  margin-bottom: 9px;
}

.footer-contacts__link {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contacts__link:hover, .footer-contacts__link:focus {
  color: #2196f3;
}

.footer-contacts__link--address {
  font-weight: normal;
  color: #ffffff;
  transition-property: color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social {
  margin-top: 60px;
}
@media screen and (min-width: 768px) {
  .footer-social {
    margin-top: 0;
  }
}

.footer-social__list {
  display: flex;
  justify-content: center;
}

.footer-social__item {
  width: 44px;
  height: 44px;
}

.footer-social__item + .footer-social__item {
  margin-left: 10px;
}

.footer-social__link {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social__link:hover, .footer-social__link:focus {
  background: #2196f3;
}

.footer-social__logo {
  fill: #ffffff;
  height: 20px;
  width: 20px;
}

.footer-mailing {
  margin-top: 60px;
}
@media screen and (min-width: 1200px) {
  .footer-mailing {
    margin-top: 0;
  }
}

@media screen and (min-width: 1200px) {
  .footer-mailing__form {
    display: flex;
    align-items: center;
  }
}

.footer-mailing__input {
  width: 100%;
  margin-bottom: 20px;
}
@media screen and (min-width: 768px) {
  .footer-mailing__input {
    width: 450px;
  }
}
@media screen and (min-width: 1200px) {
  .footer-mailing__input {
    margin-bottom: 0;
    width: 358px;
  }
}
.footer-mailing__input {
  height: 50px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
  border-radius: 4px;
  background-color: transparent;
  color: #ffffff;
}

.footer-mailing__button {
  display: flex;
  margin: 0 auto;
}
@media screen and (min-width: 1200px) {
  .footer-mailing__button {
    margin-top: 0;
    margin-left: 12px;
  }
}
.footer-mailing__button {
  height: 50px;
  min-width: 200px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  align-items: center;
  letter-spacing: 0.06em;
  padding: 10px 2px 10px 28px;
  color: #ffffff;
  border: transparent;
  background: #2196f3;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-mailing__button:hover, .footer-mailing__button:focus {
  background-color: #188ce8;
}

.footer-mailing__icon {
  fill: #ffffff;
  height: 24px;
  width: 24px;
  margin-left: 10px;
}
