/**********
 * IMPORT *
 **********/

@import url('root.css');

/*********
 * OTHER *
 *********/

.header {
  width: 100%;
}

.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.burger-btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 3px;
  color: #000;
}

.burger-btn-close svg {
  width: 100%;
  height: 100%;
}

.nav-menu {
  position: fixed;
  top: 0;
  left:0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(-100%);
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  padding: 16px;
  overflow-y: auto;
}

.nav-menu__top-line{
  display: grid;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 60px;
}

.nav-menu__col {
  display: flex;
  align-items: flex-end;
}

.nav-menu__col--center{
  justify-content: center;
}

.nav-menu__col--right{
  justify-content: flex-end;
}

.nav-menu.opened{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-menu__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
  padding: 0;
}

.nav-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #000;
  border-radius: 12px;
  max-width: fit-content;
}

.nav-menu__link:hover{
  background-color: #FFF8EF;
  color: #000;
}

.nav-menu__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav__icon-wrap i {
  width: 100%;
  height: 100%;
}

@media (max-width: 1199px) {
  .burger-btn {
    display: flex;
  }
  .accountPages .header-contact {
    display: none;
  }
  .header-logout-link {
    display: none !important;
  }
}

.header-container {
  margin: 0 auto;
  padding: 10px 20px 20px 20px;

  display: flex;
  align-items: end;
  justify-content: space-between;
}

.header-inner-col {
  display: flex;
  align-items: center;
  flex-basis: 33.333%;
  max-width: 33.333%;
  gap: 24px;
}

.header-center-col {
  justify-content: center;
}

.header-right-controls {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

@media (max-width: 480px) {
  .home .header-inner-col-left {
    display: none;
  }
}




/* contact */
.header-contact__phone {
  font-size: 16px;
  font-weight: 500;
}

.header-contact__description {
  color: #212529;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

/* logo */
.header-logo img {
  width: 100%;
  height: auto;
  max-height: 45px;
  object-fit: contain;
}

/* button */
.header-logIn {
  padding: 9px 40px;
  font-size: 16px;
}

@media (max-width: 480px) {
  .home .header-inner-col-left {
    display: none;
  }
  .header-logIn {
    padding: 8px 30px;
    font-size: 14px;
  }
}


/* media */
@media (max-width: 480px) {
  .header-container {
    gap: 10px;
  }
  .header-contact {
    display: none;
  }
}

.cover-items {
  display: flex;
  flex-direction: column;
}

.cover-items h1 {
  font-weight: 700;
}

.cover-calc {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1195px) {
  .cover-calc {
    flex-direction: column;
    align-items: center;
  }
}

.cover-calc h1 {
  font-size: 50px;
  color: #161C2D;
  margin-bottom: 50px;
}

.cover-calc .calc {
  background: #F3FFF6;
  border: 2px solid rgba(110, 164, 123, 0.5);
  padding: 45px 70px 50px 70px;
  position: relative;
}

.calc-rec-tl::after,
.calc-rec-tr::after,
.calc-rec-bl::after,
.calc-rec-br::after {
  content: '';
  width: 26px;
  height: 26px;
  background: #0FBA3A;
  border-radius: 50%;
  display: block;
}

.calc-rec-tl,
.calc-rec-tr,
.calc-rec-bl,
.calc-rec-br {
  position: absolute;
}

.calc-rec-tl {
  top: -14px;
  left: -14px;
}

.calc-rec-tr {
  top: -14px;
  right: -14px;
}

.calc-rec-bl {
  bottom: -14px;
  left: -14px;
}

.calc-rec-br {
  bottom: -14px;
  right: -14px;
}

.calc-content {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.calc-item-info .calc-info {
  font-size: 12px;
  color: #686868;
}

.calc-summ,
.calc-term {
  flex: 1;
}

.calc-item-info {
  display: flex;
  justify-content: space-between;
}

.calc-label {
  margin-bottom: 12px;
}

.calc-label span {
  font-weight: 700;
}

.calc__element {
  margin-top: 15px;
}

.range__slider [type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  border-radius: 6px;
  background: #f1f1f1;
  outline: none;
  padding: 0;
  margin: 0;
}

.range__slider [type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 7px solid #0FBA3A;
  cursor: pointer;
  -webkit-transition: background 0.15s ease-in-out;
  transition: background 0.15s ease-in-out;
}


.range__slider [type='range']::-moz-range-thumb {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 7px solid #0FBA3A;
  cursor: pointer;
  -webkit-transition: background 0.15s ease-in-out;
  transition: background 0.15s ease-in-out;
}

input::-moz-focus-inner,
input::-moz-focus-outer {
  border: 0;
}

.calc-buttons {
  margin: 36px 70px 50px 70px;
}

.calc-submit {
  border: 4px solid #000;
  border-radius: 44px;
  background-color: #000;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  padding: 17px 43px;
  transition: all 0.15s ease-in-out;
  width: 100%;
}

.calc-submit:hover {
  background-color: #fff;
  color: #000;
}

.calc-button-gos a {
  font-size: 19px;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 15px;
  transition: all 0.15s ease-in-out;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.calc-button-gos a:hover {
  background-color: #f8d046;
  color: #fff;
}

.calc-button-gos a::after {
  display: block;
  content: '';
  width: 143px;
  height: 19px;
  background: url('../img/gos.webp') no-repeat center center;
  margin-top: 3px;
}

@media (max-width: 1195px) {
  .calc-buttons {
    margin-top: 30px;
    flex-direction: column;
    gap: 20px;
  }
}

.cover-img {
  height: fit-content;
  position: relative;
  background: radial-gradient(50% 50% at 50% 50%, #FFF9C1 0%, rgba(255, 242, 217, 0.00) 100%);
  margin-left: -40px;
  left: 50px;
}

.cover-img img{
  max-width: fit-content;
}

.advantages {
  margin-top: 60px;
}

.advantages-items {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background-color: #fff;
  border-radius: 40px;
  border: 2px solid #333333;
  padding: 24px clamp(20px, 8vw, 80px);
  box-shadow: 16px 16px 0px 0px #B6D1BD;
}

@media (max-width: 1170px) {
  .advantages-items {
    display: grid;
    grid-template-columns: 1fr 1fr;

    text-align: center;
  }

  .advantages-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 730px) {
  .advantages-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .advantages-items {
    box-shadow: 4px 16px 0px 0px #B6D1BD;
  }
}

.advantage-item span {
  display: block;
}

.advantage-item span:first-child {
  color: #100201;
  font-weight: 600;
  font-size: 32px;
}

.advantage-item span:last-child {
  color: #6c6c6c;
  font-weight: 300;
  font-size: 22px;
}

.credit-rating {
  margin-top: 105px;
}

.credit-rating-blocks {
  display: flex;
  align-items: center;
  border: 4px solid #5b57eb;
  padding: clamp(50px, 8.6vw, 86px) clamp(30px, 10.5vw, 105px);
  border-radius: 50px;
  max-width: 1083px;
  margin: 0 auto;
  position: relative;
  box-shadow: 24px 10px 0px -1px #c6c4ff;
}

@media (max-width: 920px) {
  .credit-rating-blocks {
    flex-direction: column;

    text-align: center;
  }
}

@media (max-width: 480px) {
  .credit-rating-blocks {
    box-shadow: 4px 10px 0px -1px #c6c4ff;
  }
}

.credit-rating-blocks .star-cub-f {
  position: absolute;
  top: -42px;
  left: 60%;
}

.credit-rating-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.credit-rating-blocks .text {
  flex-direction: column;
  border-right: 2.5px solid #5b57eb;
  padding-right: 67px;
}

@media (max-width: 920px) {
  .credit-rating-blocks .text {
    border-right: unset;
    border-bottom: 2.5px solid #5b57eb;
    padding-right: 0;
    padding-bottom: 22px;
  }
}

.credit-rating-blocks .text h2 {
  font-size: clamp(26px, 3.2vw, 32px);
  color: #000;
  font-weight: 700;
  line-height: 36px;
}

.credit-rating-blocks .text p {
  font-size: clamp(14px, 1.8vw, 18px);
  font-size: 16px;
  padding-top: 36px;
}

.credit-rating-blocks .text a {
  text-decoration: underline;
  font-weight: 700;
  color: #000;
}

.credit-rating-blocks .rating {
  justify-content: center;
  text-align: center;
  padding-left: 67px;
}

@media (max-width: 920px) {
  .credit-rating-blocks .rating {
    padding: 20px 0px 0px 0px;
  }
}

.credit-rating-blocks .rating span:first-child {
  font-size: clamp(90px, 14.5vw, 145px);
  font-weight: 600;
  color: #5b57eb;
  margin-top: -42px;
}

.credit-rating-blocks .rating span:last-child {
  font-size: clamp(16px, 3.2vw, 32px);
  color: #473bf0;
}

/************
 * ARTICLES *
 ************/

.hidden {
  display: none;
}

.articles {
  margin-top: clamp(50px, 20vw, 200px);
}

.articles-items {
  display: flex;
  gap: clamp(20px, 5vw, 50px);
}

.articles-item {
  position: relative;
  overflow: visible;
  height: 240px;
  width: min(100%, 625px);
  padding: 50px clamp(28px, 5vw, 30px);

  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;

  background-color: #ffe58b;
  border-radius: 65px;
}

.articles-item:nth-child(2) {
  background-color: #deddff;
}

.articles-item__image {
  position: absolute;
  bottom: 0;
  left: 30px;
}

.articles-item__image img {
  width: 271px;
  height: auto;
}

.articles-item__info-title {
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 700;
}

.articles-item__info-description {
  margin-top: 14px;
  font-size: 16px;
}

.articles-item__info-button {
  display: flex;

  margin-top: 24px;
  font-weight: 700;
}

.articles-item__info-button::after {
  content: url('../img/arrow-black.svg');
  margin: 2px 0 0 10px;
}

@media (max-width: 1230px) {
  .articles-items {
    align-items: center;
    flex-direction: column;
  }

  .articles-item:nth-child(2) {
    margin-top: 150px;
  }
}

@media (max-width: 600px) {
  .articles-item {
    overflow: hidden;
  }

  .articles-item:nth-child(2) {
    margin-top: 0;
  }

  .articles-item__image {
    left: -20px;
  }
  .articles-item__image img {
    width: 190px;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .articles-item__image {
    left: -30px;
  }

  .articles-item__info-description--desktop {
    display: none;
  }

  .articles-item__info-description--mobile {
    display: block;
  }
}

/*********
 * LOANS *
 *********/

.loans {
  margin: 40px auto 0 auto;
}

/* loans item */
.loans-items {
  display: flex;
  justify-content: center;
}

.loans-item {
  margin: 0 5px;
  padding: 15px 15px;

  width: min(100%, 540px);

  display: flex;
  flex-direction: column;

  background-color: #fff;
  border-radius: 10px;
}

/* info */
.loans-item__info {
  display: flex;
  flex-direction: column;
}

/* info head */
.loans-item__info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loans-item__info-head__description {
  display: flex;
  align-items: center;
  flex-direction: row;
}

/* info-head logo */
.loans-item__info-head__logo {
  width: 50px;
  height: 50px;
  min-width: 50px;

  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #b7b7b7;
  border-radius: 5px;
}

.loans-item__info-head__logo img {
  object-position: center;
  width: 80%;
}

/* info-head title */
.loans-item__info-head__title {
  margin-left: 15px;
}

.loans-item__info-head__title-number {
  font-size: 16px;
  font-weight: 500;
}

/* info-head card */
.loans-item__info-head__title-card {
  font-size: 12px;
  color: #727272;
  font-weight: 400;
}

/* info-head status */
.loans-item__info-head__status {
  width: min(100%, 158px);
  padding: 8px 15px;
}

.loans-item__info-head__status::after {
  content: url('/assets/img/arrows/purple.svg');
  margin-left: 13px;
  font-size: 12px;
}

/* info-head media */
@media (max-width: 480px) {
  .loans-item__info-head {
    flex-direction: column;
  }

  .loans-item__info-head__status {
    width: 100%;
    margin-top: 15px;
  }
}

/* body */
.loans-item__info-body {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loans-item__info-body__list {
  width: 100%;
  display: flex;
}

/* body list */
.loans-item__info-body__list-keys {
  line-height: 120%;
}

.loans-item__info-body__list-key {
  font-size: 10px;
  color: var(--font-gray);
}

.loans-item__info-body__list-values {
  margin-left: 15px;
  line-height: 120%;
}

.loans-item__info-body__list-value {
  font-size: 12px;
}

/* body buttons */
.loans-item__info-body__buttons {
  width: 100%;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.loans-item__info-body__buttons button {
  height: 36px;
  width: 100%;

  font-size: 12px;
}

.loans-item__info-body__buttons form {
  width: 100%;
}

/* body media */
@media (max-width: 480px) {
  .loans-item__info-body {
    flex-direction: column;
  }

  .loans-item__info-body__buttons button {
    width: 100%;
    gap: 4px;
  }

  .loans-item__info-body__buttons button:first-child {
    margin-top: 15px;
  }
}

/* history */
.loans-item__history {
  margin-top: 20px;

  border-top: 1px solid #f0f0f0;
}

/* head */
.loans-item__history-head {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loans-item__history-head__title {
  font-size: 16px;
  font-weight: 500;
}

.loans-item__history-head__button {
  min-width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #6a6a6a;
  border-radius: 5px;
}

.loans-item__history-head__button img {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.loans-item__history-head__button img.active {
  transform: rotate(0deg);
}
/* body */
.loans-item__history-body {
  margin-top: 10px;
  max-height: 0;

  font-size: 14px;

  overflow: hidden;
  transition: max 0.3s ease-out;
}

.loans-item__history-body.active {
  display: block !important;
  max-height: 500px;
}

/* documents */
.loans-item__documents {
  margin: 20px 0 10px 0;

  border-top: 1px solid #f0f0f0;
}

/* head */
.loans-item__documents-head {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loans-item__documents-head__title {
  font-size: 16px;
  font-weight: 500;
}

.loans-item__documents-head__button {
  min-width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #6a6a6a;
  border-radius: 5px;
}

.loans-item__documents-head__button img {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.loans-item__documents-head__button img.active {
  transform: rotate(0deg);
}
/* body */
.loans-item__documents-body {
  margin-top: 10px;
  max-height: 0;

  font-size: 14px;

  overflow: hidden;
  transition: max 0.3s ease-out;
}

.loans-item__documents-body.active {
  display: block !important;
  max-height: 500px;
}

.loans-input {
  border: 1px solid #000000;
  margin-bottom: 15px;
  width: 100%;
}

/**********
 * FOOTER *
 **********/

.footer {
  width: 100%;
  background-color: #fff;
}

.footer-container {
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) 20px 20px 20px;

  display: flex;
  flex-direction: column;
}

/* footer faq */
.footer-faq {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* footer faq logo */
.footer-faq__logo img {
  width: 100%;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

/* footer faq phone */
.footer-faq__phone {
  font-size: 18px;
}

.footer-faq__phone a {
  font-weight: 600;
}

.footer-faq__phone p {
  color: #212529;
}

/* footer faq time */
.footer-faq__time p {
  color: #212529;
  font-size: 18px;
}

.footer-faq__time p:nth-of-type(1) {
  font-weight: 600;
}

/* footer faq answer */
.footer-faq__answer {
  display: flex;
  flex-direction: column;
}

.footer-faq__answer {
  font-size: clamp(14px, 2.2vw, 22px);
  line-height: 180%;
}

/* footer faq media */
@media (max-width: 800px) {
  .footer-faq__answer {
    display: none;
  }
}

@media (max-width: 666px) {
  .footer-faq {
    flex-direction: column;
    align-items: start;
  }

  .footer-faq__phone {
    margin-top: 30px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
  }

  .footer-faq__phone p:nth-of-type(2) {
    margin-left: 22px;
  }

  .footer-faq__phone p:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .footer-faq__time {
    margin-top: 30px;
  }
}

@media (max-width: 370px) {
  .footer-faq__phone {
    display: flex;
    flex-direction: column;
  }

  .footer-faq__phone p:nth-of-type(2) {
    margin-left: 0;
  }
}

/* documents */
.footer-documents {
  margin-top: 30px;
  padding: clamp(20px, 4.5vw, 45px);

  display: flex;
  gap: 30px;

  background-color: #EFFFF3;
  border-radius: 22px;
}

/* document items */
.footer-documents__items {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;

  font-size: 9px;
}
.footer-documents__item {
  display: flex;
  flex-direction: column;
  gap: 24px;

  line-height: 150%;
}

/* media */
@media (max-width: 370px) {
  .footer-documents {
    flex-direction: column;
  }
}

/* contacts */
.footer-contacts {
  margin-top: clamp(30px, 4.5vw, 45px);

  font-size: clamp(8px, 1.2vw, 12px);
  line-height: 160%;
  color: #5c5c5c;
}

.sbp__list {
  z-index: 999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sbp__list-bg {
  cursor: pointer;
  position: fixed;
  z-index: 1;
  background-color: rgba(0, 0, 0, .5);
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
}

.sbp__list-body {
  border-radius: 16px;
  padding: 16px 24px;
  position: relative;
  z-index: 2;
  height: 60vh;
  width: 400px;
  background: #f4eaff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.sbp__list-search {
  width: 100%;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 24px;
  padding: 0 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.sbp__list-banks {
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 52px;
  gap: 12px;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 18px;
  padding: 12px 6px;
}

.sbp__list-banks::-webkit-scrollbar {
  display: none;
}

.sbp__list-banks-item {
  width: 100%;
  height: 52px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 6px;
  border-radius: 8px;
}

.sbp__list-banks-item.selected {
  background-color: #f4eaff;
}

.sbp__list-banks-item-icon {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.sbp__list-banks-item-name {
  font-size: 18px;
  font-weight: 500;
  margin: 0!important;
}

@media (max-width: 600px) {
  .sbp__list-body {
    padding: 12px 18px;
    width: calc(100% - 30px);
  }

  .sbp__list-search {
    padding: 0 12px;
    margin-bottom: 12px;
  }
}

.sbp-text {
  color: #00c4f1;
  cursor: pointer;
  margin-top: 8px;
}

.btn.sbp-text {
  color: #fff;
}

.sbp-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.sbp-label img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.btn-accept-contract, .btn-accept-contract:hover, .btn-accept-contract:focus, .btn-accept-contract:active {
  background-color: rgb(255, 111, 25);
  color: #fff;
  font-weight: 600;
}
