.bookmaker-cards-list {
  display: grid;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  gap: 14px;
}

.bookmaker-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)), var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bookmaker-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 49, 90, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.bookmaker-card__position {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: var(--accent);
  border-radius: 14px 0 12px 0;
  box-shadow: 0 8px 20px rgba(255, 49, 90, 0.24);
}

.bookmaker-card__layout {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) minmax(350px, 390px) 180px;
  align-items: stretch;
  min-height: 176px;
}

.bookmaker-card__brand,
.bookmaker-card__bonus,
.bookmaker-card__details,
.bookmaker-card__action {
  position: relative;
  min-width: 0;
}

.bookmaker-card__brand,
.bookmaker-card__bonus,
.bookmaker-card__action {
  display: flex;
  min-height: 176px;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
}

.bookmaker-card__bonus::before,
.bookmaker-card__details::before,
.bookmaker-card__action::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: var(--line);
}

.bookmaker-card__brand {
  align-items: center;
  gap: 9px;
  padding: 20px 16px 16px 26px;
  text-align: center;
}

.bookmaker-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 84px;
}

.bookmaker-card__logo,
.bookmaker-card__logo-placeholder {
  width: 108px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.bookmaker-card__logo {
  display: block;
  margin: 0 !important;
  object-fit: contain;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.bookmaker-card__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.bookmaker-card__rating {
  width: 100%;
}

.bookmaker-card__rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bookmaker-card__rating-row strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.bookmaker-card__stars {
  color: #f5b942;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.bookmaker-card__bonus {
  align-items: flex-start;
  text-align: left;
}

.bookmaker-card__column-label {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 16px;
  margin: 0 0 9px;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bookmaker-card__bonus-value {
  position: relative;
  width: 100%;
  max-width: 270px;
  padding-left: 15px;
  color: var(--text);
  font-size: clamp(18px, 1.65vw, 21px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.bookmaker-card__bonus-value::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 49, 90, 0.26);
}

.bookmaker-card__details {
  display: flex;
  align-items: center;
  min-height: 176px;
  padding: 20px;
  gap: 40px;
}

.bookmaker-card__details > .bookmaker-card__column {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  border: 0;
}

.bookmaker-card__promo {
  flex: 0 0 43%;
}

.bookmaker-card__payments {
  flex: 1 1 57%;
  overflow: visible;
}

.bookmaker-card__payments::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 1px;
  background: var(--line);
}

.bookmaker-card__code {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  gap: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.022);
  border: 1px dashed rgba(255, 49, 90, 0.38);
  border-radius: 9px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.bookmaker-card__code span {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bookmaker-card__code small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}

.bookmaker-card__code:hover,
.bookmaker-card__code.is-copied {
  color: #fff;
  background: rgba(255, 49, 90, 0.075);
  border-color: rgba(255, 49, 90, 0.58);
}

.bookmaker-card__code.is-copied span,
.bookmaker-card__code.is-copied small,
.bookmaker-table__code.is-copied span,
.bookmaker-table__code.is-copied small {
  visibility: hidden;
}

.bookmaker-card__code.is-copied::after,
.bookmaker-table__code.is-copied::after {
  content: 'Скопировано ✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.bookmaker-card__payment-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.bookmaker-card__payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.bookmaker-card__payment-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  color: var(--text);
  font-size: 9px;
  font-weight: 850;
  background: rgba(255, 49, 90, 0.08);
  border: 1px solid rgba(255, 49, 90, 0.2);
  border-radius: 999px;
}

.bookmaker-card__empty {
  color: var(--muted-soft);
  font-size: 14px;
}

.bookmaker-card__action {
  align-items: center;
}

.bookmaker-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(255, 49, 90, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bookmaker-card__button:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow:
    0 14px 30px rgba(255, 49, 90, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 1000px) and (min-width: 681px) {
  .bookmaker-cards-list {
    max-width: 760px;
  }

  .bookmaker-card__layout {
    grid-template-columns: 150px minmax(0, 1fr) 170px;
    grid-template-areas:
      'brand bonus action'
      'details details details';
    min-height: 0;
  }

  .bookmaker-card__brand {
    grid-area: brand;
    min-height: 150px;
    padding: 18px 14px 15px 24px;
  }

  .bookmaker-card__bonus {
    grid-area: bonus;
    min-height: 150px;
    padding: 18px;
  }

  .bookmaker-card__details {
    grid-area: details;
    min-height: 0;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
  }

  .bookmaker-card__action {
    grid-area: action;
    min-height: 150px;
    padding: 18px 16px;
  }

  .bookmaker-card__details::before {
    display: none;
  }

  .bookmaker-card__logo-wrap {
    min-height: 68px;
  }

  .bookmaker-card__logo,
  .bookmaker-card__logo-placeholder {
    width: 88px;
    height: 68px;
  }

  .bookmaker-card__rating-row strong {
    font-size: 17px;
  }

  .bookmaker-card__stars {
    font-size: 9px;
  }

  .bookmaker-card__bonus-value {
    max-width: 250px;
    font-size: 18px;
  }

  .bookmaker-card__button {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .bookmaker-cards-list {
    max-width: 100%;
    gap: 12px;
  }

  .bookmaker-card {
    border-radius: 14px;
  }

  .bookmaker-card__position {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .bookmaker-card__layout {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      'brand bonus'
      'details details'
      'action action';
    min-height: 0;
  }

  .bookmaker-card__brand {
    grid-area: brand;
    min-height: 0;
    padding: 16px 10px 13px;
    gap: 6px;
  }

  .bookmaker-card__bonus {
    grid-area: bonus;
    min-height: 0;
    padding: 16px 14px;
  }

  .bookmaker-card__details {
    grid-area: details;
    min-height: 0;
    padding: 11px 13px;
    gap: 12px;
    border-top: 1px solid var(--line);
  }

  .bookmaker-card__action {
    grid-area: action;
    min-height: 0;
    padding: 11px 13px 13px;
    border-top: 1px solid var(--line);
  }

  .bookmaker-card__bonus::before,
  .bookmaker-card__details::before,
  .bookmaker-card__action::before,
  .bookmaker-card__payments::before {
    display: none;
  }

  .bookmaker-card__logo-wrap {
    min-height: 58px;
  }

  .bookmaker-card__logo,
  .bookmaker-card__logo-placeholder {
    width: 72px;
    height: 58px;
    border-radius: 10px;
  }

  .bookmaker-card__rating-row {
    gap: 5px;
  }

  .bookmaker-card__rating-row strong {
    font-size: 16px;
  }

  .bookmaker-card__stars {
    font-size: 8px;
  }

  .bookmaker-card__bonus-value {
    max-width: none;
    font-size: 17px;
    line-height: 1.3;
  }

  .bookmaker-card__details > .bookmaker-card__column {
    min-height: 0;
  }

  .bookmaker-card__promo {
    flex: 0 1 42%;
  }

  .bookmaker-card__payments {
    flex: 1 1 58%;
  }

  .bookmaker-card__column-label {
    min-height: 0;
    margin-bottom: 7px;
    font-size: 8px;
  }

  .bookmaker-card__code {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 8px;
  }

  .bookmaker-card__code span {
    font-size: 11px;
  }

  .bookmaker-card__payment-list {
    gap: 4px;
  }

  .bookmaker-card__payment {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .bookmaker-card__payment-count {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 8px;
  }

  .bookmaker-card__button {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .bookmaker-card__layout {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .bookmaker-card__brand {
    padding: 15px 8px 12px;
  }

  .bookmaker-card__bonus {
    padding: 14px 11px;
  }

  .bookmaker-card__logo-wrap {
    min-height: 52px;
  }

  .bookmaker-card__logo,
  .bookmaker-card__logo-placeholder {
    width: 64px;
    height: 52px;
  }

  .bookmaker-card__rating-row {
    flex-direction: column;
    gap: 3px;
  }

  .bookmaker-card__rating-row strong {
    font-size: 15px;
  }

  .bookmaker-card__bonus-value {
    padding-left: 12px;
    font-size: 15px;
  }

  .bookmaker-card__bonus-value::before {
    width: 2px;
  }

  .bookmaker-card__details {
    padding: 10px;
    gap: 9px;
  }

  .bookmaker-card__promo {
    flex-basis: 40%;
  }

  .bookmaker-card__payments {
    flex-basis: 60%;
  }

  .bookmaker-card__code {
    min-height: 36px;
    padding: 6px 8px;
  }

  .bookmaker-card__code span {
    font-size: 10px;
  }

  .bookmaker-card__payment {
    min-height: 22px;
    padding: 4px 6px;
    font-size: 7.5px;
  }

  .bookmaker-card__payment-count {
    min-width: 22px;
    height: 22px;
    font-size: 7.5px;
  }

  .bookmaker-card__action {
    padding: 10px;
  }

  .bookmaker-card__button {
    min-height: 42px;
    font-size: 12px;
  }
}

@media (hover: none) {
  .bookmaker-card:hover,
  .bookmaker-card__button:hover {
    transform: none;
  }
}
