.ins-page {
  min-height: 100vh;
  background: #07111f;
  color: #f4f8fc;
}

.ins-hero {
  padding: 48px 0 52px;
  border-bottom:
    1px solid
    rgba(100, 155, 210, 0.2);
}

.ins-hero__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    340px;
  gap: 54px;
  align-items: center;
}

.ins-hero h1 {
  margin: 12px 0 18px;
  font-size:
    clamp(
      48px,
      6vw,
      72px
    );
  line-height: 1;
  letter-spacing: -0.04em;
}

.ins-lead {
  max-width: 740px;
  color: #b9cad8;
  font-size: 17px;
  line-height: 1.65;
}

.ins-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ins-meta span {
  padding: 7px 11px;
  border:
    1px solid
    rgba(98, 161, 220, 0.28);
  border-radius: 999px;
  color: #b9cad8;
  font-size: 12px;
}

.ins-full-card {
  position: relative;
  padding: 26px;
  border:
    1px solid
    rgba(35, 136, 255, 0.62);
  border-radius: 20px;
  background: #0d1928;
}

.ins-full-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #3fe2a0;
  background:
    rgba(63, 226, 160, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.ins-full-label {
  color: #91a8bc;
  font-size: 12px;
}

.ins-full-price {
  display: block;
  margin-top: 18px;
  font-size: 34px;
}

.ins-full-old {
  margin-top: 7px;
  color: #91a8bc;
  font-size: 12px;
}

.ins-full-saving {
  margin: 17px 0 20px;
  color: #91a8bc;
  font-size: 13px;
}

.ins-full-saving strong {
  color: #3fe2a0;
}

.ins-capabilities {
  padding: 62px 0 66px;
}

.ins-capabilities h2,
.ins-workspace h2 {
  margin: 9px 0 12px;
  font-size:
    clamp(
      30px,
      4vw,
      42px
    );
}

.ins-section-lead {
  margin: 0 0 30px;
  color: #93aabd;
}

.ins-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 14px;
}

.ins-card {
  min-height: 405px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border:
    1px solid
    rgba(85, 151, 215, 0.3);
  border-radius: 16px;
  background: #0d1928;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease;
}

.ins-card:hover,
.ins-card.is-selected {
  border-color: #2388ff;
}

.ins-card:hover {
  transform: translateY(-2px);
}

.ins-card.is-selected {
  box-shadow:
    inset 0 0 0 1px
    rgba(35, 136, 255, 0.23);
}

.ins-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71889c;
  font-size: 10px;
  font-weight: 800;
}

.ins-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: #f5a524;
  background:
    rgba(245, 165, 36, 0.1);
}

.ins-status.is-open {
  color: #3fe2a0;
  background:
    rgba(63, 226, 160, 0.1);
}

.ins-card__mark {
  width: 48px;
  height: 42px;
  margin-top: 27px;
  display: grid;
  place-items: center;
  border:
    1px solid
    rgba(35, 136, 255, 0.58);
  border-radius: 10px;
  color: #43caff;
  background:
    rgba(35, 136, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.ins-card__category {
  margin-top: 22px;
  color: #43caff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.ins-card h3 {
  margin: 8px 0 12px;
  font-size: 20px;
}

.ins-card p {
  margin: 0;
  color: #94aabd;
  font-size: 13px;
  line-height: 1.56;
}

.ins-card__price {
  margin-top: auto;
  padding: 22px 0 12px;
}

.ins-card__price span {
  display: block;
  margin-bottom: 4px;
  color: #768da2;
  font-size: 10px;
}

.ins-card__price strong {
  font-size: 22px;
}

.ins-btn {
  min-height: 43px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.ins-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.ins-btn--primary {
  color: #fff;
  background:
    linear-gradient(
      180deg,
      #2c95ff,
      #1472de
    );
}

.ins-btn--secondary {
  color: #d7e5f1;
  border:
    1px solid
    rgba(98, 161, 220, 0.25);
  background: #101d2c;
}

.ins-card .ins-btn {
  width: 100%;
}

.ins-payment-message {
  min-height: 18px;
  margin-top: 9px;
  color: #91a8bc;
  font-size: 11px;
}

.ins-workspace {
  padding: 62px 0 80px;
  border-top:
    1px solid
    rgba(100, 155, 210, 0.2);
}

.ins-workspace__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}

.ins-workspace-status {
  color: #f5a524;
  font-size: 12px;
}

.ins-panel,
.ins-result,
.ins-locked {
  padding: 26px;
  border:
    1px solid
    rgba(85, 151, 215, 0.30);
  border-radius: 16px;
  background: #0d1928;
}

.ins-panel[hidden],
.ins-result[hidden],
.ins-locked[hidden] {
  display: none !important;
}

.ins-form-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 15px;
}

.ins-form-grid label {
  display: grid;
  gap: 7px;
  color: #91a8bc;
  font-size: 11px;
}

.ins-form-grid input,
.ins-takeoff-row input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border:
    1px solid
    rgba(98, 161, 220, 0.25);
  border-radius: 9px;
  outline: 0;
  background: #081421;
  color: #f4f8fc;
}

.ins-form-grid input:focus,
.ins-takeoff-row input:focus {
  border-color: #2388ff;
}

.ins-calc {
  min-width: 190px;
  margin-top: 22px;
}

.ins-note {
  margin: 18px 0 0;
  color: #7890a5;
  font-size: 11px;
}

.ins-result {
  margin-top: 18px;
}

.ins-result__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ins-result__head span {
  color: #91a8bc;
  font-size: 11px;
}

.ins-result__grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.ins-result-item {
  padding: 15px;
  border:
    1px solid
    rgba(98, 161, 220, 0.22);
  border-radius: 11px;
  background: #111f30;
}

.ins-result-item span {
  display: block;
  color: #91a8bc;
  font-size: 10px;
}

.ins-result-item strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.ins-locked {
  margin-top: 18px;
  text-align: center;
}

.ins-locked p {
  color: #91a8bc;
}

.ins-takeoff-row {
  display: grid;
  grid-template-columns:
    1.35fr
    repeat(6, 1fr)
    42px;
  gap: 8px;
  margin-bottom: 8px;
}

.ins-takeoff-row button {
  border:
    1px solid
    rgba(98, 161, 220, 0.25);
  border-radius: 9px;
  color: #ff6475;
  background: transparent;
  cursor: pointer;
}

.ins-footer {
  padding: 28px 0;
  border-top:
    1px solid
    rgba(100, 155, 210, 0.2);
  color: #70879b;
  font-size: 12px;
}


@media (max-width: 1050px) {
  .ins-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .ins-hero__grid {
    grid-template-columns: 1fr;
  }

  .ins-takeoff-row {
    grid-template-columns:
      repeat(2, 1fr);
  }
}


@media (max-width: 720px) {
  .ins-grid,
  .ins-form-grid,
  .ins-result__grid {
    grid-template-columns: 1fr;
  }

  .ins-workspace__head {
    display: block;
  }

  .ins-workspace-status {
    display: block;
    margin-top: 8px;
  }
}


/* STE_INS_TAKEOFF_LABELS_V1 */

.ins-takeoff-head {
    display: grid;
    grid-template-columns: 1.35fr repeat(6, 1fr) 42px;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
}

.ins-takeoff-head span {
    min-width: 0;
    color: #91bce5;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.ins-takeoff-mobile-guide {
    display: none;
    color: #91bce5;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .ins-takeoff-head {
        display: none;
    }

    .ins-takeoff-mobile-guide {
        display: block;
    }
}


/* STE_INS_TAKEOFF_VISUAL_R3_SAFE
   Desktop-only layout correction.
   Calculation rows and header use one grid.
*/

@media (min-width: 1101px) {

  .ins-takeoff-row,
  .ins-takeoff-head {
    grid-template-columns:
      minmax(0, 1.15fr)
      repeat(6, minmax(0, 1fr))
      72px;
  }

  .ins-takeoff-head span {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .ins-takeoff-head span:last-child {
    text-align: center;
  }

  .ins-takeoff-row > button:last-child {
    justify-self: center;
  }

}


/* STE_INS_TAKEOFF_DELETE_R4
   Slightly larger last column and delete button.
*/

@media (min-width: 1101px) {

  .ins-takeoff-row,
  .ins-takeoff-head {
    grid-template-columns:
      minmax(0, 1.12fr)
      repeat(6, minmax(0, 1fr))
      84px;
  }

  .ins-takeoff-head span:last-child {
    text-align: center;
  }

  .ins-takeoff-row > button:last-child {
    width: 48px;
    min-width: 48px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-size: 20px;
    line-height: 1;
  }

}
