:root {
  --accent-color: #2e2f42;
  --primary-font: 'Roboto', sans-serif;
  --primary-font-size: 16px;
  --transition-duration-function: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  color: var(--accent-color);
  background-color: #ffffff;
  font-family: var(--primary-font);
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-size: var(primary-font-size);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-style: normal;
}

a {
  text-decoration: none;
}

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

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

.container {
  width: 100%;
  max-width: 1158px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.visually-hidden {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
}

/* ====================COMPONENTS============= */

.btn {
  border: none;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--primary-font-size);
  text-decoration: none;

  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
}

/* ====================/COMPONENTS============= */
/*============================HEADER===========*/

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.33;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.logo-web {
  color: #4d5ae5;
}
.page-header {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7e9fc;
}

.page-header-container {
  display: flex;
}

.list-nav {
  display: none;
}

.list-address {
  display: none;
}
.menu-open-mob {
  width: 29px;
  height: 18px;
  background: transparent;
  border: none;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
}
.menu-open-mob-icon {
  stroke: #2e2f42;
}

/*============================/HEADER===========*/
/*============================MAIN SECTION===========*/

.main-section {
  background-color: rgba(46, 47, 66, 0.7);
  text-align: center;
  padding-top: 112px;
  padding-bottom: 112px;
  max-width: 1440px;
  margin: 0 auto;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url('../images/peopleoffice-mobile1x.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  .main-section {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url('../images/peopleoffice-mobile2x.jpg');
  }
}

.main-title {
  font-size: 36px;
  line-height: 1.11;
  color: #ffffff;
  margin: auto;
  margin-bottom: 72px;
  max-width: 320px;
}

.btn-order {
  color: #ffffff;
  background: #4d5ae5;
  padding: 16px 32px;
  margin: auto;
  transition: var(--transition-duration-function);
}

.btn-order:hover,
.btn-order:focus {
  background: #404bbf;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

/*============================/MAIN SECTION===========*/
/*============================BTN-PORTFOLIO===========*/
.btn-menu {
  text-align: center;
  color: #4d5ae5;
  background: #f4f4fd;
  border: 1px solid #e7e9fc;

  display: inline-block;
  border-radius: 4px;
  padding: 11px 24px;
  min-width: 64px;
  transition: var(--transition-duration-function);
}

.btn-menu:hover,
.btn-menu:focus {
  background: #404bbf;
  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);
  color: #ffffff;
}

.list-btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 24px;
  row-gap: 16px;
}

.navigation-section-btn {
  padding-top: 96px;
  padding-bottom: 72px;
}
/*============================BTN-PORTFOLIO===========*/
/*============================ADVANTAGE===========*/

.advantage-subtitle {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  color: var(--accent-color);
}

.advantage-text {
  color: #434455;
  margin-bottom: 8px;
}
.advantage-list > .advantage-text {
  margin-bottom: 0;
}
.advantage-container > .advantage-list {
  max-width: 396px;
}

.advantage-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.advantage-container {
  display: block;
  align-items: stretch;
  gap: 24px;
}

.advantage-list:not(:last-child) {
  margin-bottom: 72px;
}

.advantage-icon {
  display: flex;
  align-items: center;
}

.section-icon-advantage {
  display: none;
}
/*============================/ADVANTAGE===========*/
/*============================ABOUT US===========*/
.main-suptitle {
  font-size: 36px;
  line-height: 1.11;
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 72px;
}

.suptitle-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.section-about {
  padding-bottom: 120px;
}
.suptitle-container > .advantage-list {
  margin-bottom: 0;
}
/*============================/ABOUT US===========*/
/*==========================GALLERY=================*/
@media screen and (max-width: 767px) {
  .gallery-list:not(:last-child) {
    margin-bottom: 48px;
  }
}
.gallery-section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.card-content > .gallery-subtitle {
  margin-top: 0;
}
.card-content > .gallery-text {
  margin-bottom: 0;
}
.gallery-container {
  display: block;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}
.gallery-list {
  max-width: 396px;
  height: 400px;
}

.gallery-subtitle {
  font-size: 20px;
  text-align: start;
}

.card-content {
  padding: 32px 16px 32px 16px;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
  border-bottom: 1px solid #e7e9fc;
}
.gallery-card-link {
  display: block;
  transition: var(--transition-duration-function);
}

.gallery-card-link:is(:hover, :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);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  transform: translate(0, 100%);
  transition: transform 250ms linear;
  background: #4d5ae5;

  font-weight: 400;
  color: #f4f4fd;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 40px;
}

.gallery-overlay {
  position: relative;
  overflow: hidden;
}
.gallery-card-link:hover .overlay,
.gallery-card-link:focus .overlay {
  transform: translate(0, 0);
}
/*==========================/GALLERY=================*/
/*============================OUR COMMAND===========*/
.command-section {
  background-color: #f4f4fd;
  padding-top: 96px;
  padding-bottom: 128px;
}

.our-command {
  display: block;
  align-items: center;
  text-align: center;
  gap: 72px 24px;
}

.command-description {
  width: 260px;
  height: 428px;
  margin: auto;
  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);
  border-radius: 0px 0px 4px 4px;
}

.command-text {
  padding: 32px 16px;
  text-align: center;
}

.command-soc-link:is(:hover, :focus) {
  background-color: #404bbf;
}

.command-soc-list {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.command-soc-item {
  width: 40px;
  height: 40px;
}
.command-text > .advantage-subtitle {
  font-size: 20px;
  line-height: 1.2;
}

.command-soc-link {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  background-color: #4d5ae5;
  align-items: center;

  transition: var(--transition-duration-function);
}

.command-soc-icon {
  fill: #f9f6f6;
}

/*============================/OUR COMMAND===========*/
/*============================CUSTOMERS===========*/

.section-customers {
  padding-top: 96px;
  padding-bottom: 96px;
}
.customers-title {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  margin-bottom: 72px;
}

.customers-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 72px;
}

.customers-item {
  width: calc((100% - 30px) / 2);
  height: 88px;
}

.customers-link {
  width: 100%;
  height: 100%;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404bbf;

  transition: var(--transition-duration-function);
}

.customers-link:is(:hover, :focus) {
  border-color: #404bbf;
}

.customers-link:is(:hover, :focus) > .customers-icon {
  fill: currentColor;
}

.customers-link > .customers-icon {
  transition: var(--transition-duration-function);
}

.customers-icon {
  fill: #afb1b8;
}

/*============================/CUSTOMERS===========*/
/*============================FOOTER===========*/
.logo-web-light {
  color: #f4f4fd;
}

.logo-mob-footer > .logo {
  align-items: center;
  margin-bottom: 16px;
}

.footer-content {
  color: #e7e9fc;
  max-width: 268px;
  height: 72px;
  margin: auto;
}

footer {
  background-color: var(--accent-color);
}

.footer-container {
  padding-top: 96px;
  padding-bottom: 96px;
  align-items: center;
}

.footer-suptitle {
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 72px;
  text-align: center;
}

.footer-soc-container {
  display: block;
  justify-content: center;
  align-items: center;
}

.footer-soc-section {
  margin-top: 0;
}

.soc-icon-bg > .command-soc-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.soc-icon-bg > .command-soc-link:is(:hover, :focus) {
  background-color: #31d0aa;
}

/*============================INPUT===========*/
.footer-form-btn {
  display: flex;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.04em;
  margin: auto;
  align-items: center;
  height: 40px;
  color: #ffffff;
  background: #4d5ae5;
  border-radius: 4px;
  border: none;
  padding: 8px 24px;
  transition: var(--transition-duration-function);
}

.footer-form-btn:hover,
.footer-form-btn:focus {
  background: #404bbf;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.footer-form-input {
  width: 100%;
  height: 40px;
  background: #2e2f42;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.04em;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 8px 0px 8px 16px;
  margin-bottom: 16px;
  transition: var(--transition-duration-function);
}

.footer-close-btn-icon {
  margin-left: 16px;
}

.footer-form {
  display: block;
}
/*============================/FOOTER===========*/
/*============================MODAL WINDOW===========*/

.backdrop {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 47, 66, 0.4);
  transition: opacity 300ms linear, visibility 300ms linear;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 392px;
  min-height: 576px;
  padding: 24px;
  background-color: #fcfcfc;
  transition: transform 300ms linear;
}

.backdrop.is-hidden .modal {
  transform: translate(-50%, -50%) scale(0);
}

.modal-close-btn {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-duration-function);
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  background-color: #404bbf;
}

.modal-close-btn-icon {
  transition: var(--transition-duration-function);
}

.modal-close-btn-icon:hover,
.modal-close-btn-icon:focus {
  fill: #ffffff;
}

.modal-close-btn:hover .modal-close-btn-icon,
.modal-close-btn:focus .modal-close-btn-icon {
  fill: #ffffff;
}
/*============================/MODAL WINDOW===========*/
/*============================MODAL INPUT===========*/
.input-desc {
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #2e2f42;
  margin-top: 24px;
  margin-bottom: 16px;
}

.modal-form {
  display: flex;
  flex-direction: column;
}

.modal-form-field {
  margin-bottom: 8px;
}

.modal-form-input-desc {
  display: block;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #8e8f99;
  margin-bottom: 4px;
}

.modal-form-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  padding-left: 38px;
  transition: var(--transition-duration-function);
}

.modal-form-input:focus,
.modal-form-message:focus,
.footer-form-input:focus {
  border-color: rgba(77, 90, 229, 1);
  outline: none;
}

.modal-form-input:focus + .modal-input-icon {
  fill: rgba(77, 90, 229, 1);
}

.modal-form-message {
  width: 100%;
  height: 120px;
  color: black;
  resize: none;
  padding: 8px 16px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  transition: var(--transition-duration-function);
}

.modal-form-message::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.04em;
  color: rgba(117, 117, 117, 0.5);
}

.modal-form-check-desc {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #757575;
  margin-bottom: 24px;
}

.modal-form-check-desc::before {
  display: block;
  width: 16px;
  height: 16px;
  border: 1.25px solid #404bbf;
  border-radius: 2px;
  content: '';
  cursor: pointer;
  margin-right: 10px;
}

.modal-form-submit {
  cursor: pointer;
  transition: var(--transition-duration-function);
}

.modal-form-input-wrapper {
  position: relative;
}

.modal-input-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  transform: translateY(-50%);
  display: block;
  transition: var(--transition-duration-function);
}

.modal-form-check:checked + .modal-form-check-desc::before {
  background-color: #404bbf;
  background-image: url(../images/vector.svg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.modal-form-submit {
  color: #ffffff;
  background: #4d5ae5;
  padding: 16px 32px;
  border: none;
  margin: auto;
  width: 169px;
  border-radius: 4px;
  transition: var(--transition-duration-function);
}

.modal-form-submit:hover,
.modal-form-submit:focus {
  background: #404bbf;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.policy-privacy {
  text-decoration: underline;
  color: rgba(77, 90, 229, 1);
}

/*============================/MODAL INPUT===========*/
/*============================MODAL-MOB-PAGE===========*/
.mob-menu-open-page {
  position: fixed;
  top: 0;
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  padding-top: 24px;
  padding-bottom: 40px;
}

.mob-menu-open-page > .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.menu-close-mob {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-duration-function);
  margin-bottom: 32px;
}

.menu-close-mob:hover,
.menu-close-mob:focus {
  background-color: #404bbf;
}

.mob-list-nav {
  margin-bottom: 20px;
}
.mob-menu-nav:not(:last-child) {
  margin-bottom: 40px;
}
.mob-link-active {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  text-transform: capitalize;
  color: #2e2f42;
}

.mob-list-address {
  margin-bottom: 48px;
}

.mob-link-contact-tel {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 40px;
}

.mob-contact-tel {
  margin-bottom: 40px;
  display: block;
}

.contact-mob-section > .command-soc-list {
  justify-content: flex-start;
}

.mob-link-contact-email {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #434455;
}

.link-mob:hover,
.link-mob:focus {
  color: #404bbf;
}
.link-mob {
  transition: var(--transition-duration-function);
}
