/* main-brands / faces «Обличчя» (template/blocks/main-brands/faces.twig): a wall of tiles — each brand is its most popular product on the
   tone of its photo (.et-plane: --et-plane, --et-plane-text); a scene photo covers the tile and the plane rises under the name (the text
   keeps the plane's 4.5). The brand — a stage plane with the name and three hits with «Купити», a sticky bar of departments. Tokens only. */
.et-brands-fc__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-block: 0.25rem 1.5rem; }
.et-brands-fc__h {
  display: flex; align-items: flex-start; gap: 0.75rem; font-family: var(--et-font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
  font-style: var(--et-heading-style); line-height: 0.95; letter-spacing: -0.03em; overflow-wrap: anywhere;
}
.et-brands-fc__hn { padding-top: 0.3em; color: var(--et-text-secondary); font-size: 0.36em; font-weight: 600; font-variant-numeric: tabular-nums; }
.et-brands-fc__find { width: min(100%, 24rem); }
.et-brands-fc__roots { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.125rem; }
.et-brands-fc__roots::-webkit-scrollbar { display: none; }

/* the letters (more than 8 brands): a sticky bar, a letter keeps its brands (js/blocks/main-brands/_axes.js) */
.et-brands-fc__abc {
  position: sticky; top: var(--et-sticky-top, 0px); z-index: 5; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 1rem; padding-block: 0.375rem; background: var(--et-bg);
}
.et-brands-fc__abc::-webkit-scrollbar { display: none; }
.et-brands-fc__l {
  display: grid; flex: 1 0 2.75rem; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: var(--et-radius);
  color: var(--et-text); font-family: var(--et-font-display); font-weight: 700; text-decoration: none;
}
.et-brands-fc__l:hover { background: var(--et-surface); }
.et-brands-fc__l.is-on { background: var(--et-text); color: var(--et-bg); }
.et-brands-fc__l:focus-visible { outline: 2px solid var(--et-accent); outline-offset: -2px; }

/* the wall */
.et-brands-fc__wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.25rem), 1fr)); gap: 0.75rem; }
.et-brands-fc__wall > li { scroll-margin-top: calc(var(--et-sticky-top, 0px) + 4.5rem); }
.et-brands-fc__t {
  position: relative; isolation: isolate; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; aspect-ratio: 4 / 5; overflow: hidden; padding: 0.875rem 1rem 1rem;
  border-radius: calc(var(--et-radius) + 0.375rem); background: var(--et-plane); color: var(--et-plane-text); text-decoration: none;
}
.et-brands-fc__t::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 20%, color-mix(in oklab, var(--et-plane-text) 12%, transparent), transparent 60%); }
.et-brands-fc__ph { position: relative; height: 100%; }
.et-brands-fc__ph img { position: absolute; inset: 0; margin: auto; width: 82%; height: 100%; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.et-brands-fc__ph.is-framed { padding: 6%; }
.et-brands-fc__ph.is-framed img { position: static; width: 100%; }
.et-brands-fc__t:hover .et-brands-fc__ph img { transform: translateY(-0.375rem) scale(1.06); }
/* a scene photo covers the tile; the plane rises under the name */
.et-brands-fc__t.is-scene .et-brands-fc__ph { position: absolute; inset: 0; z-index: -1; }
.et-brands-fc__t.is-scene .et-brands-fc__ph img { width: 100%; }
.et-brands-fc__t.is-scene .et-brands-fc__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 42%, color-mix(in oklab, var(--et-plane) 94%, transparent) 78%); }
.et-brands-fc__t.is-scene:hover .et-brands-fc__ph img { transform: scale(1.05); }
.et-brands-fc__t.is-scene .et-brands-fc__n { grid-row: 2; }
.et-brands-fc__t.is-scene .et-brands-fc__c { grid-row: 3; }
.et-brands-fc__logo { align-self: center; justify-self: center; width: 70%; height: auto; aspect-ratio: 2; }
.et-brands-fc__ini { display: grid; place-items: center; font-family: var(--et-font-display); font-size: 6rem; font-weight: 800; opacity: 0.5; }
.et-brands-fc__n { margin-top: 0.625rem; font-family: var(--et-font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.et-brands-fc__c { font-size: var(--et-text-sm); opacity: 0.88; }
.et-brands-fc__t:focus-visible { outline: 3px solid var(--et-accent); outline-offset: 3px; }
.et-brands-fc__wall--few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); gap: 1rem; }
.et-brands-fc__wall--few .et-brands-fc__t { aspect-ratio: 3 / 4; padding: 1.25rem 1.375rem 1.375rem; }
.et-brands-fc__wall--few .et-brands-fc__n { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }

/* the brand: the stage */
.et-brands-fc__stage { padding-bottom: clamp(1.75rem, 4vw, 3rem); background: var(--et-plane); color: var(--et-plane-text); }
.et-brands-fc__in { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 2fr); gap: 1.5rem 3rem; align-items: end; padding-top: 1rem; }
.et-brands-fc__tx { display: grid; justify-items: start; gap: 0.875rem; }
.et-brands-fc__name {
  font-family: var(--et-font-display); font-size: clamp(3.25rem, 7vw, 7rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; overflow-wrap: anywhere; hyphens: auto;
}
.et-brands-fc__tx .et-brands__sum { opacity: 0.9; }
.et-brands-fc__trio { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; align-items: end; }
.et-brands-fc__it { position: relative; display: grid; align-content: end; gap: 0.375rem; min-width: 0; }
.et-brands-fc__iph { display: block; aspect-ratio: 1; border-radius: calc(var(--et-radius) + 0.375rem); background: color-mix(in oklab, var(--et-plane-text) 8%, transparent); }
.et-brands-fc__it:first-child .et-brands-fc__iph { aspect-ratio: 4 / 5; }
.et-brands-fc__iph .et-brands__pic { width: 100%; height: 100%; padding: 10%; }
.et-brands-fc__iph .et-brands__pic.is-framed { padding: 10%; background: none; }
.et-brands-fc__iph .et-brands__pic.is-scene { padding: 0; border-radius: inherit; overflow: hidden; }
.et-brands-fc__pn {
  display: -webkit-box; margin-top: 0.375rem; overflow: hidden; color: inherit; font-size: var(--et-text-base); line-height: 1.3; text-decoration: none;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.et-brands-fc__pn:hover { text-decoration: underline; }
.et-brands-fc__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.et-brands-fc__one { max-height: 26rem; }
.et-brands-fc__secs {
  position: sticky; top: var(--et-sticky-top, 0px); z-index: 5; border-bottom: var(--et-border-width) solid var(--et-border);
  background: color-mix(in oklab, var(--et-bg) 90%, transparent); backdrop-filter: blur(12px);
}
.et-brands-fc__secs .et-brands__secs { padding-block: 0.625rem; }

@media (max-width: 767.98px) {
  .et-brands-fc__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .et-brands-fc__n { font-size: 1.0625rem; }
  /* a long list (Baymard N3, audit 04.12: 391 brands two a row were 47 000 px): three smaller tiles a row */
  .et-brands-fc__wall:not(.et-brands-fc__wall--few) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .et-brands-fc__wall:not(.et-brands-fc__wall--few) .et-brands-fc__t { aspect-ratio: auto; grid-template-rows: 4rem auto auto; padding: 0.5rem 0.5rem 0.625rem; }
  .et-brands-fc__wall:not(.et-brands-fc__wall--few) .et-brands-fc__n { margin-top: 0.375rem; font-size: 0.875rem; }
  .et-brands-fc__wall:not(.et-brands-fc__wall--few) .et-brands-fc__c { font-size: 0.75rem; }
  .et-brands-fc__wall:not(.et-brands-fc__wall--few) .et-brands-fc__ini { font-size: 2.25rem; }
  .et-brands-fc__wall--few .et-brands-fc__t { aspect-ratio: 4 / 5; }
  .et-brands-fc__wall--few .et-brands-fc__n { font-size: 1.375rem; }
  .et-brands-fc__find { width: 100%; }
  .et-brands-fc__in { grid-template-columns: minmax(0, 1fr); }
  .et-brands-fc__trio {
    grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--et-gutter) * -0.375); padding-inline: calc(var(--et-gutter) * 0.375); scroll-padding-inline: calc(var(--et-gutter) * 0.375);
  }
  .et-brands-fc__trio::-webkit-scrollbar { display: none; }
  .et-brands-fc__it { scroll-snap-align: start; }
  .et-brands-fc__it:first-child .et-brands-fc__iph { aspect-ratio: 1; }
}
