.mhlc,
.mhlc * {
  box-sizing: border-box;
}

.mhlc {
  width: 100%;
  padding: 88px 20px 96px;
  background: #1f1f1f;
  color: #ffffff;
  font-family: "Golos Text", Arial, sans-serif;
}

.mhlc__container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.mhlc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.mhlc__intro {
  min-width: 0;
}

.mhlc__title {
  margin: 0;
  color: #ffffff;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 54px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.mhlc__subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.mhlc__partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(118, 188, 33, .72);
  border-radius: 999px;
  color: #ffffff;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mhlc__partner-link:hover {
  border-color: #76bc21;
  background: rgba(118, 188, 33, .12);
  color: #ffffff;
  transform: translateY(-2px);
}

.mhlc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 22px;
  align-items: stretch;
}

.mhlc__panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: #303030;
  padding: 28px;
}

.mhlc__panel-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}

.mhlc__partner-card {
  display: block;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(118, 188, 33, .7);
  border-radius: 14px;
  background: rgba(118, 188, 33, .1);
  color: #ffffff;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 800;
  text-decoration: none;
}

.mhlc__partner-card:hover {
  color: #ffffff;
  border-color: #76bc21;
  background: rgba(118, 188, 33, .16);
}

.mhlc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mhlc__field {
  min-width: 0;
}

.mhlc__field--full {
  grid-column: 1 / -1;
}

.mhlc__field--quantity {
  grid-column: 1 / -1;
  max-width: 360px;
}

.mhlc__label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .72);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

body .mhlc .select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .mhlc .select__body {
  display: none !important;
}

body .mhlc .mhlc__select,
body .mhlc .mhlc__input,
body .mhlc .mhlc__textarea,
body .mhlc .mhlc__quantity-input {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background-color: #ffffff !important;
  color: #1e1e1e !important;
  -webkit-text-fill-color: #1e1e1e !important;
  box-shadow: none;
  outline: none;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

body .mhlc .mhlc__select[hidden] {
  display: block !important;
}

body .mhlc .mhlc__select,
body .mhlc .mhlc__input,
body .mhlc .mhlc__quantity-input {
  padding: 0 16px;
}

body .mhlc .mhlc__select {
  appearance: auto;
}

body .mhlc .mhlc__select option {
  background: #ffffff !important;
  color: #1e1e1e !important;
}

body .mhlc .mhlc__textarea {
  min-height: 120px;
  padding: 18px 16px;
  resize: vertical;
}

body .mhlc .mhlc__select:focus,
body .mhlc .mhlc__input:focus,
body .mhlc .mhlc__textarea:focus,
body .mhlc .mhlc__quantity-input:focus {
  border-color: #76bc21;
  box-shadow: 0 0 0 3px rgba(118, 188, 33, .2);
}

.mhlc__grades {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mhlc__grade {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #242424;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.mhlc__grade input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #76bc21;
}

.mhlc__quantity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 54px 52px;
  gap: 8px;
}

.mhlc__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #76bc21;
  color: #111111;
  cursor: pointer;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  transition: background-color .2s ease, transform .2s ease;
}

.mhlc__qty-btn:hover {
  background: #8bdc2a;
  transform: translateY(-1px);
}

body .mhlc .mhlc__quantity-input {
  text-align: center;
}

.mhlc__quantity-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  background: #ffffff;
  color: #1e1e1e;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.mhlc__result {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mhlc__result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #242424;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.mhlc__result-row strong {
  color: #ffffff;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.mhlc__result-row--total {
  min-height: 68px;
  background: #76bc21;
  color: #111111;
}

.mhlc__result-row--total strong {
  color: #111111;
  font-size: 28px;
}

.mhlc__note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.mhlc__panel--form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mhlc__panel--form .mhlc__panel-title {
  margin-bottom: 6px;
}

.mhlc__form-field,
.mhlc__policy,
.mhlc__captcha {
  min-width: 0;
}

.mhlc__success {
  display: none;
  padding: 14px 16px;
  border: 1px solid rgba(118, 188, 33, .48);
  border-radius: 12px;
  background: rgba(118, 188, 33, .14);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.mhlc__success.is-show {
  display: block;
}

.mhlc__error {
  min-height: 0;
  margin-top: 7px;
  color: #ff8d8d;
  font-size: 13px;
  line-height: 1.3;
}

.mhlc__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.mhlc__check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #76bc21;
}

.mhlc__check a {
  color: #76bc21;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mhlc__hidden-content {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mhlc__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: #76bc21;
  color: #111111;
  cursor: pointer;
  font-family: "Unbounded", "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease;
}

.mhlc__submit:hover {
  background: #8bdc2a;
  transform: translateY(-1px);
}

.mhlc.is-loading .mhlc__partner-card::after {
  content: "Данные загружаются...";
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .58);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .mhlc {
    padding: 72px 20px 82px;
  }

  .mhlc__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mhlc__partner-link {
    white-space: normal;
  }

  .mhlc__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mhlc {
    padding: 56px 16px 64px;
  }

  .mhlc__title {
    font-size: 34px;
  }

  .mhlc__subtitle {
    font-size: 15px;
  }

  .mhlc__panel {
    border-radius: 18px;
    padding: 20px;
  }

  .mhlc__panel-title {
    font-size: 24px;
  }

  .mhlc__grid {
    grid-template-columns: 1fr;
  }

  .mhlc__field--quantity {
    max-width: none;
  }

  .mhlc__result-row--total strong {
    font-size: 24px;
  }
}
