/* ===================================================================
   Finratio · Каталог курсов
   Общие блоки (.wrap, .sec, .fr, .pill, .fr-price) — в home.css.
   =================================================================== */

/* ---------- Шапка каталога с поиском ---------- */
.cat-hero { padding-block: 20px 8px; }
.cat-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); color: #fff;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(200,168,75,.3), rgba(200,168,75,0) 55%),
    var(--forest);
}
.cat-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cat-band h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1; }
.cat-band h1 em { font-style: normal; color: var(--gold); }
.cat-band .lead { margin-top: 16px; max-width: 54ch; font-size: 1.08rem; line-height: 1.55; color: rgba(255,255,255,.8); }
.cat-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cat-stats .pill { background: rgba(255,255,255,.1); color: #fff; font-weight: 500; }
.cat-stats .pill b { color: var(--gold-lt); font-weight: 700; }

.cat-tools { margin-top: 28px; display: grid; gap: 14px; max-width: 760px; }
.cat-search { position: relative; }
.cat-search input {
  width: 100%; height: 56px; border-radius: 16px; border: 0; padding: 0 20px 0 52px;
  font: 500 1.02rem var(--font-ui); color: var(--ink); background: #fff;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.5);
}
.cat-search input:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.cat-search .ic { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--ink-3); width: 22px; height: 22px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 .92rem var(--font-ui); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.cat-chips button:hover { background: rgba(255,255,255,.16); }
.cat-chips button:active { transform: scale(.96); }
.cat-chips button.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.cat-art { position: absolute; right: clamp(-40px, -2vw, 0px); bottom: -10px; width: min(380px, 34%); z-index: -1; opacity: .95; pointer-events: none; }

/* ---------- Флагманские — широкие карточки ---------- */
.fw-list { display: grid; gap: 16px; }
.fw {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.fw:hover { box-shadow: 0 30px 60px -36px rgba(12,12,16,.6); }
.fw.c-forest { background: var(--forest); color: #fff; }
.fw.c-ink    { background: var(--ink); color: #fff; }
.fw.c-gold   { background: var(--gold-light); color: var(--ink); }
.fw-main { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.fw h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.fw h3 a { color: inherit; text-decoration: none; }
.fw-desc { font-size: 1rem; line-height: 1.6; opacity: .82; max-width: 60ch; }
.fw .fc-tags .pill { background: rgba(255,255,255,.12); color: #fff; }
.fw.c-gold .fc-tags .pill { background: rgba(12,12,16,.07); color: var(--ink); }
.fw .fc-tags .pill.gold { background: var(--gold); color: var(--ink); }
.fw-prog { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-prog li { font-size: .84rem; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); }
.fw-prog li b { color: var(--gold-lt); font-weight: 600; margin-right: 4px; }
.fw.c-gold .fw-prog li { background: rgba(255,255,255,.7); color: var(--ink-2); }
.fw.c-gold .fw-prog li b { color: var(--gold-ink); }
.fw .fc-build { display: grid; gap: 8px; }
.fw .fc-build li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.4; }
.fw .fc-build .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.fw.c-gold .fc-build .ic { color: var(--forest); }

.fw-side {
  padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px;
  background: rgba(255,255,255,.05); border-left: 1px solid rgba(255,255,255,.08);
}
.fw.c-gold .fw-side { background: rgba(255,255,255,.45); border-left-color: rgba(12,12,16,.06); }
.fw-art { height: 160px; }
.fw-art svg { width: 100%; height: 100%; }
.fw-files { font-size: .88rem; line-height: 1.5; opacity: .75; }
.fw-buy { margin-top: auto; display: grid; gap: 14px; }
.fw .fr-price { flex-direction: column; align-items: flex-start; gap: 6px; }
.fw .fr-price .row { display: flex; align-items: center; gap: 8px; }
.fw .fr-price-now { color: inherit; font-size: 2.5rem; }
.fw.c-forest .fr-price-old, .fw.c-ink .fr-price-old { color: rgba(255,255,255,.55); }
.fw-buy .btn-gold, .fw-buy .btn-primary { width: 100%; }
.fw-terms { display: grid; gap: 6px; font-size: .86rem; opacity: .8; }
.fw-terms li { display: flex; gap: 8px; align-items: center; }
.fw-terms .ic { width: 16px; height: 16px; color: #7fd39b; }
.fw.c-gold .fw-terms .ic { color: var(--sage); }

/* ---------- Бесплатные ---------- */
.fr[hidden], .fw[hidden] { display: none; }
.cat-empty { display: none; padding: 40px; text-align: center; color: var(--ink-3); background: var(--card); border-radius: var(--r-md); }
.cat-empty.show { display: block; }

/* ---------- Аккаунт ---------- */
.acc-band {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px;
  padding: 28px 32px; background: var(--gold-light); border-radius: var(--r-lg);
}
.acc-band .a-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--gold); display: grid; place-items: center; color: var(--ink); }
.acc-band .a-ico .ic { width: 30px; height: 30px; }
.acc-band h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.acc-band p { margin-top: 6px; font-size: .98rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

@media (max-width: 960px) {
  .fw { grid-template-columns: 1fr; }
  .fw-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .cat-art { display: none; }
}
@media (max-width: 640px) {
  .acc-band { grid-template-columns: 1fr; padding: 24px; }
}
