

/* category */

  .block-categories {
    font-family: 'Montserrat', sans-serif;
    max-width: 1390;
    padding: 15px;
  }


  .block-categories__title {
    font-weight: 600;
    font-size: 22px;
    line-height: 27px;
    color: #9f9faa;
  }


  .block-categories__list {
    display: flex;
    padding: 0;
    margin: 0 0 48px;
    list-style-type: none;
    gap: 12px;
    flex-wrap: wrap;
  }

  .block-categories__item {
    width: calc(25% - 9px);
    min-height: 166px;
    flex-grow: 1;
    overflow: hidden;
    transition: transform 0.4s ease;
    
  }

  .categories-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 16px 16px 0px 16px;
    background: #FFFFFF;
    text-decoration: none;
    gap: 10px;
    font-weight: 500;
  }

  .categories-card__title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #000;
  }

  .categories-card__img {
    margin: auto 20px 0 auto;
    height: 106px;
    width: 178px;
  }


  .block-categories__item:hover {
    transform: scale(1.03);
  }


  
/* кнопка */

.btn {
  display: flex;
  justify-content: center;
  width: 100%;
}


.gradient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 370px;
  height: 58px;
  box-sizing: border-box;
  padding: 0 24px;
  text-decoration: none;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0B2571; 
  position: relative;
  z-index: 1;
  transition: color 0.6s ease;
}

.gradient-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; 
  background: linear-gradient(90deg, #0B2571, #5782FF, #0B2571);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: opacity 0.6s ease;
}

@media (hover: hover) {
  .gradient-btn:hover {
    color: #FFFFFF; 
    background: linear-gradient(90deg, #0B2571, #5782FF, #0B2571);
  }
  .gradient-btn:hover::before {
    opacity: 0; 
  }
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}



/* money categories */


  .block-moneycat {
    font-family: 'Montserrat', sans-serif;
    max-width: 1390;
    padding: 15px;
  }


  .block-moneycat__title {
    font-weight: 600;
    font-size: 22px;
    line-height: 27px;
    color: #9f9faa;
  }


  .block-moneycat__list {
    display: flex;
    padding: 0;
    margin: 0 0 48px;
    list-style-type: none;
    gap: 12px;
    flex-wrap: wrap;
  }

  .block-moneycat__item {
    width: calc(25% - 9px);
    min-height: 166px;
    flex-grow: 1;
    overflow: hidden;
    transition: transform 0.4s ease;
    
  }

  .cat-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 16px 16px 0px 16px;
    background: #ededef;
    text-decoration: none;
    gap: 10px;
    font-weight: 500;
  }

  .cat-card__title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #000;
  }

  .cat-card__img {
    margin: auto 20px 0 auto;
    height: 106px;
    width: 178px;
  }


  .block-moneycat__item:hover {
    transform: scale(1.03);
  }


@media (max-width: 1000px) {
    .block-categories__item {
      width: calc(33.33% - 16px);
  }
    .block-moneycat__list {
    display: flex;
    flex-wrap: wrap; 
    gap: 16px;
  }
  .block-moneycat__item {
    width: calc(50% - 16px); 
  }
  
  
}

@media (max-width: 750px) {
    .block-categories__item {
      width: calc(50% - 6px);
  }
  
}


@media (max-width: 500px) {
  .categories-card__img {
    width: 160px;
    height: auto;
  }

  .block-categories__item {
    min-height: 140px;
  }

  .categories-card__title {
    font-size: 14px;
  }
  .cat-card__img {
    width: 160px;
    height: auto;
  }

  .block-moneycat__item {
    min-height: 140px;
  }

  .cat__title {
    font-size: 14px;
  }
}
