:root {
  --basic-color: #ffffffff;
  --brand-color: #4d5ae5;
  --logo-color: #2e2f42;
  --contacts-color: #434455;
  --focus-color: #404bbf;
  --word-color: #f4f4fd;
  --list-color: #e7e9fc;
  --modal-color: #8e8f99;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* general */
.body {
  font-family: "Roboto", sans-serif;
  color: var(--contacts-color);
  background-color: var(--basic-color);
}
h2 {
  margin: 0;
}
p {
  margin: 0;
}
.link {
  text-decoration: none;
}
.list {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}
img {
  display: block;
}
.container {
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
/* top line */
.header {
  border-bottom: 1px solid var(--list-color);
  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-section.container {
  max-width: 1158px;
  height: 72px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-section {
  display: flex;
  align-items: center;
}
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-color);
  margin-right: 76px;
}

.logoword {
  color: var(--logo-color);
}
.list.header-list {
  display: flex;
  gap: 40px;
}
.menu.link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--logo-color);
  position: relative;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 0;
}
.menu.link.plus {
  color: var(--focus-color);
}
.menu.link::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 4px;
  width: 48px;
  background-color: var(--focus-color);
  border-radius: 2px;
  color: var(--focus-color);
}

.menu.link:hover,
.menu.link:focus {
  color: var(--focus-color);
}
.list.address-list {
  display: flex;
  gap: 40px;
}
.address {
  font-style: normal;
}
.contacts.link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--contacts-color);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts.link:hover,
.contacts.link:focus {
  color: var(--focus-color);
}

/* Hero Section */
.order-service {
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/people-office.jpg);
  padding: 188px 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1440px;
  margin-inline: auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.solutions {
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--basic-color);
  max-width: 496px;
  font-weight: 700px;
  margin: 0 auto;
  margin-bottom: 48px;
}
.order-button {
  background-color: var(--brand-color);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  color: var(--basic-color);
  cursor: pointer;
  display: block;
  width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
  margin: 0 auto;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.order-button:hover,
.order-button:focus {
  background-color: var(--focus-color);
}
/* second section */
.second-section {
  padding: 120px 0;
  display: flex;
}
.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;
}
.list.second-list {
  display: flex;
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
}
.list-item {
  width: calc((100% - 72px) / 4);
}
.icons-second {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background-color: var(--word-color);
  border-radius: 4px;
  margin-bottom: 8px;
}
.general-icons {
  width: 64px;
  height: 64px;
}
.list-title-second {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--logo-color);
  margin-bottom: 8px;
  text-align: left;
}
.list-text-second {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--contacts-color);
  text-align: left;
}

/* third section*/
.portfolio {
  padding-bottom: 120px;
}
.what-do {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--logo-color);
  margin-bottom: 72px;
}
.list.portfolio-list {
  display: flex;
  gap: 24px;
}
.images-third-list {
  max-width: 360px;
  align-self: center;
}
/* fourth section */
.cards-section {
  background-color: var(--word-color);
  padding: 120px 0;
  display: flex;
}
.cards-title {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--logo-color);
  margin-bottom: 72px;
}
.list.cards-list {
  display: flex;
  gap: 24px;
}
.title {
  background-color: var(--basic-color);
  border-radius: 0px 0px 4px 4px;
  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);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.name-job {
  padding: 32px 0;
}
.list-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--logo-color);
  margin-bottom: 8px;
  text-align: center;
}
.list-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--contacts-color);
  text-align: center;
}
.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.social-icon {
  width: 40px;
  height: 40px;
}

.social-media.link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--brand-color);
  border-radius: 50%;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-media.link:hover {
  background-color: var(--focus-color);
}
.social-media.link:focus {
  background-color: var(--focus-color);
}
.socials-icon {
  flex-shrink: 0;
  margin: 12px;
  fill: var(--word-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px;
  height: 40px;
}
/* Customers Section */
.customers {
  padding-top: 120px;
  padding-bottom: 120px;
}
.customers-title {
  color: var(--logo-color);
  text-align: center;
  font-family: Roboto;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.72px;
  text-transform: capitalize;
  margin-bottom: 72px;
}
.customers-list.list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.icon-client {
  width: calc((100% - 120px) / 6);
  height: 88px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.client-link.link {
  width: 100%;
  height: 100%;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8f99;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.client-link.link:hover {
  border-color: var(--focus-color);
  color: var(--focus-color);
}
.client-link.link:focus {
  border-color: var(--focus-color);
  color: var(--focus-color);
}
.icons {
  fill: currentColor;
  width: 104px;
  height: 56px;
}
/* Footer */
.footer {
  background-color: var(--logo-color);
  padding: 100px 0;
}
.footer-div.container {
  display: flex;
  
}
.logo-footer {
  margin-right: 120px;
  max-width: 264px;
}

.logo.footer-logo.link {
  display: flex;
  margin-bottom: 16px;
}
.word.link {
  color: var(--word-color);
}
.word-text {
  color: var(--word-color);
  font-size: 16px;
  letter-spacing: 0.32px;
  font-weight: 400;
  line-height: 1.5em;
  width: 264px;
  margin-bottom: 16px;
}
.social-media-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--basic-color);
  margin-bottom: 16px;
}

.social-icons-footer.list {
  display: flex;
  gap: 16px;
  margin-right: 120px;
}
.social-media-footer.link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--brand-color);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.socials-icon-footer {
  flex-shrink: 0;
  margin: 8px;
  fill: var(--word-color);
  width: 40px;
  height: 40px;
}
.socials-icon-footer:hover,
.socials-icon-footer.link:focus {
  background-color: #31d0aa;
}
.form-subscribe {
  display: flex;
  gap: 24px;
}

.subscribe-box {
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid var(--WHITE, #ffffff);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  width: 264px;
  height: 40px;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding-left: 16px;
  color: var(--basic-color);
}
::placeholder {
  color: var(--WHITE, #ffffff);
}

.subscribe-button {
  display: flex;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 4px;
  background: var(--brand-color);
  color: var(--basic-color);
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.64px;
  margin-left: 24px;
  min-width: 165px;
  height: 40px;
  cursor: pointer;
  border: none;
}
.plane-icon {
  margin-left: 16px;
}
/* modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 408px;
  min-height: 584px;
  background: #fcfcfc;
  border-radius: 4px;
  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);
  padding: 72px 24px 24px 24px;
}
.modal-button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--list-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  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);
}
.modal-button:hover,
.modal-button:focus {
  background-color: var(--focus-color);
  border: none;
  fill: var(--basic-color);
}
.close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--logo-color);
  margin-bottom: 16px;
}
.form-div {
  margin-bottom: 8px;
}
.name-form {
  font-size: 12px;
  line-height: 1.17;
  color: var(--modal-color);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}
.modal-input-div {
  position: relative;
}
.name-modal-input {
  width: 100%;
  height: 40px;
  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);
}
.name-modal-input:focus {
  border-color: var(--brand-color);
}
.modal-subscribe-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.name-modal-input:focus + .modal-subscribe-icon {
  fill: var(--brand-color);
}

.text-input-box {
  margin-bottom: 16px;
}
.textarea-box {
  width: 100%;
  height: 120px;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  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);
}
.textarea-box:focus {
  border-color: var(--brand-color);
}
.checkbox-div {
  margin-bottom: 24px;
}
.label-checkbox {
  display: block;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--modal-color);
  margin-left: 24px;
}
#user-privacy:checked + .label-checkbox .privacy-word {
  background-color: var(--focus-color);
  border: none;
  fill: var(--word-color);
}

.privacy-word {
  position: absolute;
  left: 24px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
  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);
}
.terms-svg {
  display: inline-flex;
  position: relative;
  width: 16px;
  height: 16px;
}
.privacy.link {
  color: var(--brand-color);
  text-decoration-line: underline;
}
.send-button {
  display: block;
  margin-left: 119px;
  margin-right: 120px;
  min-width: 169px;
  padding: 16px 32px;
  gap: 10px;
  height: 56px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--basic-color);
  cursor: pointer;
  background-color: var(--brand-color);
  border: none;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Portfolio filters*/
.filters {
  padding-top: 96px;
  padding-bottom: 120px;
}
.list.filters-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 72px;
}
.filters-buttons:focus,
.filters-buttons:hover {
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.12),
    0px 2px 1px 0px rgba(0, 0, 0, 0.08), 0px 3px 1px 0px rgba(0, 0, 0, 0.1);
}
.button-filter {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--brand-color);
  background-color: var(--word-color);
  cursor: pointer;
  padding: 12px 24px;
  border: 1px solid var(--list-color);
  border-radius: 4px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.button-filter:hover,
.button-filter:focus {
  background-color: var(--focus-color);
  color: var(--basic-color);
  border: 1px solid transparent;
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
    0px 2px 2px rgba(0, 0, 0, 0.12);
}
/* Portfolio app-list*/
.list.apps-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}
.app-item {
  width: 360px;
}
.app-item:focus,
.app-item:hover {
  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);
}
.app-link.link {
  display: block;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.app-link.link:hover,
.app-link.link:focus {
  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);
  transform: translateY(0%);
}
.image-portfolio {
  position: relative;
  overflow: hidden;
}
.app-description {
  position: absolute;
  top: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--word-color);
  padding: 40px 32px;
  background-color: var(--brand-color);
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.app-link.link:hover .app-description,
.app-link.link:focus .app-description {
  transform: translateY(0%);
}
.apps-name {
  padding: 32px 16px;
  border: 1px solid var(--list-color);
  border-top: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
/* sidebar*/
.js-menu-container {
  width: 100%;
  position: fixed;
  display: none;
  top: 0px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--WHITE, #fff);
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 2px 1px 0px rgba(46, 47, 66, 0.08);
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}
.js-menu-container.is-open {
  transform: translateX(0);
  display: flex;
}
.js-menu-container .menu-toggle {
  position: absolute;
  display: none;
}
.header-list-sidebar {
  margin-top: 80px;
  margin-left: 40px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.menu-sidebar.plus {
  color: #404bbf;
}
.menu-sidebar {
  color: var(--NAVY-BLUE, #2e2f42);
  font-family: Roboto;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.72px;
  text-transform: capitalize;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 40px;
}
.address-list-sidebar {
  margin-top: 284px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex-shrink: 0;
  margin-left: 40px;
}
.contacts-sidebar-phone {
  color: var(--IRIS, #4d5ae5);
  font-family: Roboto;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.72px;
  text-transform: capitalize;
}
.contacts-sidebar {
  color: var(--SLATE, #434455);
  font-family: Roboto;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.4px;
}
.social-media-icons-sidebar {
  display: none;
  align-items: flex-start;
  gap: 56px;
  margin-top: 48px;
  margin-left: 40px;
  margin-bottom: 40px;
}

.js-open-menu {
  top: 24px;
  right: 24px;
  width: 32px;
  height: 24px;
  display: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  border: none;
}
