html {
  min-height: 100%;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #333;
  background: #f6f7f9;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.km-header {
  background: #e63838;
  color: #fff;
}

.km-header__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  box-sizing: border-box;
}

.km-logoMark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.km-logoText {
  font-weight: 800;
  font-size: 16px;
}

.km-main {
  width: min(100%, 1040px);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 30px 18px 64px;
}

.km-intro {
  max-width: 760px;
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .05);
  padding: 22px 24px;
  box-sizing: border-box;
}

.km-intro__eyebrow {
  margin: 0 0 4px;
  color: #d45a6a;
  font-size: 13px;
  font-weight: 900;
}

.km-intro h1 {
  margin: 0;
  color: #222;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

.km-intro__lead {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 600;
}

.km-flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #f1d3d8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff8f9;
}

.km-flow__item {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 14px;
  box-sizing: border-box;
}

.km-flow__item + .km-flow__item {
  border-left: 1px solid #f1d3d8;
}

.km-flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 1px solid #f1d3d8;
  border-right: 1px solid #f1d3d8;
  background: #fff8f9;
  transform: translateY(-50%) rotate(45deg);
}

.km-flow__item span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d45a6a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.km-flow__item strong {
  color: #333;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 900;
}

.km-card {
  max-width: 540px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
  background: #fff;
  overflow: hidden;
}

.km-card--wide {
  max-width: 760px;
}

.km-card__head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.km-card__head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.km-card__head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.km-card__body {
  padding: 18px;
}

.km-form {
  display: grid;
  gap: 14px;
}

.km-field {
  display: grid;
  gap: 7px;
}

.km-field span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.km-field b {
  color: #e63838;
  font-size: 11px;
  font-weight: 800;
}

.km-field input {
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.km-field input::placeholder {
  color: #a0a7b3;
}

.km-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}

.km-check input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #d45a6a;
}

.km-check a {
  color: #c94d5d;
  font-weight: 900;
}

.km-recaptcha {
  min-height: 78px;
}

.km-sectionHead {
  display: grid;
  gap: 5px;
}

.km-sectionHead h2 {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 900;
}

.km-sectionHead p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 600;
}

.km-trainers {
  display: grid;
  gap: 12px;
}

.km-trainerList {
  display: grid;
  gap: 10px;
}

.km-trainerRow {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfc;
}

.km-trainerRow__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.km-trainerRow__head strong {
  color: #333;
  font-size: 13px;
  font-weight: 900;
}

.km-trainerGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 12px;
}

.km-addButton,
.km-removeButton {
  border: 1px solid #e6b9c0;
  border-radius: 999px;
  background: #fff;
  color: #c94d5d;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.km-addButton {
  min-height: 36px;
  justify-self: start;
  padding: 8px 14px;
}

.km-addButton:disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: default;
}

.km-removeButton {
  min-height: 28px;
  padding: 5px 10px;
}

.km-field input:focus {
  outline: 2px solid rgba(230, 56, 56, .2);
  border-color: rgba(230, 56, 56, .5);
}

.km-field input[readonly] {
  background: #f6f7f9;
  color: #6b7280;
  cursor: not-allowed;
}

.km-pricing {
  display: grid;
  gap: 12px;
}

.km-pricing__card {
  border: 1px solid #f1d3d8;
  border-radius: 8px;
  background: #fff8f9;
  overflow: hidden;
}

.km-pricing__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid #f1d3d8;
}

.km-pricing__plan {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 900;
}

.km-pricing__caption {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}

.km-pricing__price {
  text-align: right;
  white-space: nowrap;
}

.km-pricing__price strong {
  color: #d83c3c;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.km-pricing__price strong small {
  font-size: .58em;
  line-height: 1;
}

.km-pricing__price span {
  display: block;
  margin-top: 4px;
  color: #d83c3c;
  font-size: 12px;
  font-weight: 900;
}

.km-pricing__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1d3d8;
}

.km-pricing__features span {
  border: 1px solid #f1d3d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.km-pricing__campaign {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1d3d8;
  background: #fff;
}

.km-pricing__campaign span {
  justify-self: start;
  border-radius: 999px;
  background: #ffe16a;
  color: #7c4d00;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
}

.km-pricing__campaign strong {
  color: #333;
  font-size: 13px;
  font-weight: 900;
}

.km-pricing__campaign s {
  color: #6b7280;
  text-decoration-color: #d83c3c;
  text-decoration-thickness: 2px;
}

.km-billingTimeline {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #f1d3d8;
  background: #fff8f9;
}

.km-billingTimeline__chart {
  position: relative;
  display: grid;
  min-height: 78px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #eeb8c0;
  background: #fff;
}

.km-billingTimeline__month {
  display: flex;
  align-items: flex-start;
  min-height: 78px;
  padding: 12px 14px;
}

.km-billingTimeline__month + .km-billingTimeline__month {
  border-left: 1px solid #eeb8c0;
}

.km-billingTimeline__month span {
  color: #333;
  font-size: 12px;
  font-weight: 900;
}

.km-billingTimeline__track {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 46px;
  height: 18px;
}

.km-billingTimeline__bar {
  position: absolute;
  top: 2px;
  height: 12px;
  border-radius: 999px;
  background: #d45a6a;
  box-shadow: inset 0 0 0 1px rgba(160, 42, 57, .18);
}

.km-billingTimeline__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #d45a6a;
  box-shadow: inset -1px 1px 0 rgba(160, 42, 57, .18);
  transform: translateY(-50%) rotate(45deg);
}

.km-billingTimeline__bar--free {
  left: 14%;
  width: 36%;
  border: 1px solid #d45a6a;
  background: #fff;
}

.km-billingTimeline__bar--free::after {
  border-top: 1px solid #d45a6a;
  border-right: 1px solid #d45a6a;
  background: #fff;
}

.km-billingTimeline__bar--prorate {
  left: 52%;
  width: 14.5%;
  background: #e98596;
}

.km-billingTimeline__bar--prorate::after {
  background: #e98596;
}

.km-billingTimeline__bar--monthly {
  left: 68.5%;
  width: 29.5%;
}

.km-billingTimeline__labels {
  position: relative;
  height: 66px;
  margin: 0 18px;
}

.km-billingTimeline__segment {
  position: absolute;
  top: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
}

.km-billingTimeline__segment--free {
  left: 10%;
  width: 42%;
}

.km-billingTimeline__segment--prorate {
  left: 48%;
  width: 24%;
}

.km-billingTimeline__segment--monthly {
  left: 72%;
  width: 28%;
}

.km-billingTimeline__segment strong {
  color: #333;
  font-size: 12px;
  font-weight: 900;
}

.km-billingTimeline__segment small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.km-pricing__trialNote {
  margin: 0;
  padding: 10px 14px 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  background: #fff;
}

.km-pricing__option {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #333;
  font-size: 12px;
}

.km-pricing__option strong,
.km-pricing__option span {
  font-weight: 900;
}

.km-pricing__option small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 700;
}

.km-button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #333;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.km-button--primary {
  border-color: #d45a6a;
  background: #d45a6a;
  color: #fff;
}

.km-button:hover {
  opacity: .86;
}

.km-alert {
  border: 1px solid rgba(230, 56, 56, .25);
  border-radius: 12px;
  background: rgba(230, 56, 56, .05);
  color: #c0281e;
  padding: 11px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.km-message {
  margin: 0;
  color: #333;
  font-size: 13px;
}

@media (max-width: 560px) {
  .km-main {
    padding: 18px 12px 48px;
  }

  .km-intro {
    padding: 16px 14px;
    margin-bottom: 14px;
  }

  .km-intro h1 {
    font-size: 23px;
  }

  .km-intro__lead {
    font-size: 13px;
    line-height: 1.75;
  }

  .km-flow {
    grid-template-columns: 1fr;
  }

  .km-flow__item {
    min-height: auto;
    grid-template-columns: 22px 1fr;
    align-items: center;
  }

  .km-flow__item + .km-flow__item {
    border-left: 0;
    border-top: 1px solid #f1d3d8;
  }

  .km-flow__item:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -8px;
    transform: translateX(50%) rotate(135deg);
  }

  .km-card__head,
  .km-card__body {
    padding: 14px;
  }

  .km-trainerGrid {
    grid-template-columns: 1fr;
  }

  .km-pricing__top,
  .km-pricing__features {
    grid-template-columns: 1fr;
  }

  .km-pricing__price {
    text-align: left;
  }

  .km-billingTimeline__chart {
    display: none;
  }

  .km-billingTimeline__labels {
    position: relative;
    display: grid;
    height: auto;
    margin: 0;
    padding-left: 18px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .km-billingTimeline__labels::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 22px;
    left: 8px;
    width: 2px;
    border-radius: 999px;
    background: #f1c9cf;
  }

  .km-billingTimeline__segment {
    position: relative;
    left: auto;
    width: auto;
    justify-items: start;
    text-align: left;
    padding-left: 18px;
  }

  .km-billingTimeline__segment::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -15px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d45a6a;
    box-shadow: 0 0 0 4px #fff8f9;
  }

  .km-billingTimeline__segment small {
    padding-left: 12px;
  }

  .km-pricing__option {
    display: grid;
  }
}
