.cgb-incomecalc1 {
  padding: 50px 0 38px;
  background: #f3f3f3;
  color: #131313;
  font-family: "Inter", Arial, sans-serif;
}
.cgb-incomecalc1 *,
.cgb-incomecalc1 *::before,
.cgb-incomecalc1 *::after {
  box-sizing: border-box;
}
.cgb-incomecalc1 button,
.cgb-incomecalc1 select { font: inherit; }
.cgb-incomecalc1__container {
  width: min(1340px, calc(100% - 100px));
  margin: 0 auto;
}
.cgb-incomecalc1__title {
  margin: 0 0 40px;
  color: #131313;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.08em;
  text-align: center;
}
.cgb-incomecalc1__form { padding: 25px; border-radius: 10px; background: #fff; }
.cgb-incomecalc1__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; }
.cgb-incomecalc1__field { position: relative; display: flex; flex-direction: column; }
.cgb-incomecalc1__field > span,
.cgb-incomecalc1__period > span {
  display: block;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.cgb-incomecalc1 i { color: #ff4d4f; font-style: normal; font-weight: 400; }
.cgb-incomecalc1__field select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cgb-incomecalc1__select { position: relative; width: 100%; }
.cgb-incomecalc1__trigger {
  position: relative;
  width: 100%;
  height: 48px;
  padding: 0 42px 0 11px;
  display: flex;
  align-items: center;
  color: #13151a;
  border: 1px solid rgba(19, 19, 19, .1);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cgb-incomecalc1__trigger::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 12px;
  height: 12px;
  background: url("assets/select-arrow.svg") center / contain no-repeat;
  transition: transform .25s ease;
}
.cgb-incomecalc1__trigger:hover,
.cgb-incomecalc1__trigger:focus-visible,
.cgb-incomecalc1__select.is-open .cgb-incomecalc1__trigger {
  border-color: #83c5e5;
  box-shadow: 0 0 0 3px rgba(3, 137, 203, .08);
  outline: none;
}
.cgb-incomecalc1__select.is-open .cgb-incomecalc1__trigger::after { transform: rotate(180deg); }
.cgb-incomecalc1__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(19, 19, 19, .08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(19, 19, 19, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cgb-incomecalc1__select.is-open .cgb-incomecalc1__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cgb-incomecalc1__option {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #131313;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .18s ease, background-color .18s ease;
}
.cgb-incomecalc1__option:hover,
.cgb-incomecalc1__option:focus-visible { color: #0389cb; background: #ebf6fb; outline: none; }
.cgb-incomecalc1__option.is-selected { color: #fff; background: #0389cb; }

/* Комбо-поле: свой ввод + готовые варианты */
.cgb-incomecalc1__combo input.cgb-incomecalc1__trigger {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: text;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  box-shadow: none;
}
.cgb-incomecalc1__combo input.cgb-incomecalc1__trigger:hover,
.cgb-incomecalc1__combo input.cgb-incomecalc1__trigger:focus,
.cgb-incomecalc1__combo.is-open input.cgb-incomecalc1__trigger {
  border-color: #83c5e5;
  box-shadow: 0 0 0 3px rgba(3, 137, 203, .08);
  outline: none;
}
.cgb-incomecalc1__arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  background: url("assets/select-arrow.svg") center / 12px 12px no-repeat;
  cursor: pointer;
  transition: transform .25s ease;
}
.cgb-incomecalc1__combo.is-open .cgb-incomecalc1__arrow { transform: rotate(180deg); }

.cgb-incomecalc1__period { min-width: 0; }
.cgb-incomecalc1__period div { display: flex; gap: 10px; }
.cgb-incomecalc1__period button {
  height: 48px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #13151a;
  background: #f3f3f3;
  cursor: pointer;
}
.cgb-incomecalc1__period button.is-active { border-color: #83c5e5; background: #ebf6fb; }

.cgb-incomecalc1__result {
  min-height: 158px;
  margin-top: 30px;
  padding: 13px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #0389cb;
  text-align: center;
}
.cgb-incomecalc1__result p { margin: 0 0 6px; color: #fff; font-size: 16px; font-weight: 500; line-height: 1; }
.cgb-incomecalc1__result output { margin-top: 12px; font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.cgb-incomecalc1__btn {
  height: 40px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0389cb;
  border: 1px solid #0389cb;
  border-radius: 4px;
  background: transparent;
  font-size: 16px;
  text-decoration: none;
  transition: color .22s ease, background-color .22s ease;
}
.cgb-incomecalc1__btn:hover,
.cgb-incomecalc1__btn:focus-visible { color: #fff; background: #0389cb; outline: none; }
.cgb-incomecalc1__form small { margin-top: 12px; display: block; color: rgba(19, 19, 19, .7); font-size: 14px; text-align: center; }

@media (max-width: 767px) {
  .cgb-incomecalc1 { padding: 40px 0 30px; }
  .cgb-incomecalc1__container { width: calc(100% - 40px); }
  .cgb-incomecalc1__title { margin-bottom: 26px; font-size: 32px; white-space: nowrap; }
  .cgb-incomecalc1__form { padding: 15px; }
  .cgb-incomecalc1__fields { display: flex; flex-direction: column; gap: 20px; }
  .cgb-incomecalc1__period button { padding: 0 10px; }
  .cgb-incomecalc1__result { min-height: 162px; margin-top: 20px; padding: 15px 10px; }
  .cgb-incomecalc1__result p { margin-bottom: 10px; line-height: 1.24; }
  .cgb-incomecalc1__result output { margin-top: 7px; font-size: 48px; white-space: nowrap; }
  .cgb-incomecalc1__btn { margin-top: 15px; }
  .cgb-incomecalc1__form small { max-width: 290px; margin: 12px auto 0; font-size: 16px; line-height: 1.24; }
}
@media (max-width: 370px) {
  .cgb-incomecalc1__container { width: calc(100% - 30px); }
  .cgb-incomecalc1__title { font-size: 29px; }
  .cgb-incomecalc1__result output { font-size: 42px; }
  .cgb-incomecalc1__period button { font-size: 14px; }
}
