/* --------------------- */
/* General */
/* --------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
  color: #434455;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2e2f42;
  margin: 0;
}

p {
  margin: 0;
}

a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 4%;
  text-decoration: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}

img {
  display: block;
  max-width: 100%;
  height: 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;
}

.container {
  max-width: 320px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section {
  padding: 96px 0;
  margin: 0 auto;
  max-width: 1440px;
}

/* --------------------- */
/* Header */
/* --------------------- */

.header-flex {
  display: none;
}

.page-header {
  border-bottom: 1px solid #e7e9fc;
  padding: 16px 0;
  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);
}

.header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 76px;
}

.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  color: #4d5ae5;
  text-transform: uppercase;
}

.logo-header {
  margin-right: 76px;
}

.logo-right {
  color: #2e2f42;
}

.nav-section {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  font-weight: 500;
  padding: 24px 0;
}

.nav-section:hover,
.nav-section:focus {
  color: #404bbf;
}

.studio {
  position: relative;
  color: #404bbf;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.studio::after {
  color: #404bbf;
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}

.studio:active {
  text-decoration: underline;
}

.contacts {
  color: #434455;
  font-style: normal;
}

.contact {
  color: #434455;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact:hover,
.contact:focus {
  color: #404bbf;
}

/* --------------------- */
/* Hero-section */
/* --------------------- */

.hero {
  overflow: hidden;
  height: 432px;
  min-width: 120px;
  background-color: #2e2f42;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/hero-bg-mobile.jpg);
  padding: 72px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.hero-heading {
  max-width: 216px;
  font-size: 36px;
  text-align: center;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.cta {
  min-width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: #4d5ae5;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta:hover,
.cta:focus {
  background-color: #404bbf;
}

/* --------------------- */
/* Features-section */
/* --------------------- */

.features-flex {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature {
  letter-spacing: 0.02em;
  font-size: 20px;
  font-weight: 500;
}

.features-heading {
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
}

.feature-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.icon-element {
  width: 100%;
  height: 112px;
  background-color: #f4f4fd;
  border: 1px Solid #8e8f99;
  border-radius: 4px;
  margin-bottom: 8px;
  display: none;
}

.icon-feature {
  margin: 24px;
  width: 100%;
  fill: #2e2f42;
  display: block;
}

/* --------------------- */
/* About-section */
/* --------------------- */

.about-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.about {
  background-color: #f4f4fd;
}

.about-heading {
  margin-bottom: 72px;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.member-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 264px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16),
    0 2px 1px rgba(46, 47, 66, 0.08);
}

.member-info {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
}

.member-name {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.member-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.icon-list {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.icon-social {
  color: #f4f4fd;
  fill: currentColor;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4d5ae5;
  fill: #f4f4fd;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------- */
/* Portfolio-section */
/* --------------------- */

.port-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.port-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 48px;
}

.port-element {
  box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08);
  max-width: 288px;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.port-element:hover,
.port-element:focus {
  box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16),
    0 2px 1px rgba(46, 47, 66, 0.08);
  transform: translateY(0%);
}

.port-picture {
  width: 100%;
  aspect-ratio: 288 / 280;
  overflow: hidden;
  position: relative;
  overflow: hidden;
  transition-property: color, background-color, box-shadow;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.port-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.portfolio-header {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.portfolio-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.port-card {
  display: flex;
  flex-direction: column;
  padding: 32px 16px;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
}

.overlay {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 40px 32px;
  font-weight: 400;
  text-align: start;
  color: #f4f4fd;
  display: flex;
  justify-content: center;
  background-color: #4d5ae5;

  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------- */
/* Footer-section */
/* --------------------- */

.footer {
  background-color: #2e2f42;
  padding: 100px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.footer-left:first-child {
  text-align: center;
}

.header-footer {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  align-self: center;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.icon-list-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.logo-f {
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.21;
  letter-spacing: 0.03em;
  color: #4d5ae5;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

.logo-footer {
  color: #f4f4fd;
}

.footer-text {
  text-align: start;
  min-width: 264px;
  line-height: 1.5;
  color: #f4f4fd;
  letter-spacing: 0.02em;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4d5ae5;
  fill: #f4f4fd;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover,
.footer-link:focus {
  background-color: #31d0aa;
}

.footer-sub {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-input {
  width: 264px;
  height: 40px;
  border: 1px solid #8e8f99;
  background-color: transparent;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  padding-left: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 16px;
}

.sub-input::placeholder {
  color: #ffffff;
}

.sub-button {
  width: 165px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  background-color: #4d5ae5;
  border: none;
  border-radius: 4px;
}

.sub-icon {
  margin-left: 16px;
}

/* --------------------- */
/* Modal */
/* --------------------- */

.modal-overlay {
  background-color: rgba(46, 47, 66, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fcfcfc;
  border-radius: 4px;
  width: 288px;
  min-height: 584px;
  padding: 72px 24px 24px 24px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
    0px 2px 1px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.close:focus,
.close:hover {
  background-color: #404bbf;
  border: none;
}

.icon-close {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: currentColor;
}

.form-p {
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: #2e2f42;
  font-size: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 8px;
}

.form-label {
  color: #8e8f99;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  font-family: inherit;
  font-size: inherit;
  height: 40px;
  width: 100%;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  background-color: transparent;
  padding-left: 38px;
  outline: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #2e2f42;
  fill: #2e2f42;
  display: block;
}

.comment-field {
  margin-bottom: 16px;
}

.comment {
  width: 100%;
  height: 120px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
  opacity: 1;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  background-color: transparent;
  padding: 8px 16px;
  outline: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox {
  margin-bottom: 24px;
}

.privacy-label {
  display: block;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;

  position: relative;
  padding-left: 24px;
}

.checkbox-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 2px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  fill: transparent;

  position: absolute;
  left: 0;
  top: 7px;
}

.policy-link {
  color: #4d5ae5;
  text-decoration: underline;
}

.custom-checkbox:has(.checkbox-input:checked) .checkbox-icon {
  background-color: #404bbf;
  border: none;
  fill: #f4f4fd;
}

.button-send {
  min-width: 169px;
  height: 56px;
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  background-color: #4d5ae5;
  border: none;
  justify-self: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------- */
/* Mobile-menu */
/* --------------------- */

.mobile-menu-btn {
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-menu-btn .mobile-icon {
  fill: #2f2f37;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 999;

  opacity: 1;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: flex-end;
  padding: 72px 35px 40px 16px;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 1px solid #e7e9fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-menu {
  margin-bottom: 168px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
  text-decoration: none;
}

.mobile-nav-link.current {
  color: #404bbf;
}

.mobile-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  font-style: normal;
}

.mobile-contact-link.phone {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.11;
  color: #4d5ae5;
}

.mobile-contact-link.email {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #434455;
}

.mobile-social-list {
  display: flex;
  gap: 40px;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  border-radius: 50%;
  fill: #f4f4fd;
}

/* --------------------- */
/* Media */
/* --------------------- */

@media screen and (min-width: 768px) and (max-width: 1158px) {
  .container {
    min-width: 768px;
    max-width: 1058px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .section {
    padding: 96px 0;
  }

  .header {
    flex-direction: row;
    gap: 120px;
    padding-right: 16px;
  }

  .header-flex {
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .contacts .header-flex {
    flex-direction: column;
    gap: 12px;
  }

  .logo-header {
    margin-right: 0;
  }

  .page-header {
    padding: 16px 16px 8px 16px;
    width: 100%;
  }

  .nav {
    gap: 120px;
  }

  .studio::after {
    bottom: -5px;
  }

  .contact {
    font-size: 14px;
    font-weight: 400;
  }

  .hero {
    margin: 0 auto;
    min-width: 768px;
    max-width: 1158px;
    height: 436px;
    padding: 112px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-bg-tablet.jpg);
  }

  .hero-heading {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
  }

  .hero-flex {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .features-flex {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
  }

  .feature {
    width: calc((100% - 24px) / 2);
  }

  .features-heading {
    text-align: left;
  }

  .about-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-flex {
    max-width: 768px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 24px;
    row-gap: 64px;
  }

  .member-card {
    width: calc((1158 - 3 * 0) / 4);
  }

  .port-picture {
    aspect-ratio: 356 / 300;
  }

  .port-picture img {
    object-position: center;
  }

  .port-element {
    min-width: 356px;
    /* width: calc((1158 - 5 * 0) / 6); */
  }

  .port-element:hover,
  .port-element:focus {
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08);
  }

  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
    align-items: start;
    justify-content: start;
    padding-left: 108px;
  }

  .footer-left:first-child {
    text-align: start;
  }

  .header-footer {
    align-self: start;
  }

  .footer-text {
    max-width: 264px;
  }

  .footer-right {
    justify-self: start;
  }

  .footer-sub {
    text-align: start;
  }

  .footer-form {
    flex-direction: row;
    align-items: start;
    gap: 24px;
  }

  .sub-input {
    border: 1px solid #ffffff;
    margin-bottom: 0;
  }

  .sub-button {
    min-width: 165px;
  }

  .logo-f {
    line-height: 1.17;
  }

  .modal {
    width: 408px;
    position: sticky;
    top: 0;
    left: 0;
    transform: translate(0%, 0%);
  }

  .comment {
    color: rgba(46, 47, 66, 0.4);
    opacity: 1;
  }

  .comment-field {
    max-height: 138px;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media screen and (min-width: 1158px) {
  .container {
    min-width: 1158px;
    padding: 0 15px;
    flex-direction: column;
  }

  .section {
    padding: 120px 0;
  }

  .header {
    flex-direction: row;
  }

  .header-flex {
    display: flex;
    gap: 40px;
  }

  .page-header {
    padding: 24px 0;
  }

  .studio::after {
    bottom: -4px;
  }

  .hero {
    margin: 0 auto;
    height: 600px;
    min-width: 1058px;
    padding: 188px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-bg-desktop.jpg);
  }

  .hero-heading {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
  }

  .hero-flex {
    flex-direction: column;
    gap: 48px;
  }

  .features-flex {
    flex-direction: row;
    gap: 24px;
  }

  .feature {
    width: calc((100% - 72px) / 4);
  }

  .icon-element {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .features-heading {
    font-size: 20px;
    font-weight: 500;
    text-align: left;
  }

  .feature-text {
    font-weight: 400;
  }

  .about {
    margin: 0 auto;
  }

  .about-flex {
    flex-direction: row;
    gap: 24px;
  }

  .member-text {
    margin-bottom: 0;
  }

  .member-card {
    width: calc((1158 - 3 * 0) / 4);
  }

  .icon-link:hover,
  .icon-link:focus {
    background-color: #404bbf;
    cursor: pointer;
  }

  .port-element {
    min-width: 360px;
    box-shadow: none;
  }

  .port-element:hover,
  .port-element:focus {
    box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08),
      0 1px 1px rgba(46, 47, 66, 0.16), 0 2px 1px rgba(46, 47, 66, 0.08);
    transform: translateY(0%);
  }

  .port-picture {
    aspect-ratio: 360 / 300;
  }

  .port-picture img {
    object-position: center;
  }

  .port-element:hover .overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .footer-container {
    flex-direction: row;
    align-items: baseline;
  }

  .footer-left {
    margin-right: 120px;
  }

  .footer-left:first-child {
    text-align: start;
  }

  .footer-right {
    margin-left: 80px;
  }

  .header-footer {
    align-self: start;
  }

  .footer-text {
    max-width: 264px;
  }

  .footer-form {
    flex-direction: row;
    gap: 24px;
    align-items: start;
  }

  .footer-sub {
    text-align: start;
  }
  .sub-input {
    border: 1px solid #ffffff;
    margin-bottom: 0;
  }

  .sub-button {
    min-width: 165px;
  }

  .logo-f {
    line-height: 1.17;
  }

  .modal {
    width: 408px;
  }

  .close:focus .icon-close,
  .close:hover .icon-close {
    fill: #ffffff;
  }

  .form-input:focus {
    border-color: #4d5ae5;
  }

  .form-input:focus + .form-icon {
    fill: #4d5ae5;
  }

  .comment:focus {
    border-color: #4d5ae5;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media screen and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-bg-mobile@2x.jpg);
  }
}

@media screen and (min-width: 768px) and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-bg-tablet@2x.jpg);
  }
}

@media screen and (min-width: 1158px) and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-bg-desktop@2x.jpg);
  }
}
