body {
  font-family: 'Roboto', 'Raleway', sans-serif;
  letter-spacing: 2%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background-color: #ffffff;
  margin: 0;
}
textarea {
  width: 360px;
  height: 120px;
  resize: none;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
/* Phone screen */
.container {
  min-width: 320px;
  max-width: 428px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  /* outline: 2px solid red; */
  /* width: 1158px;
  margin: 0 auto;
  padding: 0 15px; */
}
/* Tablet screen */
@media screen and (min-width: 768px) {
  .container {
    max-width: 736px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* Desktop screen */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1440px;
  }
}
@media only screen and (min-width: 1200px) {
  .container2 {
    max-width: 1158px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  cursor: pointer;
}
/* Nav Section */
/* .header-container {
  display: flex;
  align-items: center;
  width: 1440px;
  padding-top: 24px;
} */
@media only screen and (min-width: 768px) {
  .header-container {
    display: flex;
  }
}
@media only screen and (max-width: 767.98px) {
  .header {
    padding-left: 16px;
    padding: 24px 0;
  }
}
.logo {
  font-family: 'Raleway', sans-serif;
  color: #4d5ae5;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: 3%;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: 250px;
}
@media only screen and (min-width: 768px) and (max-width: 1119px) {
  .logo {
    margin-right: 95px;
  }
}
@media only screen and (min-width: 1200px) {
  .logo {
    margin-right: 76px;
    margin-left: 156px;
    padding: 24px 16px;
  }
}
.span-logo {
  color: #2e2f42;
  font-weight: 800;
}
.header-nav {
  display: flex;
  align-items: center;
  /* padding-bottom: 24px; */
}
.nav-list {
  display: flex;
  gap: 40px;
}
@media only screen and (max-width: 767.98px) {
  .nav-list {
    display: none;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1119px) {
  .nav-list {
    margin-right: 120px;
  }
}
.nav-list-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
}
.nav-list-link {
  position: relative;
  display: block;
  font-weight: 500;
  color: #2e2f42;
}
.nav-list-link.current::after {
  background-color: #404bbf;
}
.nav-list-link:hover,
.nav-list-link:focus {
  color: #4d5ae5;
}
.ul-address {
  display: flex;
  gap: 40px;
  margin-left: 332px;
  padding-top: 24px;
}
@media only screen and (max-width: 767.98px) {
  .ul-address {
    display: none;
  }
}
@media only screen and (max-width: 768px) {
  .ul-address {
    margin-left: 120px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1119px) {
  .ul-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
  }
}
.address {
  color: #434455;
  font-style: normal;
}
.address:hover {
  color: #4d5ae5;
}
/* Hero Section*/
.hero {
  background-color: #2e2f42;
  margin-bottom: 120px;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
    url(../images/icons/Dark-bgmob@1x.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}
@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
      url(../images/icons/Dark-bgmob@2x.jpg);
  }
}
@media only screen and (min-width: 768px) {
  .hero {
    background-image:
      linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
      url(../images/icons/Dark-bgtab@1x.jpg);
  }
}
@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
      url(../images/icons/Dark-bgtab@2x.jpg);
  }
}
@media only screen and (min-width: 1200px) {
  .hero {
    background-image:
      linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
      url(../images/icons/people-office-1desk@1x.jpg);
  }
}
@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)),
      url(../images/icons/people-office-2desk@2x.jpg);
  }
}
@media only screen and (min-width: 320px) and (max-width: 1119px) {
  .hero {
    margin-bottom: 96px;
  }
}
.hero-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  max-width: 320px;
  /* min-width: 496px; */
  margin: 0 auto;
  text-align: center;
  margin-bottom: 72px;
  /* padding-top: 188px; */
}
@media only screen and (max-width: 767.98px) {
  .hero-title {
    font-size: 36px;
  }
}
@media only screen and (min-width: 768px) {
  .hero-title {
    max-width: 496px;
    margin-bottom: 36px;
  }
}
@media only screen and (min-width: 1200px) {
  .hero-title {
    max-width: 496px;
    margin-bottom: 48px;
  }
}
.hero-container {
  padding: 188px 0;
}

.hero-button {
  display: block;
  text-align: center;
  background-color: #4d5ae5;
  letter-spacing: 4%;
  color: #ffffff;
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
  min-width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
}

.hero-button:hover,
.hero-button:focus {
  background-color: #404bbf;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* Legacy support */
  clip-path: inset(50%); /* Modern approach */
  white-space: nowrap;
  border: 0;
}
.ul-options {
  /* display: flex;
  gap: 24px; */
  /* padding-bottom: 120px; */
}

@media only screen and (min-width: 768px) {
  .ul-options {
    display: flex;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
    padding-bottom: 120px;
  }
}
@media only screen and (min-width: 768px) {
  .options-item {
    width: calc((100% - 24px) / 2);
  }
}
.options-container {
  /* width: 1128px; */
}
.options-list {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #2e2f42;
  padding-bottom: 8px;
}
@media only screen and (min-width: 320px) and (max-width: 1119px) {
  .options-list {
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    padding: 16px;
  }
}

.options-text {
  color: #434455;
}
@media only screen and (min-width: 320px) and (max-width: 1119px) {
  .options-text {
    font-weight: 500;
  }
}
@media only screen and (max-width: 1119px) {
  .options-text {
    min-width: 396px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media only screen and (max-width: 767.98px) {
  .options-item:not(:last-child) {
    margin-bottom: 20px;
  }
}
@media only screen and (max-width: 767.98px) {
  .options-item {
    margin-bottom: 96px;
  }
}
@media only screen and (min-width: 1200px) {
  .options-item {
    width: calc((100% - 24px * 3) / 4);
  }
}
/* Section-3 */
.h2-section-3 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  color: #2e2f42;
  padding-bottom: 72px;
}
.section3 {
  padding-bottom: 120px;
}
@media only screen and (max-width: 1119px) {
  .section3 {
    display: none;
  }
}
.section-3-list {
  display: flex;
  gap: 24px;
}
/* Our Team*/

.icons-social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  border-radius: 50%;
}
.ul-icons-team {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}
.icons-social-link:hover,
.icons-social-link:focus {
  cursor: pointer;
  background-color: aqua;
}
.icons-team {
}
.our-team-section {
  padding-bottom: 120px;
}
.ul-our-team {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* @media screen and (min-width: 768px) {
  .ul-our-team {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 64px;
  }
} */
/* @media screen and (min-width: 768px) {
  .team-item {
    width: calc((100% - 24px) / 2);
  }
} */

.our-team {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  color: #2e2f42;
  padding-bottom: 72px;
}
.team-container {
  padding: 32px 0;
}
.team-item {
  border-radius: 0px 0px 4px 4px;
  background: #2e2f4229;
  box-shadow:
    0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
  /* width: calc((100% - 72px) / 4); */
}
@media only screen and (min-width: 1200px) {
  .team-item {
    width: calc((100% - 72px) / 4);
  }
}
.team-list {
  font-weight: 500;
  font-style: 20px;
  line-height: 1.2;
  color: #2e2f42;
  text-align: center;
  padding-bottom: 8px;
}
.paragraph {
  text-align: center;
}
.Our-Portfolio {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  color: #2e2f42;
}
.portfolio-img {
}
.portfolio-overlay {
  position: relative;
}
.overlay-text {
  padding: 40px;
  color: #f4f4fd;
}
.portfolio-overlay {
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  transform: translateY(100%);
  transition-property: transform;
  transition-duration: 400ms;
  transition-timing-function: ease;
  transition-delay: 0s;
}
.li-item:hover .overlay {
  transform: translateY(0);
}
.li-item {
}
.portfolio-list {
  font-weight: 500;
  font-style: 20px;
  line-height: 1.2;
  color: #2e2f42;
  padding-bottom: 8px;
  padding-top: 32px;
}
.portfolio-text {
  color: #434455;
}
/* Portfolio */
.button-portfolio {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 72px;
}
.button-portfolio-list {
  color: #4d5ae5;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  background: #f4f4fd;
  padding: 12px 24px;
  border: 1px solid #e7e9fc;
  border-radius: 4px;
}
.button-portfolio-list:hover,
.button-portfolio-list:focus {
  background-color: #404bbf;
  color: #ffffff;
  border: 1px solid transparent;
}
.div-options-icon {
  display: flex;
  width: 264px;
  height: 112px;
  justify-content: center;
  align-items: center;
}
.options-item {
}
.options-icon {
  padding-bottom: 8px;
}
@media only screen and (max-width: 1119px) {
  .options-icon {
    display: none;
  }
}

/* Our Team*/

/* Customers */
.ul-customers {
  padding-bottom: 120px;
}
.icons-customers {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  min-height: 88px;
}
.icons-customers:hover,
.icons-customers:focus {
  cursor: pointer;
  fill: #4d5ae5;
  border: 1px solid #4d5ae5;
}

.ul-customers {
  display: flex;
  flex-wrap: wrap;
  /* gap: 24px; */
  justify-content: center;
  align-items: center;
}
@media only screen and (max-width: 767.98px) {
  .ul-customers {
    row-gap: 72px;
    column-gap: 16px;
  }
}
@media only screen and (max-width: 767.98px) {
  .icons-customer-item {
    width: calc((100% - 24px) / 2);
  }
}
@media only screen and (min-width: 768px) and (max-width: 1119px) {
  .icons-customer-item {
    width: calc((100% - 24px * 2) / 3);
  }
}
@media only screen and (min-width: 768px) and (max-width: 1119px) {
  .ul-customers {
    row-gap: 72px;
    column-gap: 24px;
  }
}
@media only screen and (min-width: 1200px) {
  .ul-customers {
    gap: 24px;
  }
}
/* footer */
.footer-section {
  background-color: #2e2f42;
  padding: 100px 0;
}
footer.container {
  display: flex;
  align-items: flex-start;
  gap: 120px;
}
@media only screen and (max-width: 767.98px) {
  footer.container {
    flex-direction: column;
    align-items: center;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  footer.container {
    display: flex;
    flex-wrap: wrap;
    gap: 72px 24px;
    padding-left: 108px;
  }
}
.footer-media {
  font-family: 500;
  letter-spacing: 2%;
  color: #ffffff;
}
.footer-paragraph {
  color: #f4f4fd;
  max-width: 264px;
}
@media only screen and (max-width: 767.98px) {
  .footer-paragraph {
    text-align: center;
  }
}
.footer-logo {
  font-family: 'Raleway', sans-serif;
  color: #4d5ae5;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: 3%;
  text-transform: uppercase;
  margin-right: 76px;
}
@media only screen and (max-width: 767.98px) {
  .footer-logo {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 16px;
  }
}
.span-logo-footer {
  color: #f4f4fd;
}
.footer-icon-list {
  display: flex;
  gap: 16px;
}
@media only screen and (max-width: 767.98px) {
  .footer-icon-list {
    gap: 16px;
  }
}
.footer-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #404bbf;
  border-radius: 50%;
}
@media only screen and (max-width: 767.98px) {
  .mobile-icon-link {
    margin-right: 30px;
  }
}
.mobile-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #404bbf;
  border-radius: 50%;
}
.mobile-icon-link:hover,
.mobile-icon-link:focus {
  background-color: aqua;
}
.footer-icon-link:hover,
.footer-icon-link:focus {
  background-color: aqua;
}
.footer-icon {
}
.footer-p {
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 2%;
  padding-bottom: 16px;
}
@media only screen and (max-width: 767.98px) {
  .footer-p {
    text-align: center;
  }
}
.footer-form {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-label {
}
.footer-input {
  color: #ffffff;
  width: 264px;
  height: 40px;
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 4px;
  outline: transparent;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 4%;
}
@media only screen and (max-width: 767.98px) {
  .footer-input {
    width: 100%;
  }
}

.footer-input::placeholder {
  color: #ffffff;
}

.btn-form {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: #4d5ae5;
  padding: 8px 24px;
  color: #ffffff;
  font-weight: 500;
  border-radius: 4px;
}
@media only screen and (max-width: 767.98px) {
  .btn-form {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
}
.btn-form:hover,
.btn-form:focus {
  background-color: #404bbf;
}
.icon-send-footer {
  fill: none;
}

.footer-icon-div {
  padding-left: 0;
}
.card-set {
  display: flex;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 24px;
}
.li-item {
  width: calc((100% - 24px * 2) / 3);
}
.portfolio-section {
  padding-bottom: 120px;
}
/* modal */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.5);

  transition:
    opacity 300ms ease-out,
    visibility 300ms ease-out;
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 24px;
  transform: translateX(-50%) translateY(-50%);
  width: 408px;
  min-height: 584px;
  border-radius: 4px;
  background-color: #fcfcfc;
}
.modal-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  border-radius: 50%;
  padding: 8px;
}
.modal-button-icon {
}
.backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* modal form */
.modal-caption {
  display: block;
  font-weight: 500;
  align-items: center;
  color: #2e2f42;
  padding-top: 50px;

  padding-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}
.modal-form {
}
.modal-form-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}
.modal-form-error {
  fill: red;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  opacity: 0;
}
.modal-form-checkmark {
  fill: green;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  opacity: 0;
}
.form-modal-label {
  display: block;
  font-size: 12px;
  line-height: 1.16;
  letter-spacing: 4%;
  color: #8e8f99;
  padding-bottom: 8px;
}
.modal-form-div {
  position: relative;
  margin-bottom: 8px;
}
.modal-form-input {
  width: 100%;
  outline: none;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #2e2f4266;
  padding-left: 38px;
}
.modal-form-input:focus + .modal-form-icon {
  fill: #404bbf;
}
/* Не валідне */
.modal-form-input:not(:placeholder-shown):invalid:required {
  border-color: red;
}

.modal-form-input:not(:placeholder-shown):invalid:required + .modal-form-icon {
  fill: red;
}
.modal-form-input:not(:placeholder-shown):invalid:required ~ .modal-form-error {
  opacity: 1;
}
/* Валідне */
.modal-form-input:not(:placeholder-shown):valid:required + .modal-form-icon {
  fill: green;
}
.modal-form-input:not(:placeholder-shown):valid:required {
  border-color: green;
}

.modal-form-input:not(:placeholder-shown):valid:required
  ~ .modal-form-checkmark {
  opacity: 1;
}
.modal-form-input:focus {
  border-color: #4d5ae5;
}
.modal-form-textarea {
  width: 100%;
  height: 120px;
  font-size: 12px;
  line-height: 1.16;
  padding: 8px 16px;
  letter-spacing: 4%;
  border-radius: 4px;
  border: 1px solid #2e2f4266;
  margin-bottom: 16px;
  outline: none;
}
.modal-form-input::placeholder {
  color: #2e2f4266;
  opacity: 0;
  transition: opacity 300ms ease;
}
.modal-form-input:focus::placeholder {
  opacity: 1;
}
.modal-form-textarea::placeholder {
  color: #2e2f4266;
}
.modal-form-textarea:focus {
  border-color: #4d5ae5;
}
.modal-form-agreement {
  color: #757575;
  font-size: 12px;
  line-height: 1.16;
  letter-spacing: 4%;
}
.checkbox-agreement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  color: transparent;
  border-radius: 6px;
  border: 1px solid rgba(25, 25, 25, 1);
}
input[type='checkbox']:checked + .checkbox-agreement {
  background-color: #404bbf;
  border-color: #404bbf;
  color: #ffffff;
}
.checkbox-icon {
  fill: currentColor;
}
.modal-dorm-desc {
}
.modal-form-link {
  color: #4d5ae5;
  text-decoration: underline;
}
.modal-form-button {
  display: block;
  text-align: center;
  min-width: 169px;
  height: 56px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 64px;
  background-color: #4d5ae5;
  color: #ffffff;
  border-radius: 4px;
}
.modal-form-button:hover,
.modal-form-button:focus {
  background-color: #404bbf;
}
/* Mobile menu */
.menu-toggle {
  min-height: 22px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  background-color: transparent;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  outline: none;
  stroke: #2e2f42;
}

@media (min-width: 767.98px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  padding: 40px;
  padding-top: 80px;
  background-color: #ffffff;
  z-index: 999;

  transform: translateX(100%);
  transition: transform 250ms ease-in-out;
}
@media only screen and (min-width: 768px) {
  .menu-container {
    display: none;
  }
}
.menu-container.is-open {
  transform: translateX(0);
}

.menu-container .menu-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
}

.mobile-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  margin-bottom: auto;
}

.mobile-menu-link {
  display: block;
  color: #2e2f42;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
}
.mobile-menu-item:not(:last-child) {
  margin-bottom: 40px;
}
.mobile-menu-link:active {
  color: #404bbf;
}
@media (hover: hover) {
  .mobile-menu-link:hover,
  .mobile-menu-link:focus {
    color: #404bbf;
  }
}
.mobile-address {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.11;
}
.mobile-menu-address {
  padding-bottom: 40px;
}
.mobile-email {
  margin-top: 40px;
}
/* .backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
} */
