/* @import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

colors {
  color: #ffffff;
  color: #d9f8d3;
  color: #fed1e0;
  color: #c8effe;
  color: #151531;
  color: #f8e1fa;
  color: #7856fe;
  color: #00affe;
  color: #c564d3;
}

body {
  font-family: "Baloo 2", sans-serif;
}

.background {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background: url("/assets/images/full-cloud.svg") 0 0 / 100% auto no-repeat,
    #ffffff;
}

body.active-modal {
  overflow: hidden;
  padding-right: 8px;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  background: #fefefe;
  border-left: 2px solid #1a1a1a;
}

.logo {
  color: #151531;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 100;
}

.header__wrapper {
  border-radius: 50px;
  padding: 0 10px 0 30px;
  max-width: 900px;
  margin: 0 auto;
}

.header__logo {
  position: relative;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo img {
  width: auto;
  height: 42px;
  margin-bottom: 11px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.container {
  max-width: 1260px;
  padding: 0 15px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  cursor: pointer !important;
}

.btn {
  height: 42px;
  background: #151531;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 25px;
  line-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  justify-content: center;
  border-radius: 10px;
  border: none;
}

.btn:hover::after {
  right: 120px;
}

.btn img {
  width: 20px;
  height: 20px;
}

h2 {
  font-weight: 600;
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

section {
  margin: 100px 0;
}

/* Header */

header {
  position: relative;

  z-index: 6;
  width: 100%;
  margin: 0 auto;
  padding: 15px 0;
}

header .row {
  gap: 40px;
}

#phone {
  display: flex;
  align-items: center;
  gap: 10px;
}
#phone span {
  padding-top: 1px;
}

header img {
  height: 18px;
  width: 18px;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;
  border-left: #cccccc;
  gap: 40px;
  width: 100%;
}

.header__menu a {
  display: block;
  position: relative;
  font-weight: 500;
  color: #151531;
  margin-top: 4px;
}

.header__menu .btn {
  color: black;
  background: #151531;
  color: white;
  margin-left: auto;
  margin-top: 0;
}

.header__mobile-nav {
  display: none;
  align-items: center;
  position: relative;
  z-index: 999;
}

.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  cursor: pointer;
}

.burger figure {
  width: 100%;
  height: 4px;
  background: #151531;
  transition: all 0.3s;
  border-radius: 4px;
}

.burger figure:nth-child(2) {
  width: 70%;
}

.burger.active figure:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

.burger.active figure:nth-child(2) {
  transform: translate(-15px);
  width: 0;
}

.burger.active figure:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Hero */

/* Fixed phone call */

.phone-call-wrapper {
  position: fixed;
  bottom: 10px;
  z-index: 999;
  right: 10px;
}

.phone-call {
  height: 42px;
  width: 42px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid black;
}

.phone-call img {
  width: 24px;
  height: 24px;
}

/* Media querys */

@media all and (max-width: 1124px) {
  .header__wrapper {
    padding: 0 20px;
  }

  body.active-modal {
    padding: 0;
  }
  .phone-call-wrapper {
    display: flex;
  }
  .header__mobile-nav {
    display: flex;
  }
  .header__menu {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    background: #ffffff;
    z-index: 10;
    border-left: 1px solid #cccccc;
    flex-direction: column;
    gap: 45px;
    overflow: hidden;
  }

  .header__menu a {
    font-size: 20px;
    white-space: nowrap;
  }

  .header__menu .btn {
    margin: 0;
  }

  .header__menu a::before {
    display: none;
  }

  .header__menu li:last-child {
    display: none;
  }

  .header__menu.active {
    right: 0;
    width: 100vw;
  }

  .header__menu-list {
    gap: 60px;
    flex-direction: column;
  }
}

@media all and (max-width: 768px) {
  header .btn {
    font-size: 14px;
  }
}

@media all and (max-width: 480px) {
  .logo,
  .logo img {
    height: 32px;
  }
}

/* request__wrapper */

.request__wrapper {
  display: flex;
  gap: 80px;
  justify-content: center;
  flex-wrap: wrap;
}

.request__form {
  display: flex;
  flex-direction: column;
}

.request__form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request__form input {
  height: 42px;
  border: 2px solid black;
  padding: 0 10px;
  font-size: 16px;
}

.request__form .logo {
  margin: 0 auto;
}
.request__form-subtitle {
  margin: 20px 0;
  text-align: center;
}

.request__image {
  margin: 0 !important;
}

.request__image img {
  width: 200px;
}

.form-message {
  display: none;
  text-align: center;
}

@media all and (max-width: 768px) {
  .request__wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

footer {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(172, 238, 253, 1) 100%
  );
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.footer-backs img:nth-child(1) {
  width: 30vw;
  height: auto;
  transform: rotate(4deg);
  position: absolute;

  bottom: -5%;
  left: -5%;
}

.footer-backs img:nth-child(2) {
  width: 70vw;
  height: auto;
  transform: rotate(-4deg);
  position: absolute;
  bottom: -12%;
  right: -7%;
}

.footer__wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.footer__top-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer__top-left p {
  font-size: 14px;
  font-weight: 500;
  color: #cccccc;
}

.footer__menu {
  display: flex;
  gap: 40px;
  justify-content: center;
  height: 36px;
  margin-bottom: 10px;
}

.footer__menu a {
  display: block;
  color: #151531;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.footer__infos {
  padding: 20px 0;
}

.footer__infos p {
  text-align: center;
  font-size: 12px;
  color: #4d4d4d;
}

footer .logo {
  z-index: 1;
}

.footer__more {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer__more a {
  text-decoration: underline;
  color: #151531;
  font-weight: 500;
}

.footer__more {
  color: #151531;
  font-size: 22px;
  font-weight: 500;
}

@media all and (max-width: 768px) {
  .footer__top {
    margin-bottom: 0;
  }

  .footer__top,
  .footer__more,
  .footer__menu {
    flex-direction: column;
    gap: 15px;
    line-height: 36px;
  }
  .footer__menu {
    height: auto;
  }
  .footer__more {
    border-top: 1px solid #777777;
    gap: 10px;
    padding: 20px 0;
    margin: 0;
  }
  .footer__menu {
    padding: 20px 0;
  }
  .footer__menu a {
    font-size: 24px;
  }
}

.modal {
  top: 0;
  left: 0;
  padding: 10px;
  height: 100vh;
  width: 100%;
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal__window {
  background: white;
  padding: 30px;
  position: relative;
  transition: all 0.3s;
  transform: scale(0.1);
}

#close-modal {
  color: black;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  font-size: 20px;
  line-height: 20px;
  border: none;
  background: none;
  height: 28px;
  cursor: pointer;
}

.modal.active {
  z-index: 9999;
  opacity: 1;
}

.modal.active .modal__window {
  transform: scale(1);
}

/* CREDIT CALCULATOR */
.calculator {
  margin: 0;
  padding: 100px 0 80px 0;
}

.calculator h2 {
  color: white;
}

.credit-calculator {
  background: white;
  margin: 60px auto 0 auto;
  border-radius: 20px;
  display: flex;
  width: fit-content;
  box-shadow: 1px 1px 4px #00affe;
  position: relative;
  max-width: 1100px;
  width: 100%;
}

#loan-interest .loan-interest--promo,
#auction-fee .auction-fee--promo,
#net-amount .net-amount--promo,
#total-repayment .total-repayment--promo {
  display: none;
}

#loan-interest.active-promo .loan-interest--promo,
#auction-fee.active-promo .auction-fee--promo,
#net-amount.active-promo .net-amount--promo,
#total-repayment.active-promo .total-repayment--promo {
  display: block;
  padding-right: 4px;
  color: red;
}

#loan-interest.active-promo .loan-interest--full,
#auction-fee.active-promo .auction-fee--full,
#net-amount.active-promo .net-amount--full,
#total-repayment.active-promo .total-repayment--full {
  text-decoration: line-through;
  color: #545454;
  font-size: 12px;
}

#loan-interest,
#auction-fee,
#net-amount,
#total-repayment {
  display: flex;
  justify-content: flex-end;
}

.credit-calculator__promo {
  position: absolute;
  bottom: 32px;
  padding: 0 30px;
  left: 0;
}

.credit-calculator__promo p {
  color: red;
  font-size: 12px;
}
.credit-calculator__promo a {
  cursor: pointer;
  font-size: 12px;
}

.credit-calculator__content {
  padding: 30px;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  padding-bottom: 45px;
}

.credit-calculator__range {
  display: flex;
  justify-content: space-between;
  height: 60px;
  align-items: center;
}

.credit-calculator__input-range {
  position: relative;
  width: calc(100% - 80px - 80px);
}

.credit-calculator__input-range input {
  display: block;
  width: 100%;
}

.credit-calculator__input-range input[type="range"] {
  -webkit-appearance: none; /* Убираем стандартный стиль */
  appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd; /* Цвет линии */
  border-radius: 4px;
  outline: none;
  transition: background 0.3s;
}

.credit-calculator__min {
  width: 80px;
  line-height: 30px;
  text-align: center;
  height: 30px;
}

.credit-calculator__max {
  width: 80px;
  text-align: center;
  height: 30px;
  line-height: 30px;
}

/* Стилизация линии ползунка в Chrome, Safari */
.credit-calculator__input-range
  input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #2d2d54, #838181);
  border-radius: 4px;
}

/* Стилизация ползунка (thumb) в Chrome, Safari */
.credit-calculator__input-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 20px;
  background: rgba(60, 255, 0, 0);
  opacity: 0;
  border-radius: 6px;
  cursor: pointer;
  margin-top: -6px; /* Подгоняем под линию */
  transition: transform 0.2s;
  z-index: 2;
}

.credit-calculator__input-range
  input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.credit-calculator__value {
  position: absolute;
  top: calc(50% - 14.5px);
  left: 0;
  transform: translateX(-25px);
  background: #151531;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  width: 50px;
  height: 28px;
  line-height: 18px;
  text-align: center;
  transition: transform 0.1s ease-out;
}

/* Для Firefox */
.credit-calculator__input-range input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #d7d7d7;
  border-radius: 4px;
}

.credit-calculator__input-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #7163b8;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.credit-calculator__input-range input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Число внутри ползунка */
.credit-calculator__input-range
  inputput[type="range"]::-webkit-slider-thumb::before {
  content: attr(data-value);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.credit__tables {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 27px;
}

.credit__tables table {
  width: 100%;
}

.credit__tables table td {
  padding: 3px 0;
  white-space: nowrap;
}

.credit__tables table td:nth-child(2) {
  text-align: right;
}

.credit-calculator-next {
  margin: 0 auto;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.585);
  position: relative;
  z-index: 2;
}

.cc-back-1 {
  position: absolute;
  right: -10px;
  z-index: 1;
  width: 400px;
  bottom: -10px;
}

@media all and (max-width: 1100px) {
  .credit-calculator {
    flex-direction: column;
    background: white;
    justify-content: center;
    align-items: center;
    width: fit-content;
  }

  .credit-calculator__promo {
    bottom: 0;
  }

  .calculator h2 {
    font-size: 24px;
  }
}

@media all and (max-width: 768px) {
  .calculator h2 {
    font-size: 20px;
  }
  .credit-calculator__content {
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
  }

  .credit-calculator__promo {
    position: static;
    padding: 0 2px;
    margin-top: 6px;
  }

  .credit-calculator__min {
    width: 60px;
    line-height: 30px;
    text-align: center;
    height: 30px;
  }

  .credit-calculator__max {
    width: 60px;
    text-align: center;
    height: 30px;
    line-height: 30px;
  }
  .credit-calculator__input-range {
    position: relative;
    width: calc(100% - 60px - 60px);
  }
  .credit__tables {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 0px;
  }

  .credit__tables table {
    width: 100%;
  }

  .credit__tables table td {
    padding: 3px 0;
    white-space: nowrap;
  }
  .credit__tables table td:last-child {
    text-align: right;
  }
}

/* credit-calculator__register */

.credit-calculator__register {
  padding: 30px;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  color: black;
}

.credit-calculator__register a {
  color: #002afc;
}

.credit-calculator__content.show {
  display: block;
}

.credit-calculator__register.show {
  display: block;
}

.credit-calculator__register-inps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.credit-calculator__register-inps .custom-input {
  width: calc(50% - 5px);
}

.credit-calculator__register-inps label {
  font-size: 14px;
  color: #151531;
}

.credit-calculator__register-inps p {
  font-size: 14px;
  color: red;
}

.credit-calculator__register-inps input {
  width: 100%;
  padding: 0 10px;
  border-radius: 4px;
  height: 38px;
  font-size: 16px;
  border: 1px solid #777777;
  background: rgba(255, 255, 255, 0.8);
}

.credit-calculator__register-checkbox {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.credit-calculator__register-checkbox label {
  font-size: 12px;
}

.credit-calculator__register-checkbox .custom-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.credit-calculator__register-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.credit-calculator__register-spat {
  font-weight: 500;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

@media all and (max-width: 768px) {
  .credit-calculator__register {
    padding: 20px;
  }
}

@media all and (max-width: 600px) {
  .credit-calculator__register-inps {
    flex-direction: column;
  }
  .credit-calculator__register-inps .custom-input {
    width: 100%;
  }
}

/* modal-verification */
.modal-verification {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: -1;
  opacity: 0;
  padding: 15px;
}

.modal-verification.active {
  z-index: 9998;
  opacity: 1;
}

.modal-verification__window {
  background: white;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 1px 1px 4px rgb(161, 161, 161);
}

.modal-verification__window h2 {
  font-size: 18px;
  margin-bottom: 10px !important;
}

.modal-verification__window h3 {
  text-align: center;
  margin-bottom: 10px;
}

.modal-verification__window p {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  font-size: 14px;
}

.modal-verification__preview {
  display: none;
}

.modal-verification__content {
  display: none;
}

.modal-verification__success {
  display: none;
}

.modal-verification__request {
  display: none;
}

.modal-verification__success p {
  max-width: 460px;
}

.modal-verification__preview.show {
  display: block;
}

.modal-verification__content.show {
  display: block;
}

.modal-verification__success.show {
  display: block;
}

.modal-verification__request.show {
  display: block;
}

.modal-verification__label {
  margin: 10px 0;
  display: block;
  text-align: center;
}

.modal-verification .btn {
  width: 100%;
  max-width: 280px;
  margin: 10px auto 0 auto;
}

.modal-verification__preview button:disabled {
  opacity: 0.3;
}

.modal-verification__content form {
  position: relative;
  display: block;
  width: 100%;
}

.modal-verification .modal__input {
  margin: 30px 0;
}

.modal-verification__content form input {
  width: 100%;
  padding: 0 130px 0 10px;
  border-radius: 4px;
  height: 38px;
  font-size: 16px;
  border: 1px solid #777777;
}

.modal-verification__content form .modal-verification__refresh {
  position: absolute;
  right: 0;
  top: 0;
  width: 110px;
  height: 38px;
  cursor: pointer;
  font-size: 12px;
}

.modal-verification__refresh:disabled {
  opacity: 1 !important;
  color: #7163b8;
}

/* showNotify  */

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  min-width: 200px;
  margin-top: 5px;
  padding: 10px 20px;
  color: black;
  border-radius: 5px;
  font-family: "SF Pro Rounded", sans-serif;
  opacity: 0.9;
  box-shadow: 1px 1px 4px rgb(161, 161, 161);
  background: white;
  transition: opacity 0.5s;
  font-weight: 500;
}

.toast-success {
  border: 2px solid #5dc98f;
  color: #5dc98f;
}

.toast-error {
  border: 2px solid #f44336;
  color: #f44336;
}

/* showNotify  */

.cookies-open-btn {
  text-decoration: underline;
  cursor: pointer;
}

.cc-preloader {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-preloader.hide {
  display: none;
}

.cc-preloader img {
  width: 180px;
  height: 180px;
}
