.calculator_tictok--enhanced {
  max-width: 1120px;
  margin: 30px auto 50px;
  padding: 0;
  color: #172033;
  background: transparent;
}

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

.ttmc {
  font-family: inherit;
}

.ttmc__intro {
  padding: 34px 36px 30px;
  color: #fff;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #071b36 0%, #0e77f1 100%);
}

.ttmc__eyebrow {
  margin: 0 0 7px;
  color: #a9d1ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ttmc__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.ttmc__lead {
  max-width: 760px;
  margin: 0;
  color: #e5f1ff;
  font-size: 17px;
  line-height: 1.55;
}

.ttmc__tabs {
  display: flex;
  gap: 5px;
  padding: 15px 20px 0;
  border-right: 1px solid #dfe7f1;
  border-left: 1px solid #dfe7f1;
  background: #f7faff;
}

.ttmc__tab {
  min-width: 120px;
  padding: 11px 20px;
  color: #4d5b70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
}

.ttmc__tab.is-active {
  color: #0e66c9;
  border-color: #dfe7f1;
  border-bottom-color: #fff;
  background: #fff;
}

.ttmc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 50px rgba(31, 59, 91, .10);
}

.ttmc__form {
  padding: 30px;
  background: #fff;
}

.ttmc__section + .ttmc__section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid #e4eaf2;
}

.ttmc__section h3,
.ttmc__drivers h3 {
  margin: 0 0 18px;
  color: #172033;
  font-size: 19px;
  line-height: 1.3;
}

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

.ttmc__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.ttmc__field > span:first-child {
  color: #24334a;
  font-size: 14px;
  font-weight: 700;
}

.ttmc__control {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.ttmc__control:focus-within {
  border-color: #0e77f1;
  box-shadow: 0 0 0 3px rgba(14, 119, 241, .13);
}

.ttmc__control input,
.ttmc__field select {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 13px;
  color: #172033;
  font: inherit;
  font-size: 16px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  background: #fff;
}

.ttmc__control input {
  height: 46px;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.ttmc__field select:focus {
  border-color: #0e77f1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(14, 119, 241, .13);
}

.ttmc__control b {
  padding: 0 13px;
  color: #607087;
  font-size: 14px;
}

.ttmc__field small,
.ttmc__check small,
.ttmc__card small {
  display: block;
  color: #6d7b8e;
  font-size: 12px;
  line-height: 1.4;
}

.ttmc__advanced {
  display: none;
  margin-top: 26px;
}

.ttmc[data-mode="advanced"] .ttmc__advanced {
  display: block;
}

.ttmc__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 26px;
  cursor: pointer;
}

.ttmc__check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0e77f1;
}

.ttmc__check strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ttmc__calculate {
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 20px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: #0e77f1;
  box-shadow: 0 8px 18px rgba(14, 119, 241, .22);
  transition: background .2s, transform .2s;
}

.ttmc__calculate:hover {
  background: #0867d2;
  transform: translateY(-1px);
}

.ttmc__results {
  padding: 30px;
  background: #f4f8fd;
}

.ttmc__result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce5f0;
}

.ttmc__result-head span {
  color: #607087;
  font-size: 13px;
  font-weight: 700;
}

.ttmc__result-head strong {
  display: block;
  margin-top: 7px;
  color: #0b63c5;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.ttmc__estimate {
  padding: 5px 9px;
  color: #167049 !important;
  border-radius: 20px;
  background: #daf5e8;
}

.ttmc__result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ttmc__card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #fff;
}

.ttmc__card > span {
  display: block;
  min-height: 34px;
  color: #56667b;
  font-size: 12px;
  font-weight: 700;
}

.ttmc__card strong {
  display: block;
  margin: 5px 0;
  color: #172033;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ttmc__drivers {
  padding: 20px;
  margin-top: 20px;
  border-radius: 11px;
  background: #e9f3ff;
}

.ttmc__drivers h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.ttmc__drivers ul {
  padding: 0 0 0 18px;
  margin: 0;
  color: #4a5d75;
  font-size: 13px;
  line-height: 1.65;
}

.ttmc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.ttmc__action {
  min-height: 44px;
  padding: 9px 12px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #0e77f1;
  border-radius: 9px;
  background: #0e77f1;
}

.ttmc__action--secondary {
  color: #0e66c9;
  background: #fff;
}

.ttmc__notice {
  margin: 18px 0 0;
  color: #78869a;
  font-size: 11px;
  line-height: 1.55;
}

.ttmc__method {
  margin-top: 20px;
  border: 1px solid #dfe7f1;
  border-radius: 13px;
  background: #fff;
}

.ttmc__method summary {
  padding: 17px 20px;
  color: #24334a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ttmc__method > div {
  padding: 0 20px 17px;
  color: #58697f;
  font-size: 14px;
  line-height: 1.6;
}

.ttmc__method p {
  margin: 7px 0;
}

@media (max-width: 900px) {
  .ttmc__layout {
    grid-template-columns: 1fr;
  }

  .ttmc__results {
    border-top: 1px solid #dfe7f1;
  }
}

@media (max-width: 620px) {
  .calculator_tictok--enhanced {
    margin: 18px -10px 36px;
  }

  .ttmc__intro {
    padding: 26px 20px 24px;
    border-radius: 16px 16px 0 0;
  }

  .ttmc__lead {
    font-size: 15px;
  }

  .ttmc__tabs {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ttmc__tab {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .ttmc__layout {
    border-radius: 0 0 16px 16px;
  }

  .ttmc__form,
  .ttmc__results {
    padding: 22px 18px;
  }

  .ttmc__grid,
  .ttmc__result-grid,
  .ttmc__actions {
    grid-template-columns: 1fr;
  }

  .ttmc__check {
    padding-top: 0;
  }

  .ttmc__card > span {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttmc__calculate {
    transition: none;
  }
}
