.ajf-tcf {
    --ajf-primary: #0b1b54;
    --ajf-secondary: #5d6b8a;
    --ajf-border: #dfe4ed;
    --ajf-accent: #e4a11a;
    position: relative;
    overflow: hidden;
    background: #f5f6f8;
    padding: 110px 24px 80px;
}
.ajf-tcf__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 14% 18%, rgba(255,255,255,.62) 0%, rgba(245,246,248,0) 38%), linear-gradient(180deg, #f7f7f8 0%, #f1f2f5 100%);
}
.ajf-tcf__watermark {
    position: absolute;
    right: -12px;
    top: 0;
    width: min(37vw, 500px);
    height: min(32vw, 360px);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: .33;
    pointer-events: none;
    z-index: 1;
}
.ajf-tcf__inner { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; }
.ajf-tcf__panel {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(24,32,60,.09);
    padding: 34px 26px 34px;
}
.ajf-tcf__controls-row { display: grid; grid-template-columns: minmax(230px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ajf-tcf__search, .ajf-tcf__filter-button {
    background: #fff;
    border: 1px solid var(--ajf-border);
    border-radius: 16px;
}
.ajf-tcf__search {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
}
.ajf-tcf__search-icon { width: 28px; height: 28px; color: var(--ajf-primary); opacity: .92; flex: 0 0 auto; }
.ajf-tcf__search-icon svg { width: 100%; height: 100%; }
.ajf-tcf__search-input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ajf-primary); font-size: 17px; font-weight: 500; }
.ajf-tcf__search-input::placeholder { color: #6f7c96; opacity: 1; }
.ajf-tcf__filters { display: flex; gap: 14px; align-items: stretch; flex-wrap: nowrap; min-width: 0; }
.ajf-tcf__filter-group { position: relative; flex: 0 1 175px; min-width: 0; }
.ajf-tcf__filter-group[data-filter-group="category"] { flex-basis: 205px; }
.ajf-tcf__filter-group[data-filter-group="level"] { flex-basis: 175px; }
.ajf-tcf__filter-group[data-filter-group="duration"] { flex-basis: 205px; }
.ajf-tcf__filter-group[data-filter-group="price"] { flex-basis: 170px; }
.ajf-tcf__filter-group[data-filter-group="more"] { flex-basis: 205px; }
.ajf-tcf__filter-button {
    width: 100%; height: 64px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; color: var(--ajf-primary); font-size: 17px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
.ajf-tcf__filter-button:hover, .ajf-tcf__filter-group.is-open .ajf-tcf__filter-button { border-color: var(--ajf-accent); box-shadow: 0 10px 24px rgba(11,27,84,.08); }
.ajf-tcf__filter-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--ajf-primary); flex: 0 0 auto; }
.ajf-tcf__filter-label { flex: 1 1 auto; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ajf-tcf__filter-arrow { color: var(--ajf-primary); font-size: 16px; line-height: 1; flex: 0 0 auto; }
.ajf-tcf__menu { position: absolute; left: 0; top: calc(100% + 12px); min-width: 100%; z-index: 25; }
.ajf-tcf__menu-inner { background: #fff; border: 1px solid #dfe4ed; border-radius: 18px; box-shadow: 0 18px 40px rgba(13,27,60,.12); padding: 10px; min-width: 220px; max-height: 340px; overflow: auto; }
.ajf-tcf__menu-option { display: block; width: 100%; border: 0; background: transparent; text-align: left; color: var(--ajf-primary); font-size: 16px; font-weight: 500; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.ajf-tcf__menu-option:hover, .ajf-tcf__menu-option.is-selected { background: rgba(228,161,26,.12); }
.ajf-tcf__divider { height: 1px; background: #ebedf2; margin: 28px 0 28px; }
.ajf-tcf__grid { --ajf-card-min: 150px; display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--ajf-card-min), 1fr)); gap: 16px; }
.ajf-tcf__card {
    min-height: 218px; border: 1px solid var(--ajf-border); border-radius: 16px; background: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px 14px; text-align: center; color: var(--ajf-primary); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ajf-tcf__card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(11,27,84,.08); }
.ajf-tcf__card.is-active { border-color: var(--ajf-accent); box-shadow: inset 0 0 0 1px rgba(228,161,26,.1); }
.ajf-tcf__card-icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; color: var(--ajf-primary); }
.ajf-tcf__card-icon img { width: 72px; height: 72px; object-fit: contain; }
.ajf-tcf__card-icon i, .ajf-tcf__card-icon svg { font-size: 42px; width: 54px; height: 54px; }
.ajf-tcf__card-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ajf-primary); }
.ajf-tcf__card-count { font-size: 15px; font-weight: 500; color: var(--ajf-secondary); }
@media (max-width: 1200px) {
    .ajf-tcf__controls-row { grid-template-columns: 1fr; }
    .ajf-tcf__filters { flex-wrap: wrap; }
    .ajf-tcf__filter-group { flex: 1 1 calc(33.333% - 12px); }
}
@media (max-width: 1024px) {
    .ajf-tcf { padding: 90px 20px 64px; }
    .ajf-tcf__panel { padding: 24px 20px; border-radius: 24px; }
    .ajf-tcf__search, .ajf-tcf__filter-button { height: 60px; }
    .ajf-tcf__search-input, .ajf-tcf__filter-button { font-size: 16px; }
    .ajf-tcf__card { min-height: 185px; }
}
@media (max-width: 767px) {
    .ajf-tcf { padding: 60px 16px 42px; }
    .ajf-tcf__watermark { width: 240px; height: 180px; opacity: .25; }
    .ajf-tcf__panel { padding: 18px 16px 22px; border-radius: 22px; }
    .ajf-tcf__controls-row { gap: 14px; }
    .ajf-tcf__filters { gap: 12px; }
    .ajf-tcf__filter-group { flex: 1 1 calc(50% - 6px); }
    .ajf-tcf__search, .ajf-tcf__filter-button { height: 58px; border-radius: 14px; }
    .ajf-tcf__search { padding: 0 16px; gap: 12px; }
    .ajf-tcf__search-input, .ajf-tcf__filter-button { font-size: 16px; }
    .ajf-tcf__divider { margin: 18px 0 18px; }
    .ajf-tcf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ajf-tcf__card { min-height: 152px; gap: 12px; padding: 14px 10px; }
    .ajf-tcf__card-icon { width: 56px; height: 56px; }
    .ajf-tcf__card-icon img { width: 56px; height: 56px; }
    .ajf-tcf__card-icon i, .ajf-tcf__card-icon svg { font-size: 34px; width: 40px; height: 40px; }
    .ajf-tcf__card-title { font-size: 16px; }
    .ajf-tcf__card-count { font-size: 14px; }
    .ajf-tcf__menu { left: 0; right: 0; }
    .ajf-tcf__menu-inner { min-width: 0; }
}

.ajf-tcf__menu-option[hidden] { display: none !important; }
.ajf-tcf__empty { grid-column: 1 / -1; padding: 22px; border: 1px dashed var(--ajf-border); border-radius: 16px; color: var(--ajf-secondary); text-align: center; font-size: 16px; }
