body.page-credit {
  background: #fff;
}

.credit-hero {
  position: relative;
  height: 670px;
  border-radius: 0 0 32px 32px;
  color: var(--color-text-white);
}

.credit-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: #071433;
}

.credit-hero__bg {
  position: absolute;
  width: 109.06%;
  height: 208.36%;
  left: 0;
  top: -47.16%;
  max-width: none;
  object-fit: fill;
}

.credit-hero__car {
  position: absolute;
  left: calc(33.33% + 164px);
  top: 165px;
  width: 1200px;
  height: 784px;
  max-width: none;
  object-fit: contain;
}

.crumbs {
  position: absolute;
  z-index: 2;
  top: 180px;
  left: max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  line-height: 24px;
}

.crumbs a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crumbs span:last-child {
  font-weight: 400;
}

.credit-hero__content {
  position: absolute;
  z-index: 2;
  top: 244px;
  left: max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: min(660px, var(--layout-content));
}

.credit-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credit-hero h1 {
  font-size: 60px;
  line-height: 72px;
  font-weight: 600;
}

.credit-hero__lead {
  width: min(443px, 100%);
  font-size: 16px;
  line-height: 28px;
}

.credit-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn--white {
  background: #fff;
  color: var(--color-text-button);
}

.btn--white:hover:not(:disabled) {
  background: var(--color-gray-100);
}

.btn--sm {
  min-height: 32px;
  padding-block: var(--space-1);
}

.btn--sm span {
  padding-inline: var(--space-1);
}

.step__go img {
  filter: brightness(0);
}

.credit-title {
  margin-bottom: 20px;
}

.calc-card {
  display: flex;
  align-items: stretch;
  gap: 48px;
  padding: 24px 32px;
  background: var(--color-gray-50);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-card);
}

.calc-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.calc-selects {
  display: none;
}

.calc-select {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.calc-select > span,
.calc-slider__label,
.calc-offer__label {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.calc-select__box,
.calc-phone__box,
.cta__field {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-input);
  box-shadow: var(--shadow-xs);
}

.calc-select__box {
  padding: 8px 12px 8px 8px;
}

.calc-select select,
.calc-phone input,
.cta__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  outline: none;
}

.calc-select select {
  padding: 0 4px;
  color: var(--color-text-secondary);
  -webkit-appearance: none;
  appearance: none;
}

.calc-select select.is-set {
  color: var(--color-text-primary);
}

.calc-select select:disabled,
.calc-select select option[value=""] {
  color: var(--color-text-secondary);
}

.calc-select__box img {
  flex: 0 0 auto;
}

.calc-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-slider__label {
  margin-bottom: -4px;
}

.calc-slider__value {
  font-size: 18px;
  line-height: 32px;
}

label.calc-slider__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.calc-slider__value input {
  width: 9.5ch;
  min-width: 1ch;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  outline: none;
}

.calc-slider__value input:focus-visible {
  outline: 2px solid var(--color-red-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.range {
  display: block;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: var(--radius-3xl);
  background:
    linear-gradient(var(--color-red-500), var(--color-red-500)) left center / calc(10px + (100% - 20px) * var(--ratio, 0)) 100% no-repeat,
    var(--color-gray-100);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range:disabled {
  background:
    linear-gradient(var(--color-gray-200), var(--color-gray-200)) left center / calc(10px + (100% - 20px) * var(--ratio, 0)) 100% no-repeat,
    var(--color-gray-100);
  cursor: default;
}

.range::-webkit-slider-runnable-track {
  height: 8px;
  border: 0;
  background: transparent;
}

.range::-webkit-slider-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--color-border-outline),
    0 1px 2px rgba(18, 18, 23, 0.06),
    0 1px 3px rgba(18, 18, 23, 0.1);
  -webkit-appearance: none;
  appearance: none;
}

.range:active::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 1px var(--color-red-500),
    0 1px 2px rgba(18, 18, 23, 0.06),
    0 1px 3px rgba(18, 18, 23, 0.1);
}

.range::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--color-border-outline),
    0 1px 2px rgba(18, 18, 23, 0.06),
    0 1px 3px rgba(18, 18, 23, 0.1);
}

.range:active::-moz-range-thumb,
.range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 1px var(--color-red-500),
    0 1px 2px rgba(18, 18, 23, 0.06),
    0 1px 3px rgba(18, 18, 23, 0.1);
}

.range::-moz-range-track {
  height: 8px;
  border: 0;
  background: transparent;
}

.calc-slider__scale {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.calc-offer {
  display: flex;
  flex: 0 0 526px;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  width: 526px;
}

.calc-offer__top,
.calc-offer__form,
.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc-offer__top {
  gap: 12px;
}

.calc-figures {
  display: flex;
  gap: 12px;
}

.calc-figure {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 20px;
  border-radius: var(--space-4);
  background: var(--color-gray-100);
}

.calc-figure span {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.calc-figure strong {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.calc-offer__row,
.cta__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-phone {
  flex: 1 1 auto;
  min-width: 0;
}

.calc-phone__box {
  padding: 8px;
}

.calc-phone__prefix {
  padding-inline: 8px;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
}

.calc-phone input {
  padding-inline: 8px;
}

.calc-phone input::placeholder,
.cta__field input::placeholder {
  color: var(--color-text-button-disabled);
}

.cta__field input::placeholder {
  color: var(--color-text-secondary);
}

.calc-offer .check,
.cta .check {
  gap: var(--space-3);
}

.calc-note {
  color: var(--color-text-tab);
  font-size: 14px;
  line-height: 20px;
}

.page-credit .form-error {
  color: var(--color-text-accent);
}

.calc-success,
.cta__success {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.banks__viewport {
  width: 100%;
  overflow: hidden;
  height: 71px;
  display: flex;
  align-items: center;
}

.banks__track {
  display: flex;
  width: max-content;
  animation: banks-marquee 48s linear infinite;
}

.banks__viewport:hover .banks__track {
  animation-play-state: paused;
}

.banks__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 80px;
  width: max-content;
  padding-right: 80px;
}

.banks__set > img,
.banks__set > .bank-logo,
.bank-logo img {
  height: 32px;
  width: auto;
  flex: 0 0 auto;
  overflow: hidden;
  clip-path: inset(0);
}

.bank-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.bank-logo--alfa {
  width: 158px;
  gap: 2px;
}

.bank-logo--alfa img:first-child {
  height: 32px;
}

.bank-logo--alfa img:not(:first-child) {
  height: 16px;
}

.bank-logo--vtb {
  width: 88px;
  gap: 6px;
}

.bank-logo--vtb img:first-child {
  height: 16px;
}

.bank-logo--vtb img:last-child {
  height: 22px;
}

@keyframes banks-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.steps {
  display: grid;
  grid-template-columns: 326fr 327fr 327fr 664fr;
  align-items: stretch;
  gap: var(--space-3);
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 283px;
  min-width: 0;
  padding: 20px 24px;
  border-radius: var(--radius-promo);
  overflow: hidden;
  color: var(--color-text-white);
  background: linear-gradient(180deg, #f53d6b 0%, #d50b3e 100%);
}

.step--wide {
  position: relative;
  background: var(--color-gray-900);
}

.step__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--radius-3xl);
  background: var(--color-gray-900);
  font-size: 14px;
  line-height: 20px;
}

.step--wide .step__badge {
  background: var(--color-red-500);
}

.step h3 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.step__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.step--wide .step__copy {
  width: min(378px, 70%);
  gap: 8px;
}

.step__keys {
  position: absolute;
  width: 586px;
  height: 390px;
  left: 320px;
  top: -40px;
  max-width: none;
  object-fit: contain;
  transform: rotate(-19.53deg);
  pointer-events: none;
}

.credit-perks .credit-title {
  margin-bottom: 36px;
}

.terms {
  position: relative;
  min-height: 376px;
  padding: 36px;
  overflow: hidden;
  border-radius: var(--radius-promo);
  color: var(--color-text-white);
}

.terms__bg {
  position: absolute;
  width: 108.96%;
  height: 228.35%;
  left: -0.03%;
  top: -43.94%;
  max-width: none;
  object-fit: cover;
}

.terms__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(834px, 100%);
}

.terms__tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.terms__tab {
  padding: 8px 16px 16px;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 24px;
}

.terms__tab:hover:not(.is-active) {
  border-bottom-color: var(--color-gray-200);
  color: var(--color-text-white);
}

.terms__tab.is-active {
  border-bottom-color: var(--color-text-tab-active);
  color: var(--color-text-tab-active);
  font-weight: 500;
}

.terms__list {
  margin: 0;
  padding-left: 24px;
  font-size: 16px;
  line-height: 32px;
  list-style: disc;
}

.terms__list li::marker {
  font-size: 12px;
}

.terms__note {
  max-width: 834px;
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 20px 32px;
  border-radius: var(--radius-card);
  color: var(--color-text-white);
  background: linear-gradient(180deg, #f53d6b 0%, #d50b3e 100%);
}

.cta__banner h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}

.cta__form {
  flex: 0 0 519px;
  width: 519px;
  gap: var(--space-2);
}

.cta__field {
  flex: 1 1 auto;
  padding: 8px 16px;
}

.cta .check,
.cta .check a {
  color: var(--color-text-white);
}

@media (max-width: 1280px) {
  .credit-hero {
    height: 560px;
  }

  .credit-hero__content {
    top: 196px;
  }

  .credit-hero h1 {
    font-size: 48px;
    line-height: 56px;
  }

  .crumbs {
    top: 156px;
  }

  .credit-hero__car {
    left: auto;
    right: -80px;
    top: 120px;
    width: 760px;
    height: auto;
  }

  .calc-offer,
  .cta__form {
    flex-basis: 420px;
    width: 420px;
  }

  .calc-figure strong {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 768px) {
  .page-credit .section {
    margin-top: 48px;
  }

  body.page-credit {
    background: var(--color-gray-50);
  }

  .page-credit .credit-title {
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 32px;
    letter-spacing: 0;
  }

  .credit-hero {
    height: auto;
    padding-bottom: 0;
    border-radius: 0;
  }

  .credit-hero__media {
    border-radius: 0;
  }

  .credit-hero__bg {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  .credit-hero__car {
    left: 85%;
    top: 370px;
    width: 720px;
    height: auto;
    transform: translateX(-50%);
  }

  .crumbs {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    width: auto;
    margin: 20px 20px 0;
  }

  .credit-hero__content {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    width: auto;
    min-height: 680px;
    margin: 19px 0 0;
    padding: 0 20px 24px;
  }

  .credit-hero__text {
    gap: 19px;
  }

  .credit-hero h1 {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0;
  }

  .credit-hero__lead {
    width: 299px;
    max-width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .credit-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .credit-hero__actions .btn {
    flex: none;
    width: 100%;
  }

  #calc .credit-title {
    margin-bottom: 56px;
  }

  #calc .calc-card {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .calc-note {
    font-size: 12px;
    line-height: 16px;
  }

  .calc-selects {
    display: none;
  }

  .calc-slider--price,
  .calc-form {
    display: flex;
  }

  .calc-form {
    gap: 20px;
  }

  .calc-offer,
  .cta__form {
    width: 100%;
    flex-basis: auto;
  }

  .calc-figures {
    flex-direction: column;
    text-align: left;
  }

  .calc-figure strong {
    font-size: 30px;
    line-height: 36px;
    white-space: nowrap;
  }

  .calc-offer__row,
  .cta__banner,
  .cta__row {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-offer__row .btn,
  .cta__banner .btn,
  .cta__field {
    width: 100%;
  }

  #banks-title {
    margin-bottom: 32px;
  }

  .banks__viewport {
    height: 32px;
  }

  .banks__set {
    gap: 48px;
    padding-right: 48px;
  }

  .steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .step,
  .step--wide {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 20px;
  }

  .step__go {
    width: 100%;
  }

  .step--wide {
    height: 440px;
  }

  .step--wide .step__copy {
    width: 100%;
  }

  .step__keys {
    left: -30px;
    top: 210px;
    width: 520px;
    height: auto;
    transform: rotate(-1.72deg);
  }

  .credit-perks {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0 20px 8px;
    background: var(--color-gray-50);
  }

  .credit-perks .credit-title {
    margin-bottom: 20px;
  }

  .credit-perks .perk {
    border-bottom-color: var(--color-gray-100);
  }

  .credit-perks .perk:last-of-type {
    border-bottom: 0;
  }

  .credit-perks__more {
    width: 100%;
    margin-top: 20px;
  }

  .terms {
    width: calc(100% + 40px);
    margin-inline: -20px;
    min-height: 635px;
    padding: 32px 20px;
    border-radius: var(--radius-promo);
    background: #0c0109;
  }

  .terms__bg {
    width: 259.63%;
    height: 75.06%;
    left: -126.86%;
    top: 52.48%;
    bottom: auto;
    max-width: none;
    object-fit: fill;
  }

  .terms__body {
    gap: 16px;
  }

  .terms h2 {
    font-size: 30px;
    line-height: 32px;
    letter-spacing: 0;
  }

  .terms__tabs {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .terms__tab {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 8px 16px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  .cta__banner {
    gap: 28px;
    padding: 20px 24px;
    border-radius: 24px;
  }

  .cta__banner h2 {
    max-width: 269px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banks__track {
    animation: none;
  }
}

.calc-select__box.has-dropdown {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calc-select__box.has-dropdown > select,
.calc-select__box.has-dropdown > img {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.calc-select__box.has-dropdown.is-set .dropdown__btn {
  color: var(--color-text-primary);
}

.calc-select__box.has-dropdown .dropdown__btn:disabled {
  color: var(--color-text-button-disabled);
  background: var(--color-gray-50);
  box-shadow: none;
  opacity: 1;
  cursor: default;
}
