:root {
  --primary-font: Roboto, sans-serif;
  --secondary-font: 'Raleway', sans-serif;
  --primary-text-color-thema-dark: #ffffff;
  --primary-text-color-thema-ligt: #2e2f42;
  --primary-text-color: #2e2f42;
  --secondary-text-color: #434455;
  --primary-white-color: #ffffff;
  --accent-color: #4d5ae5;
  --ocean-color: #404bbf;
  --licht-slate-color: #8e8f99;
  --iric-color: #4d5ae5;
  --green-color: #31d0aa;
  --cloud-color: #f4f4fd;
  --modal-color: #fcfcfc;
  --modal-text: #8e8f99;
  --bg-gradient: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7));
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  margin-bottom: 0;
}
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}
address {
  font-style: normal;
}
img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
button {
  cursor: pointer;
}
.list {
  list-style: none;
}
.link {
  text-decoration: none;
}
body {
  color: var(--primary-text-color);
  background-color: var(--primary-white-color);
  font-family: var(--primary-font);
  letter-spacing: 0.02em;
}
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-portfolio {
  padding-top: 96px;
  padding-bottom: 96px;
}

.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}
/* =======Heder======== */

.page-header {
  border-bottom: 1px solid #e7e9fc;
}

.menu-link.active {
  position: relative;
  color: var(--ocean-color);
}
.active::after {
  color: var(--ocean-color);
  display: block;
  content: '';
  width: 100%;
  height: 4px;
  background-color: var(--ocean-color);
  position: absolute;
  bottom: -1px;
  left: 0;
  border-radius: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
}
.menu {
  display: none;
}
.address {
  display: none;
}
.page-header-container {
  display: flex;

  align-items: center;
}
.page-header-tap {
  display: flex;
  align-items: center;
  /* outline: 1px solid red; */
  justify-content: space-between;
  width: 100%;
  height: 70px;
}
.logo-mob {
  margin: 24px 0;
}
.mobile-menu-open {
  display: block;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
}
.mobile-menu-icon {
  stroke: #2e2f42;
  width: 32px;
  height: 32px;
}
/* ======mobile menu====== */
.mobile-menu {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  top: 0;
  position: fixed;
  z-index: 1;
}
.mobile-menu > .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-close {
  display: block;
  margin-left: auto;
  margin-top: 40px;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border: 1px solid #999999;
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.mobile-menu-item:not(:last-child) {
  margin-bottom: 40px;
}
.mobile-menu-list {
  margin-bottom: 50px;
}

.mobile-menu-contacts-tel {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.11;
  color: #4d5ae5;
}
.mobile-menu-contacts-email {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(67, 68, 85, 1);
}
.mobile-menu-soc {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  gap: 40px;
}
.mobile-menu-content {
  margin-bottom: 40px;
}
.mobile-menu-soc-icon {
  fill: #ffffff;
}
.mobile-menu-soc-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--iric-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: #404bbf;
}
.mobile-menu-soc-link:hover,
.mobile-menu-soc-link:focus {
  background-color: var(--accent-color);
}

/*===============Logo===========*/
.logo {
  margin-right: 76px;
}
.logo-text1 {
  color: #4d5ae5;
  font-family: var(--secondary-font);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.33;
}
.logo-text2 {
  color: var(--primary-text-color);
  font-family: var(--secondary-font);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.33;
}
/*===============/Logo===========*/
/*===========Hero=======*/
.hero {
  width: 100%;
  padding-bottom: 112px;
  padding-top: 112px;
  background-repeat: no-repeat;
  background-image: var(--bg-gradient),
    url('../images/fonts/hero-image-mobile.jpg');
  background-size: cover;
}
@media (min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  .hero {
    background-image: var(--bg-gradient),
      url(../images/fonts/hero-image-mobile@2x.jpg);
  }
}
.hero-btn {
  display: block;
  margin: 0 auto;
  color: var(--primary-white-color);
  background: #4d5ae5;
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 16px 32px 16px 32px;
  border: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-btn:hover,
.hero-btn:focus {
  background-color: #404bbf;
}
.hero-title {
  color: var(--primary-white-color);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.11;
  text-align: center;
  margin: 0 auto 72px;
}

/*===========/Hero=======*/
/*===========Section=======*/

.title {
  color: var(--primary-text-color);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 72px;
}
.list-title {
  color: var(--primary-text-color);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

.card-title {
  color: var(--primary-text-color);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.list-text,
.team-text {
  color: var(--secondary-text-color);
  line-height: 1.5;
  text-align: center;
}
.card-text {
  color: var(--secondary-text-color);
  line-height: 1.5;
}

.content-wapper {
  border: 1px solid #e7e9fc;
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: 16px;
  border-top: none;
}

/*===========/Section=======*/
/*========Button========*/
/*.btn-text{
    
} */

.filter-btn {
  color: var(--accent-color);
  background: var(--cloud-color);
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: none;
  padding: 12px 24px 12px 24px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover,
.filter-btn:focus {
  background-color: #404bbf;
  color: var(--primary-white-color);
}

/* =====UL===== */
.filter-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 72px;
}
/* ======Advance======= */

.advance-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.advance-title {
  text-align: center;
  color: var(--primary-text-color);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
  margin-top: 8px;
}
.advance-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #434455;
}
.advance-content {
  display: none;
}
.services {
  display: none;
}
.advance-item {
  margin-bottom: 72px;
}
/* =====Tem======= */
.team {
  background-color: var(--cloud-color);
}
.team-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.team-text {
  margin-bottom: 8px;
}
.team-item {
  width: 100%;
  background-color: var(--primary-white-color);
  border-radius: 0px 0px 4px 4px;
  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);
}

.team-item:not(:last-child) {
  margin-bottom: 72px;
}

.team-title {
  color: var(--primary-text-color);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 8px;
}

.team-soc {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.team-content-wapper {
  padding-top: 32px;
  padding-bottom: 32px;
}
.team-soc-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--iric-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-soc-link:hover,
.team-soc-link:focus {
  background-color: var(--ocean-color);
}
.team-soc-icon {
  fill: var(--primary-white-color);
}
/* ======Card====== */
.card-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 24px;
  /* flex-basis: calc((100%-40px) / 3); */
}
.card-item {
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card-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);
}
/* .card-item:not(:nth-child(3n)) {
  margin-right: 24px;
}
.card-item:not(:nth-last-child(-n + 3)) {
  margin-bottom: 48px;
} */
.card-link {
  display: block;
}
.card-list-wapper {
  position: relative;
  overflow: hidden;
}
.overlay {
  background-color: var(--iric-color);
  position: absolute;
  overflow: auto;
  transform: translate(0, 100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-left: 32px;
  padding-top: 40px;
  padding-right: 32px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cloud-color);
}
/* .card-item {
  position: relative;
  overflow: hidden;
} */
/* .card-item:hover .overlay,
.card-item:focus .overlay {
  transform: translate(0, 0);
} */
.card-link:hover .overlay,
.card-link:focus .overlay {
  transform: translate(0, 0);
}
/* =======Customers======= */
.customers {
  padding-top: 96px;
  padding-bottom: 96px;
}
.customers-item {
  width: calc((100% - 16px) / 2);
}
.customers-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.customers-link {
  width: 100%;
  height: 88px;
  border: 1px solid var(--licht-slate-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--licht-slate-color);
  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.customers-icon {
  fill: var(--licht-slate-color);
}
.customers-link:hover,
.customers-link:focus {
  border: 1px solid var(--ocean-color);
}
.customers-link:hover .customers-icon,
.customers-link:focus .customers-icon {
  fill: var(--ocean-color);
}
/* =======/Customers======= */
/* ======Footer====== */
.footer-section {
  display: flex;
  flex-wrap: wrap;
}
.footer {
  padding: 96px 0;
  background-color: var(--primary-text-color);
}
.footer-text {
  display: flex;
  justify-content: center;
  text-align: center;
  max-width: 268px;
  line-height: 1.5;
  color: #e7e9fc;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-content {
  justify-content: center;
}
.social {
  text-align: center;
  color: var(--primary-white-color);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  /* margin-top: 8px; */
}
.social-icon {
  fill: var(--cloud-color);
}
.footer-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-text-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social {
  margin-top: 72px;
}
.footer-link:hover,
.footer-link:focus {
  background-color: var(--green-color);
}
.logo-color {
  color: #ffffff;
}
.subscribe {
  text-align: center;
  color: var(--primary-white-color);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-subscribe {
  justify-content: center;
  margin-top: 72px;
}
.footer-input::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
.footer-input {
  width: 264px;
  height: 40px;
  padding-left: 16px;
  color: #757575;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;

  justify-content: center;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(33, 150, 243, 0);
  box-shadow: rgba(0, 0, 0, 0.15);
}
.footer-input:hover,
.footer-input:focus {
  border-color: var(--accent-color);
}
.footer-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-submit-button {
  display: flex;
  margin-top: 16px;
  /* margin-left: 131px;
  margin-right: 132px;
  margin-bottom: 96px; */
  color: var(--primary-text-color-thema-dark);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  width: 165px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background: var(--iric-color);
  border-radius: 4px;
  border-color: var(--iric-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-submit-icon {
  margin-top: 10px;
  margin-left: 16px;
  margin-bottom: 10px;
  /* transform: translateY(-50%); */
}
.footer-submit-button:hover,
.footer-submit-button:focus {
  background-color: #404bbf;
}
/* ======Modal====== */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scale(1) translate(-50%, -50%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: auto;
  background-color: var(--modal-color);
  border-radius: 5px;
  padding: 24px;
  padding-top: 72px;
}

.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background-color: #e7e9fc;
  border: 1px solid #999999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close:hover,
.modal-close:focus {
  background-color: var(--ocean-color);
}
.modal-close:hover .modal-close-icon,
.modal-close:focus .modal-close-icon {
  fill: var(--primary-text-color-thema-dark);
}
/* ========ModalForm======= */
.text-form {
  color: var(--secondary-text-color);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.modal-form {
  display: flex;
  flex-direction: column;
}
.modal-form-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  padding-left: 38px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-form-input-desc {
  display: block;
  color: var(--modal-text);
  line-height: 1.17;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  font-size: 12px;
}
.modal-form-field {
  margin-bottom: 8px;
}
.modal-form-input-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 16px;
  fill: rgba(46, 47, 66, 1);
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-form-input-wrapper {
  position: relative;
  display: block;
}
.modal-form-input:focus {
  outline: none;
  border-color: rgba(77, 90, 229, 1);
}
.modal-form-input:focus + .modal-form-input-icon {
  fill: rgba(77, 90, 229, 1);
}
.modal-form-message {
  resize: none;
  width: 100%;
  height: 120px;
  padding: 8px 16px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.modal-form-message::placeholder {
  font-size: 12px;
  color: rgba(117, 117, 117, 0.5);
}
.modal-form-message:focus {
  outline: none;
  border-color: rgba(77, 90, 229, 1);
}

.modal-form-check-desc-link {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  text-decoration-line: underline;
  color: var(--iric-color);
}
.modal-form-check-desc {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-bottom: 24px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #757575;
}
.modal-form-check-desc::before {
  display: block;
  width: 16px;
  height: 16px;
  border: 1.25px solid rgba(46, 47, 66, 1);
  border-radius: 2px;
  content: '';
  cursor: pointer;
  margin-right: 8px;
}
.modal-form-wrrap {
  margin-bottom: 16px;
}
.modal-form-check:checked + .modal-form-check-desc::before {
  background-color: rgba(64, 75, 191, 1);
  border: none;
  background-image: url(../images/modal/click.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.modal-form-check:focus + .modal-form-check-desc::before {
  border: 1.25px solid rgba(64, 75, 191, 1);
}

.modal-form-submit {
  width: 160px;
  height: 56px;
  display: block;
  margin: 0 auto;
  color: var(--primary-white-color);
  background: #4d5ae5;
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border-color: rgba(77, 90, 229, 1);
  padding: 16px 32px 16px 32px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-form-submit:hover,
.modal-form-submit:focus {
  background-color: #404bbf;
}
