.e944c814-5975-47b4-aff4-0feb8801d3a3 {
  --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;
}

.e944c814-5975-47b4-aff4-0feb8801d3a3 *,
.e944c814-5975-47b4-aff4-0feb8801d3a3 *::before,
.e944c814-5975-47b4-aff4-0feb8801d3a3 *::after {
  box-sizing: border-box;
}

/* Мобільний вигляд за замовчуванням */
.l5f03801-60d2-4b82-971f-9eb4e294847b {
  display: none;
}

.mf62d984-4941-4ece-afc3-bfc187c82de9 {
  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);
}

.mf62d984-4941-4ece-afc3-bfc187c82de9:first-child {
  border-top: 0;
}

.mf62d984-4941-4ece-afc3-bfc187c82de9:hover {
  position: relative;
  z-index: 1;
  background: #fafaff;
  box-shadow: 0 5px 18px rgba(49, 43, 122, 0.1);
}

.hee23ee4-f9ec-4bcc-9351-7d969c4107e3 {
  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;
}

.mf62d984-4941-4ece-afc3-bfc187c82de9:nth-child(1) .hee23ee4-f9ec-4bcc-9351-7d969c4107e3 {
  color: #6a4800;
  background: var(--ft-yellow);
}

.mf62d984-4941-4ece-afc3-bfc187c82de9:nth-child(2) .hee23ee4-f9ec-4bcc-9351-7d969c4107e3 {
  color: #3d4863;
  background: #e2e5eb;
}

.mf62d984-4941-4ece-afc3-bfc187c82de9:nth-child(3) .hee23ee4-f9ec-4bcc-9351-7d969c4107e3 {
  color: #714425;
  background: #eab685;
}

.g4705593-9155-4ff2-b661-1588c3478566 {
  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;
}

.g4705593-9155-4ff2-b661-1588c3478566 img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.a0aae1e8-0b2d-4ae1-9ec6-4ea9beeca77b {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.gc890b42-0573-47ad-9747-dab0a18164b2,
.gc890b42-0573-47ad-9747-dab0a18164b2: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;
}

.gc890b42-0573-47ad-9747-dab0a18164b2:hover {
  color: var(--ft-purple) !important;
  text-decoration: underline !important;
}

.i1efdf2c-35e4-44aa-9f7a-d4a5f7379d6a {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ft-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.m30a9469-8eaa-40d8-8a35-4ab2a3044da8 {
  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;
}

.fcc74335-f6d4-46f3-8199-e3e29ec9dd08 {
  margin-right: 3px;
  color: var(--ft-yellow);
  font-size: 17px;
}

.m30a9469-8eaa-40d8-8a35-4ab2a3044da8 strong {
  font-size: 16px;
}

.m30a9469-8eaa-40d8-8a35-4ab2a3044da8 span:last-child {
  color: var(--ft-muted);
  font-size: 11px;
  font-weight: 700;
}

.e0c22c37-894b-480d-9f72-4c2a27230251,
.e0c22c37-894b-480d-9f72-4c2a27230251: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;
}

.e0c22c37-894b-480d-9f72-4c2a27230251:hover {
  color: #ffffff !important;
  background: var(--ft-orange-dark);
  border-color: var(--ft-orange-dark);
}

.e6a651d8-730b-4f36-81cb-065ef90aa612 {
  padding: 16px 12px;
  text-align: center;
  background: var(--ft-page);
  border-top: 1px solid var(--ft-line);
}

.e6a651d8-730b-4f36-81cb-065ef90aa612 button,
.e6a651d8-730b-4f36-81cb-065ef90aa612 a,
.e6a651d8-730b-4f36-81cb-065ef90aa612 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;
}

.e6a651d8-730b-4f36-81cb-065ef90aa612 button:hover,
.e6a651d8-730b-4f36-81cb-065ef90aa612 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;
  }
}