/* ─── Framework catalog styles ─────────────────────────────────────────────── */

/* Category cards on index page */
.fw-card {
  transition: transform .15s ease, box-shadow .15s ease;
  border-left: 4px solid transparent !important;
}
.fw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important;
}

/* Framework cards on category page */
.fw-framework-card {
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.fw-framework-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .4rem 1rem rgba(0,0,0,.08) !important;
}

/* Card description truncation */
.fw-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal section headings */
.fw-modal-section-title {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  margin-bottom: .5rem;
}
.fw-modal-section ul {
  padding-left: 1.25rem;
  font-size: .9rem;
  color: #495057;
}
.fw-modal-section ul li {
  margin-bottom: .25rem;
}

/* Input checklist with checkboxes */
.fw-checklist {
  list-style: none;
  padding-left: 0 !important;
}
.fw-checklist li::before {
  content: "\2610";
  margin-right: .5rem;
  color: #adb5bd;
}

/* Prompt box in modal */
.fw-prompt-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}
.fw-prompt-text {
  font-size: .9rem;
  line-height: 1.6;
  color: #495057;
  white-space: pre-wrap;
}

/* Единый акцент вместо тринадцати цветов категорий. Различают иконка,
   заголовок и счётчик — плитка держится иерархией, а не оттенком. */
.fw-card {
    border-left: 0 !important;
    border-top: 3px solid transparent !important;
    display: flex;
}

.fw-card:hover { border-top-color: var(--bs-primary, #1e3a5f) !important; }

.fw-card .card-body { display: flex; flex-direction: column; }

.fw-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(30, 58, 95, .07);
    color: var(--bs-primary, #1e3a5f);
    font-size: 1.4rem;
}

.fw-card:hover .fw-card-icon {
    background: var(--bs-primary, #1e3a5f);
    color: #fff;
}

.fw-card-title {
    margin: 0 0 .55rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bs-body-color);
}

.fw-card-desc {
    margin: 0 0 1.1rem;
    font-size: .875rem;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fw-card-count {
    margin-top: auto;
    align-self: flex-start;
    padding: .22rem .65rem;
    border-radius: 999px;
    background: rgba(30, 58, 95, .07);
    font-size: .72rem;
    font-weight: 600;
    color: var(--bs-primary, #1e3a5f);
}

/* Тег категории методологии: слово вместо цветной заливки. */
.mi-tag {
    display: inline-block;
    padding: .2rem .6rem;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #64748b;
}

/* ── Страница категории ──────────────────────────────────────────── */
.fw-cat-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, .06) 0%, rgba(30, 58, 95, .02) 100%);
}

.fw-cat-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-right: 1rem;
    border-radius: 14px;
    background: rgba(30, 58, 95, .09);
    color: var(--bs-primary, #1e3a5f);
    font-size: 1.65rem;
    flex-shrink: 0;
}

/* Карточка фреймворка: номер как якорь вместо иконки — иконка у всех в
   категории была бы одна и та же и ничего бы не различала. */
.fw-framework-card {
    border-top: 3px solid transparent !important;
}

.fw-framework-card:hover { border-top-color: var(--bs-primary, #1e3a5f) !important; }

.fw-framework-card .card-body { display: flex; flex-direction: column; }

.fw-fw-num {
    display: block;
    margin-bottom: .35rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.fw-fw-name {
    margin: 0 0 .15rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--bs-body-color);
}

.fw-fw-name-ru {
    margin-bottom: .6rem;
    font-size: .8rem;
    color: #94a3b8;
}

.fw-fw-desc {
    margin: 0 0 .85rem;
    font-size: .82rem;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fw-fw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .9rem;
}

.fw-fw-tag {
    padding: .12rem .45rem;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 4px;
    font-size: .65rem;
    color: #94a3b8;
    white-space: nowrap;
}

.fw-fw-open {
    margin-top: auto;
    font-size: .78rem;
    font-weight: 600;
    color: var(--bs-primary, #1e3a5f);
    opacity: .65;
    transition: opacity .15s ease;
}

.fw-framework-card:hover .fw-fw-open { opacity: 1; }
