.l5d42e5a-00bf-403c-9e14-358354455e11 {
  --ft-indigo: #5148cf;
  --ft-purple: #7a45dc;
  --ft-ink: #202233;
  --ft-text: #303348;
  --ft-muted: #747991;
  --ft-orange: #f47d36;
  --ft-orange-dark: #db6220;
  --ft-yellow: #f7bd3c;
  --ft-line: #e3e5ef;
  --ft-surface: #ffffff;
  --ft-page: #f5f6fb;

  width: 100%;
  margin: 24px 0 32px;
  overflow: hidden;
  color: var(--ft-text);
  background: var(--ft-surface);
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  container-type: inline-size;
}

.l5d42e5a-00bf-403c-9e14-358354455e11 *,
.l5d42e5a-00bf-403c-9e14-358354455e11 *::before,
.l5d42e5a-00bf-403c-9e14-358354455e11 *::after {
  box-sizing: border-box;
}

/* Мобільний вигляд за замовчуванням */
.j63ba086-5da6-4488-afab-4619c34c7b7a {
  display: none;
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d {
  display: grid;
  grid-template-columns: 32px 76px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  background: var(--ft-surface);
  border-top: 1px solid var(--ft-line);
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d:first-child {
  border-top: 0;
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d:hover {
  position: relative;
  z-index: 1;
  background: #fafaff;
  box-shadow: 0 5px 18px rgba(49, 43, 122, 0.1);
}

.g46c7bae-d405-40e6-b18f-9b8e57702c40 {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ft-indigo);
  background: #efedff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d:nth-child(1) .g46c7bae-d405-40e6-b18f-9b8e57702c40 {
  color: #6a4800;
  background: var(--ft-yellow);
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d:nth-child(2) .g46c7bae-d405-40e6-b18f-9b8e57702c40 {
  color: #3d4863;
  background: #e2e5eb;
}

.a561f8e9-78f3-4fc5-9ca9-714518d95a6d:nth-child(3) .g46c7bae-d405-40e6-b18f-9b8e57702c40 {
  color: #714425;
  background: #eab685;
}

.pd38f90e-d025-4c5c-ad04-ffd7b72a8770 {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 62px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--ft-line);
  border-radius: 7px;
  text-decoration: none;
}

.pd38f90e-d025-4c5c-ad04-ffd7b72a8770 img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.g101c540-cb97-4610-9c8b-b1dc3bdd4556 {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.gdddc4c7-1bd6-46fa-9cab-70320dbee1f1,
.gdddc4c7-1bd6-46fa-9cab-70320dbee1f1:visited {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ft-ink) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  text-decoration: none !important;
}

.gdddc4c7-1bd6-46fa-9cab-70320dbee1f1:hover {
  color: var(--ft-purple) !important;
  text-decoration: underline !important;
}

.g4c1058d-d59d-4688-8d5b-4b5bc46a2699 {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ft-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.bf0e891d-cb5f-441d-9eeb-205d39a09a11 {
  display: flex;
  grid-column: 3;
  grid-row: 2;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  color: var(--ft-ink);
  font-size: 13px;
  white-space: nowrap;
}

.e3ce4e93-ccb3-423e-aaab-dd65503a6dbd {
  margin-right: 3px;
  color: var(--ft-yellow);
  font-size: 17px;
}

.bf0e891d-cb5f-441d-9eeb-205d39a09a11 strong {
  font-size: 16px;
}

.bf0e891d-cb5f-441d-9eeb-205d39a09a11 span:last-child {
  color: var(--ft-muted);
  font-size: 11px;
  font-weight: 700;
}

.c20532d3-8915-402f-b45b-753b8a2ee1dc,
.c20532d3-8915-402f-b45b-753b8a2ee1dc:visited {
  display: inline-flex;
  grid-column: 2 / 4;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 3px;
  padding: 10px 12px;
  color: #ffffff !important;
  background: var(--ft-orange);
  border: 2px solid var(--ft-orange);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
}

.c20532d3-8915-402f-b45b-753b8a2ee1dc:hover {
  color: #ffffff !important;
  background: var(--ft-orange-dark);
  border-color: var(--ft-orange-dark);
}

.j87299a3-f799-4190-aaf3-40968a3e4eae {
  padding: 16px 12px;
  text-align: center;
  background: var(--ft-page);
  border-top: 1px solid var(--ft-line);
}

.j87299a3-f799-4190-aaf3-40968a3e4eae button,
.j87299a3-f799-4190-aaf3-40968a3e4eae a,
.j87299a3-f799-4190-aaf3-40968a3e4eae a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 20px;
  color: var(--ft-indigo) !important;
  background: #ffffff;
  border: 2px solid var(--ft-indigo);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
}

.j87299a3-f799-4190-aaf3-40968a3e4eae button:hover,
.j87299a3-f799-4190-aaf3-40968a3e4eae a:hover {
  color: #ffffff !important;
  background: var(--ft-indigo);
}

/* Таблиця для широкого контейнера */
@container (min-width: 760px) {
  .ft-brands__header,
  .ft-brand {
    display: grid;
    grid-template-columns: 42px 140px minmax(180px, 1fr) 84px 124px;
    gap: 16px;
    align-items: center;
  }

  .ft-brands__header {
    min-height: 54px;
    padding: 0 20px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--ft-indigo), var(--ft-purple));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .ft-brands__rank-title,
  .ft-brands__rating-title {
    text-align: center;
  }

  .ft-brand {
    min-height: 108px;
    padding: 14px 20px;
  }

  .ft-brand__rank {
    grid-column: auto;
    grid-row: auto;
    width: 32px;
    height: 32px;
    margin: auto;
    font-size: 14px;
  }

  .ft-brand__logo {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: 74px;
    padding: 8px 12px;
  }

  .ft-brand__details {
    grid-column: auto;
    grid-row: auto;
    overflow: visible;
  }

  .ft-brand__name,
  .ft-brand__name:visited {
    font-size: 18px;
  }

  .ft-brand__bonus {
    margin-top: 6px;
    font-size: 13px;
  }

  .ft-brand__rating {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    font-size: 14px;
  }

  .ft-brand__rating strong {
    font-size: 17px;
  }

  .ft-brand__cta,
  .ft-brand__cta:visited {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-height: 42px;
    margin-top: 0;
    padding: 10px 14px;
  }

  .ft-brands__more {
    padding: 20px;
  }

  .ft-brands__more button,
  .ft-brands__more a {
    width: auto;
  }
}