body {
  font-family: 'Manrope', sans-serif;
  min-width: 320px;
  background: #F6F7FF;
  color: #2A2A2A;
}

.hidden {
  display: none;
}

.invoice-container {
  margin: 150px auto;
  max-width: 1280px;
  display: flex;
  min-height: calc(100vh - 300px);
}

.invoice-aside, .invoice-content {
  padding: 80px 60px;
}

.invoice-aside {
  width: 380px;
  position: relative;
  background: url("../images/invoice-img-aside.png") no-repeat 0 0;
}

.invoice-aside::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3367B1;
  opacity: 0.85;
}

.invoice-aside__title {
  display: block;
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
}

.invoice-content {
  flex: 1;
  background: #fff;
}

/* Tabs */
ul.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -8px 40px;
  padding: 0;
  list-style: none;
}

.tabs li {
  flex: 1;
  margin: 0 8px;
}

.tabs li a {
  text-decoration: none;
  border: 1px solid rgba(104, 108, 120, 0.2);
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease-in-out;
}

.tabs li a img {
  filter: grayscale(1);
}

.tabs.tabs-lg {
  margin-bottom: 24px;
}

.tabs.tabs-lg li a {
  height: 125px;
}

.tabs.tabs-lg li a img {
  filter: unset;
}

.tabs li a .tabs-text {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-top: 8px;
  color: #2A2A2A;
  transition: all .2s ease-in-out;
}

.tabs li a.active {
  background: rgba(205, 221, 244, 0.4);
  border: 1px solid rgba(51, 103, 177, 0.8);
}

.tabs li a.active img {
  filter: unset;
}

.tabs li a.active .tabs-text {
  color: #034EA2;
}

.tabs__content {
  display: none; /* по умолчанию прячем все блоки */
}

.tabs__content.active {
  display: block; /* по умолчанию показываем нужный блок */
}

.label-text {
  display: block;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 16px;
}

.invoice-row {
  display: flex;
  margin: 0 -8px 24px;
}

.invoice-row.elements-to-end {
  justify-content: flex-end;
}

.invoice-col {
  flex: 1;
  margin: 0 8px;
}

.invoice-col.invoice-col--disabled {
  position: relative;
}

.invoice-col.invoice-col--disabled:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF;
  opacity: 0.8;
  z-index: 1;
}

.invoice-col.invoice-col--contacts .input-contacts {
  display: flex;
}

.invoice-col.invoice-col--contacts .label-text {
  min-height: 40px;
}

.invoice-col.invoice-col--contacts .input-contacts input {
  flex: 1;
  border-right: none;
}

.invoice-col.invoice-col--contacts .input-contacts .button.button-blue-invert {
  background: rgba(3, 78, 162, 0.15);
}

.invoice-col.invoice-col--contacts .input-contacts .button {
  min-width: unset;
  width: 135px;
  justify-content: center;
}

.invoice-col.w180px {
  flex: 0 0 180px;
}

.tooltip {
  display: inline-block;
  position: relative;
  margin-left: 5px;
  transform: translateY(-1px);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

.tooltip-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #3367B1;
  border-radius: 16px;
  color: #fff;
  width: 200px;
  padding: 12px 18px;
  font-size: 12px;
  line-height: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease-in-out;
}

.tooltip-content:before {
  content: '';
  display: block;
  width: 12px;
  height: 5px;
  background: url("../images/triangle.svg") no-repeat 50% 50%;
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.invoice-input {
  position: relative;
}

.invoice-input.w250px {
  width: 250px;
}

.invoice-input input {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(104, 108, 120, 0.2);
  outline: none;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 20px;
  transition: all .2s ease-in-out;
}

.invoice-input input:focus {
  border: 1px solid rgba(51, 103, 177, 0.8);
}

.invoice-input--error input:focus {
  border: 1px solid rgba(255, 62, 50, 0.8);
}

.invoice-input--error .error-message {
  display: block;
}

.invoice-input--error input {
  background: rgba(255, 62, 50, 0.1);
  border: 1px solid rgba(255, 62, 50, 0.8);
}

.invoice-input--green input {
  background: rgba(10, 172, 134, 0.1);
  border: 1px solid rgba(10, 172, 134, 0.8);
}
.invoice-input--green input:-webkit-autofill,
.invoice-input--green input:-webkit-autofill:hover,
.invoice-input--green input:-webkit-autofill:focus,
.invoice-input--green input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(10, 172, 134, 0.1) inset !important;

}
.invoice-input-icon {
  position: absolute;
  bottom: 13px;
  right: 13px;
}

.error-message {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  color: #FF6157;
  font-size: 10px;
  line-height: 10px;
}

.button {
  min-width: 180px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: all .2s ease-in-out;
}

.button svg,
.button img {
  display: inline-block;
  margin-right: 5px;
}

.button svg path {
  transition: all .2s ease-in-out;
}

.button.button-blue-invert {
  border: 1px solid rgba(3, 78, 162, 0.15);
  color: #034EA2;
}

.button.button-blue-invert:hover {
  background: rgba(3, 78, 162, 0.15);
}

.button.button-blue {
  background: #3367B1;
  color: #fff;
}

.button.button-blue:hover {
  background: #034EA2;
}

.button.button-red {
  border: 1px solid rgba(255, 97, 87, 0.15);
  color: #FF6157;
}

.button.button-red:hover {
  background: rgba(255, 97, 87, 0.15);
}

.button.button-gray {
  border: 1px solid rgba(104, 108, 120, 0.15);
  color: #686C78;
}

.button.button-gray:hover {
  background: #3367B1;
  color: #fff
}

.button.button-gray:hover svg path {
  fill: #fff;
}

.video-modal {
  position: fixed;
  top: 90px;
  left: 250px;
  width: 400px;
  background: #CDDDF4;
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 20;
  display: flex;
}

.video-modal__player {
  width: 140px;
  margin-right: 20px;
}

.video-modal__player img {
  max-width: 100%;
}

.video-modal .close-modal {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.video-modal__right {
  flex: 1;
}

.video-modal__right .modal-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 13px;
  color: #2A2A2A;
}

.video-modal__right .button {
  min-width: unset;
  width: 100%;
  justify-content: center;
}

.modal-hide {
  font-size: 12px;
  color: #3367B1;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
}

.modal-hide:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .invoice-container {
    display: block;
    margin: 50px 0;
  }

  .invoice-aside {
    width: 100%;
  }

  .invoice-row {
    display: block;
    margin: 0 -8px;
  }

  .invoice-row.invoice-row-flex-mobile {
    display: flex;
  }

  .invoice-row.invoice-row-flex-mobile .w180px {
    flex: 1;
  }

  .invoice-row.invoice-row--purpose {
    display: flex;
  }

  .invoice-row.invoice-row--purpose .invoice-col.w180px {
    flex: 0 0 95px;
  }

  .invoice-col {
    margin: 0 8px 16px;
  }

  .label-text {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 5px;
  }

  .invoice-input.w250px {
    width: 100%;
  }

  .invoice-aside,
  .invoice-content {
    padding: 0 20px;
    background: #fff;
  }

  .invoice-content {
    padding: 20px;
  }

  .invoice-aside__title {
    color: #2A2A2A;
    padding: 32px 0;
    font-size: 24px;
  }

  .invoice-aside::after {
    display: none;
  }

  .tabs li a {
    height: 40px;
  }

  .tabs li a img {
    max-height: 16px;
    max-width: 60px;
  }

  .tabs.tabs-lg li a {
    height: 100px;
  }

  .tabs.tabs-lg li a img {
    max-height: 40px;
    max-width: 40px;
  }

  .button {
    font-size: 12px;
    line-height: 12px;
    min-width: unset;
    width: 100%;
    justify-content: center;
  }

  .invoice-col.invoice-col--contacts .input-contacts .button {
    width: 100px;
  }

  .video-modal {
    width: 100%;
    bottom: 0;
    top: auto;
    left: 0;
    padding: 15px 20px;
  }

  .video-modal__player {
    width: 100px;
    margin-right: 10px;
  }

  .modal-hide {
    display: none;
  }

  .video-modal__right .modal-title {
    font-size: 12px;
    margin-bottom: 10px;
  }
}