@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Montserrat:wght@400;700&display=swap");
* {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.3;
  list-style: none;
  letter-spacing: 0.02em;
  font-weight: normal;
  outline: none;
  border-collapse: collapse;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -o-text-size-adjust: none;
  position: relative;
  background-color: #f9f9f9;
  min-height: 100vh;
  overflow-anchor: none;
}
body,
body a {
  color: #282828;
}
body.scroll-off {
  overflow: hidden;
}
strong,
.flex {
  display: flex;
  align-items: normal;
}
.duration {
  transition-duration: 0.3s;
}

/* header */
header {
  padding: 16px 0 18px 20px;
}

/* logo */
#logo {
	margin-right: auto;
	padding-right: 20px;
	max-width: 200px;
}
#logo svg,
#logo img {
	object-fit: contain;
	width: 100%;
	height: 100%;
	max-height: 50px;
}
/* /logo */

/* title */
#title {
  padding: 20px;
  text-align: center;
  background: #282828;
  color: #ffffff;
}
#title .color {
  background: #3c88e4;
  padding: 30px 20px;
  color: #ffffff;
}
#title h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 10px;
}
#title p {
  font-size: 14px;
  line-height: 16px;
  color: #fff;
  margin: 0 auto;
}
#title h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 22px;
  padding: 40px 0 20px;
}
/* /title */

/* content */
#content {
  padding: 25px 20px 45px;
  overflow: hidden;
}
#content .items {
  flex-direction: column;
}
#content .item {
  box-shadow: 0px 3px 10px 2px rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 10px 20px 16px;
  flex-direction: column;
  font-size: 12px;
  position: relative;
  margin-bottom: 20px;
  background: #fff;
}
#content .item .info {
  overflow: hidden;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid #282828;
  padding: 8px 0 10px;
}
#content .item .info:first-child {
  font-weight: 700;
}
#content .item .logo {
  overflow: hidden;
  height: 34px;
  margin: 0 0 8px;
}
#content .item .logo svg,
#content .item .logo img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  object-position: 0 50%;
}
.td_price p {
  font-weight: 700;
  font-size: 22px;
}
#content .item .text {
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  /* Добавляем отступ между колонками при необходимости*/
}
.text-col-left, .text-col-right {
    display: flex;
    flex-direction: column;
    gap: 4px; /* небольшой отступ между строчками */
}

#content .item .text .td {
  flex-direction: row;
  align-items: center;
}
#content .item .text .td p {
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  flex-grow: 1;
  align-self: center;
}
#content .item .item-btn {
  position: relative;
  z-index: 20;
}
#content .item .item-btn .btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  line-height: 50px;
  text-align: center;
  letter-spacing: -0.01em;
  color: #fff;
  background: #80bb4e;
  border-radius: 7px;
}
#content .item .item-btn .btn:hover {
  background-color: #282828;
}
#content .item .link {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
}

#content .item .info:first-child {
  font-weight: 700;
}
/* /content */

/* footer */
footer {
  padding: 20px;
  background-color: #282828;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
}
/* /footer */

@media (min-width: 360px) {
  #title h1 {
    font-size: 24px;
    line-height: 29px;
  }
  #title h2 {
    font-size: 24px;
    line-height: 29px;
  }
}

@media (min-width: 720px) {
  #title {
    padding: 30px;
  }
  #title .color {
    padding: 50px;
  }
  #title h1 {
    font-size: 30px;
    line-height: 37px;
  }
  #title p {
    width: unset;
  }
  #title h2 {
    padding: 20px 0 0;
  }
  #content .items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #content .item {
    width: calc(50% - 50px);
  }
  footer {
    padding: 40px 20px;
  }
}

@media (min-width: 1024px) {
  header {
    padding: 31px 0 29px 108px;
  }
  #title .color {
    padding: 70px;
  }
  #title h1 {
    font-size: 38px;
    line-height: 49px;
  }
  #title p {
    font-size: 16px;
    line-height: 18px;
  }
  #title h2 {
    padding: 50px 0 30px;
    font-size: 36px;
    line-height: 44px;
  }
  #content {
    padding: 40px 60px;
    overflow: hidden;
  }
  #content .item {
    padding: 15px 10px 16px;
  }
  #content .items {
    justify-content: center;
    margin: 0 -10px;
  }
  #content .item {
    width: calc(33% - 60px);
    margin: 0 3.5px 7px;
  }
  #content .item .text .td p {
    font-size: 14px;
  }
  .td_price p {
    font-size: 24px;
  }
  .addOffer_fastcredit {
    padding: 0 100px !important;
  }
}

@media (min-width: 1600px) {
  header {
    padding: 31px 0 29px 198px;
  }
  .inner {
    margin: 0 auto;
  }
  #title .color {
    padding: 70px;
  }
  #title h1 {
    font-size: 44px;
    line-height: 58px;
  }
  #content {
    padding: 40px 57px;
  }
  #content .item {
    width: calc(25% - 120px);
    margin: 0 16px 24px;
    padding: 15px 17.5px 16px;
  }
  footer {
    padding: 50px 20px;
  }
  .addOffer_fastcredit {
    padding: 0 168px !important;
  }
}

.offer-hidden {
    display: none;
}

/* Стили для кнопки "Показать еще" */
.show-more-button {
    display: inline-block;
    margin: 6px auto 20px auto; 
    padding: 10px 20px;
    border: none;
    border-radius: 14px; 
    background: #282828; 
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-align: center;
}
.show-more-button img {
    width: 14px;
    height: 14px;
    margin-right: 10px;
    object-fit: contain;
}

.show-more-button:hover {
    background-color: #80bb4e;
}

.offers-footer__title {
    letter-spacing: normal; 
}

.offer-pulse {
  position: relative;
  transition: all 0.2s ease;
}

/* Класс, запускающий анимацию пульсации */
.offer-pulse-active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.1);
  animation: pulse-animation 1s ease-out;
}

@keyframes pulse-animation {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Добавляем ripple для элементов с атрибутом anim="ripple" */
[anim="ripple"] {
    position: relative;
    overflow: hidden;
}

/* Ripple-псевдоэлемент */
[anim="ripple"]::before {
    content: '';
    position:absolute;
    display: block;
    background: var(--ripple-background, white);      
    border-radius: 50%;
    pointer-events: none; 
    top: calc(var(--y) * 1px);
    left: calc(var(--x) * 1px);
    width:  calc(var(--d) * 1px);
    height: calc(var(--d) * 1px);
    opacity: calc(var(--o, 1) * var(--ripple-opacity, 0.3));                
    transition: calc(var(--t, 0) * var(--ripple-duration, 600ms)) var(--ripple-easing,linear);   
    transform: translate(-50%, -50%) scale(var(--s, 1));
    transform-origin: center;
}

/* Исходные стили для кнопок */
.duration.btn.color {
   /* Добавьте сюда исходные стили кнопок, если необходимо */
}

.copyright {
    margin-top: auto
}

.copyright__owner {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, .031372549)
}

@media (min-width: 992px) {
    .copyright__owner {
        padding: 20px 0
    }
}

.copyright__owner-text {
    font-size: 14px;
    line-height: 115%;
    letter-spacing: .02em;
    color: rgba(0, 0, 0, .7490196078);
    text-align: center
}

.copyright__info {
    padding: 10px 0;
    background-color: #000
}

@media (min-width: 992px) {
    .copyright__info {
        padding: 20px 0
    }
}

.copyright__info-text {
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    line-height: 115%;
    color: rgba(255, 255, 255, .6235294118);
    text-align: center
}

@media (min-width: 992px) {
    .copyright__info-text {
        font-size: 14px
    }
}

.offer-badge {
  margin: 5px 0;
  padding: 5px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  /* Фон и цвет текста задаются inline */
}

#content .item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#content .item .logo {
    margin-bottom: 5px;
}

#content .item .info {
    margin-top: 8px; /* небольшой отступ сверху, чтобы плашка была над разделительной линией */
}

#content .item .text {
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.text-col-left, .text-col-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Остальные стили остаются такими же, как были */
