/*
 * Trigger Field — второй блок главной (/ и /ru/).
 *
 * Шесть модулей с данными витрины (public/data/*.json): режим рынка,
 * ширина рынка, фандинг, рост TVL, главный объект дня, X-heat top1.
 * Всё скоуплено под .tt-tf — фон и существующий дизайн страницы блок
 * не трогает. Цвета берутся из переменных облака (--ttg, --ttline, ...)
 * с фолбэками: блок работает и вне #tt-cloudline.
 */

.tt-tf{border-bottom:1px solid var(--ttline,rgba(232,236,233,.11));padding:clamp(56px,8vw,96px) clamp(24px,7vw,112px);color:var(--ttwhite,#eef2ef);font-family:'Space Grotesk',system-ui,sans-serif}
.tt-tf *{box-sizing:border-box}
.tt-tf a{color:inherit}
.tt-tf .tf-h{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.tt-tf .tf-title{margin:0;font-size:clamp(26px,3.4vw,44px);line-height:1;letter-spacing:-.04em;text-transform:uppercase;font-weight:700}
.tt-tf .tf-src{font:10px 'Space Grotesk',system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ttmuted,#839388)}
.tt-tf .tf-src b{color:var(--ttg,#33ff66);font-weight:600}
.tt-tf .tf-sub{margin:0 0 26px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ttmuted,#839388)}
.tt-tf .tf-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--ttline,rgba(232,236,233,.14))}
.tt-tf .tf-mod{position:relative;display:flex;flex-direction:column;min-height:190px;margin:0;padding:18px;border:0;border-right:1px solid var(--ttline,rgba(232,236,233,.14));border-bottom:1px solid var(--ttline,rgba(232,236,233,.14));background:transparent;text-align:left;color:inherit;font-family:inherit;cursor:default;transition:background-color .2s ease}
.tt-tf .tf-mod:nth-child(3n){border-right:0}
.tt-tf .tf-mod:nth-last-child(-n+3){border-bottom:0}
.tt-tf .tf-mod:hover,.tt-tf .tf-mod:focus-visible,.tt-tf .tf-mod.open{background:rgba(51,255,102,.05)}
html.tt-light .tt-tf .tf-mod:hover,html.tt-light .tt-tf .tf-mod:focus-visible,html.tt-light .tt-tf .tf-mod.open{background:rgba(8,122,58,.06)}
.tt-tf a.tf-mod{cursor:pointer;text-decoration:none}
.tt-tf .tf-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tt-tf .tf-name{margin:0;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--ttmuted,#839388)}
.tt-tf .tf-dot{width:8px;height:8px;flex:0 0 8px;background:var(--ttg,#33ff66)}
.tt-tf .tf-dot.a{background:#ffce54}
.tt-tf .tf-dot.r{background:#ff5c5c}
.tt-tf .tf-val{margin:auto 0 10px;font-size:clamp(22px,2vw,30px);font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}
.tt-tf .tf-val small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--ttmuted,#839388);letter-spacing:.02em}
.tt-tf .tf-more{display:none;border-top:1px solid var(--ttline,rgba(232,236,233,.14));padding-top:12px;margin-top:12px;font-size:13px;line-height:1.55;color:var(--ttmuted,#839388)}
.tt-tf .tf-mod:hover .tf-more,.tt-tf .tf-mod:focus .tf-more,.tt-tf .tf-mod.open .tf-more{display:block}
/* Без hover (телефон, планшет) тезис не раскрыть наведением, а тап уводит
   по ссылке модуля — поэтому там он открыт всегда. */
@media(hover:none){.tt-tf .tf-more{display:block}}
.tt-tf .tf-more p{margin:0 0 8px}
.tt-tf .tf-row{display:flex;justify-content:space-between;gap:12px;margin-top:6px}
.tt-tf .tf-row b{font-weight:600;color:var(--ttwhite,#eef2ef)}
.tt-tf .tf-asof{margin-top:8px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ttmuted,#839388);opacity:.75}
@media(max-width:1060px){
  .tt-tf .tf-grid{grid-template-columns:repeat(2,1fr)}
  .tt-tf .tf-mod:nth-child(3n){border-right:1px solid var(--ttline,rgba(232,236,233,.14))}
  .tt-tf .tf-mod:nth-child(2n){border-right:0}
  .tt-tf .tf-mod:nth-last-child(-n+3){border-bottom:1px solid var(--ttline,rgba(232,236,233,.14))}
  .tt-tf .tf-mod:nth-last-child(-n+2){border-bottom:0}
}
@media(max-width:640px){
  .tt-tf{padding-left:20px;padding-right:20px}
  .tt-tf .tf-grid{grid-template-columns:1fr}
  .tt-tf .tf-mod{border-right:0!important;border-bottom:1px solid var(--ttline,rgba(232,236,233,.14))!important}
  .tt-tf .tf-mod:last-child{border-bottom:0!important}
}
@media(prefers-reduced-motion:reduce){.tt-tf .tf-mod{transition:none}}
