/* EasyTiers — главная: чистка «ИИ-вида». Грузится ПОСЛЕ home-x.css.
   Убрано: свет за курсором, подсветка карточек за курсором, текстура-«стены» в режимах, градиентный текст заголовков,
   цветные пятна в секциях. Добавлено: нормальный калькулятор, лента анонсов как посты, чистый поиск в FAQ. */

/* ---------- Фон: плоский, без пятен ---------- */
#etGlow { display: none !important; }
body.et-home [data-spot]::before { display: none !important; }
html body.et-home .et-sec-head h2, html body.et-home .et-tier-intro h2 {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fff; color: #fff;
}
html body.et-home .et-main::before { background: radial-gradient(760px 560px at 76% 34%, rgba(245,197,24,.1), transparent 70%); }
body.et-home .et-tier-sec { background: none; border-block: 0; }
body.et-home .et-mode::before, body.et-home .staff-card::before { display: none; }
body.et-home .et-cta { background: #111413; }

/* ---------- Режимы: плоские панели без текстуры ---------- */
body.et-home .et-modes.mm { height: clamp(520px, 68vh, 640px); }
body.et-home .mm-p { background: #101312 !important; border-color: rgba(255,255,255,.1); }
body.et-home .mm-p.on { background: #121513 !important; border-color: rgba(245,197,24,.55); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
body.et-home .mm-p.on::before { background: radial-gradient(420px 360px at 74% 72%, rgba(245,197,24,.1), transparent 70%); }
body.et-home .mm-img { image-rendering: auto; }

/* ---------- Калькулятор очков ---------- */
html body.et-home .et-calc { grid-template-columns: 1fr 380px; gap: 16px; margin-top: 44px; }
html body.et-home .et-calc-rows, html body.et-home .et-calc-res { border-radius: 18px; background: #101312; border: 1px solid rgba(255,255,255,.09); }
html body.et-home .et-calc-rows { padding: 6px 30px; }
html body.et-home .et-calc-row { grid-template-columns: 130px 1fr 110px; gap: 30px; padding: 28px 0; align-items: center; }
body.et-home .cr-mode { display: flex; align-items: center; gap: 12px; }
body.et-home .cr-mode img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
html body.et-home .et-calc-row b { font: 800 16px Rubik, sans-serif; letter-spacing: .05em; }
body.et-home .cr-slide { min-width: 0; }

/* ползунок: сброс глобальных стилей input, дорожка и заливка совпадают с ручкой */
html body.et-home .et-range {
  --th: 26px; --t: 0; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; outline: none !important; box-shadow: none !important; cursor: pointer;
}
html body.et-home .et-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--y) calc(var(--th) / 2 + (100% - var(--th)) * var(--t)), #262a2b 0);
}
html body.et-home .et-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--y);
  border: 4px solid #101312; box-shadow: 0 0 0 2px var(--y), 0 6px 14px rgba(0,0,0,.6); transition: transform .15s, box-shadow .2s;
}
html body.et-home .et-range::-moz-range-track { height: 8px; border-radius: 99px; background: #262a2b; }
html body.et-home .et-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--y); }
html body.et-home .et-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--y); border: 4px solid #101312; box-shadow: 0 0 0 2px var(--y); }
html body.et-home .et-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
html body.et-home .et-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--y), 0 0 0 7px rgba(245,197,24,.25), 0 6px 14px rgba(0,0,0,.6); }
html body.et-home .et-range:active::-webkit-slider-thumb { transform: scale(1.14); }
body.et-home .cr-ticks { display: flex; justify-content: space-between; padding: 0 12px; margin-top: 2px; pointer-events: none; }
body.et-home .cr-ticks i { width: 2px; height: 6px; border-radius: 2px; background: #2d3233; transition: background .2s; }
body.et-home .cr-ticks i.on { background: rgba(245,197,24,.75); }
body.et-home .cr-caps { display: flex; justify-content: space-between; margin-top: 8px; font: 700 11px Rubik, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6c7274; }
body.et-home .cr-caps span:nth-child(2) { margin-right: auto; margin-left: 4%; }
html body.et-home .et-calc-val { gap: 3px; }
html body.et-home .et-calc-val em { font: 800 28px/1 Rubik, sans-serif; color: #5d6365; }
html body.et-home .et-calc-val small { font-size: 12px; color: #7b8183; }
html body.et-home .et-calc-row.has .et-calc-val em { color: var(--y); }

/* итог: без пятна-свечения, крупнее */
html body.et-home .et-calc-res { padding: 34px; gap: 28px; }
html body.et-home .et-calc-res::after { display: none; }
html body.et-home .et-calc-res .lbl { font-size: 12px; letter-spacing: .16em; }
html body.et-home .et-calc-total { font: 900 92px/1 Rubik, sans-serif; text-shadow: none; margin-top: 8px; }
html body.et-home .et-calc-total small { font-size: 16px; }
html body.et-home .et-calc-rank { margin-top: 14px; font: 800 24px/1.2 Rubik, sans-serif; }
html body.et-home .et-calc-rank span { margin-top: 8px; font: 400 14px/1.6 Inter, sans-serif; color: #9aa0a0; }
html body.et-home .et-meter { height: 8px; border-radius: 99px; background: #262a2b; overflow: hidden; }
html body.et-home .et-meter i { display: block; width: 100%; height: 100%; border-radius: 99px; background: var(--y); transform-origin: 0 50%; transform: scaleX(var(--m, 0)); transition: transform .5s var(--ease); }

/* ---------- Новости: лента постов как на странице «Анонсы» ---------- */
body.et-home .news-feed { display: flex; flex-direction: column; gap: 18px; max-width: none; width: 100%; }
body.et-home .news-feed .ann-post { background: #101312; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; cursor: pointer; transition: border-color .2s; }
body.et-home .news-feed .ann-post:hover { border-color: rgba(245,197,24,.4); }
body.et-home .news-feed .ann-text { max-height: 8em; overflow: hidden; }
body.et-home .news-feed .ann-media .announcement-image { max-height: 380px; cursor: pointer; }
body.et-home .news-feed .ann-like { cursor: default; }
body.et-home .news-feed .ann-like:hover { color: var(--text-dim, #8a8a8a); border-color: var(--border, #242424); }

/* ---------- Команда: просто заголовок, без рамки со стрелками ---------- */
body.et-home .team-switch { border: 0; padding: 0; background: none; gap: 0; box-shadow: none; }
body.et-home .team-arrow { display: none; }
body.et-home .team-word { min-width: 0; text-align: left; }

/* ---------- FAQ: поле поиска без белой рамки ---------- */
html body.et-home .faq-search { border-radius: 12px; }
html body.et-home .faq-search input {
  -webkit-appearance: none; appearance: none; height: 100%; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: none !important; color: #e8ebe9; font-size: 15px;
}
html body.et-home .faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
html body.et-home .faq-search input::placeholder { color: #6f7576; }

@media (max-width: 1000px) {
  html body.et-home .et-calc { grid-template-columns: 1fr; }
  html body.et-home .et-calc-row { grid-template-columns: 1fr auto; gap: 8px 18px; padding: 22px 0; }
  html body.et-home .cr-mode { grid-column: 1; } html body.et-home .et-calc-val { grid-column: 2; grid-row: 1; }
  html body.et-home .cr-slide { grid-column: 1 / -1; }
}

/* ---- Калькулятор: большие числа очков ---- */
html body.et-home .et-calc-total { font-size: clamp(54px, 6vw, 72px); white-space: nowrap; }
html body.et-home .et-calc-row { grid-template-columns: 130px 1fr 132px; }
html body.et-home .et-calc-val small { font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.et-home .et-calc-max { margin-top: 6px; font: 600 12px/1.4 Inter, sans-serif; letter-spacing: .04em; color: #7b8183; }
html body.et-home .et-calc-rank span.goal { display: block; margin-top: 10px; color: var(--y, #f5c518); font: 600 13px/1.5 Inter, sans-serif; }

/* ---- Новости: один последний пост — по левому краю и на всю ширину, как блок «Партнёры» ---- */
body.et-home #news .et-sec-head { flex-direction: column; align-items: flex-start; text-align: left; }
body.et-home #news .et-sec-head h2 { text-align: left; }
body.et-home #news .news-feed { margin: 0; width: 100%; max-width: none; }
body.et-home #news .news-all { display: flex; justify-content: flex-start; margin-top: 22px; }
body.et-home #news .news-all .et-more { padding: 11px 20px; border: 1px solid rgba(245,197,24,.35); border-radius: 12px; transition: background .2s, border-color .2s; }
body.et-home #news .news-all .et-more:hover { background: rgba(245,197,24,.1); border-color: rgba(245,197,24,.7); }

/* ---- Бегущая строка: разделитель — маленький пиксельный квадрат (вместо звёздочек) ---- */
html body.et-home .et-ticker .et-tk-sep { display: block; flex: none; width: 7px; height: 7px; background: var(--y, #f5c518); opacity: .85; box-shadow: inset -2px -2px 0 rgba(0,0,0,.28); }

/* ---------- Кнопки на главной не шевелятся: никаких сдвигов, масштаба и «блика» при наведении ---------- */
html body.et-home .btn, html body.et-home .btn:hover, html body.et-home .btn:focus-visible, html body.et-home .btn:active,
html body.et-home .et-actions .btn:hover, html body.et-home .mm-cta:hover, html body.et-home .mm-q:hover, html body.et-home .mm-cta, html body.et-home .mm-q { transform: none !important; }
html body.et-home .btn::after { display: none !important; }
html body.et-home .et-cta .btn:hover { filter: brightness(1.18); }

/* ---------- Новости: заголовок — по левому краю ленты ---------- */
body.et-home #news .et-sec-head { flex-direction: column; align-items: flex-start; text-align: left; width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
body.et-home #news .et-sec-head h2 { text-align: left; }


/* ================= Кнопки на главной ЗАКРЕПЛЕНЫ =================
   Раньше при наведении они «уезжали»: redesign.css поднимал .btn на -2px (!important, специфичность выше),
   а home-x.js ещё и таскал кнопку за курсором через свойство translate («магнитные кнопки»).
   Здесь специфичность выше, чем у redesign.css, поэтому кнопки не двигаются вообще — меняется только цвет/рамка. */
html:not([data-theme="light"]) body.et-home:not(.x) .btn,
html:not([data-theme="light"]) body.et-home:not(.x) .btn:hover,
html:not([data-theme="light"]) body.et-home:not(.x) .btn:focus-visible,
html:not([data-theme="light"]) body.et-home:not(.x) .btn:active,
html:not([data-theme="light"]) body.et-home:not(.x) .et-actions .btn:hover,
html:not([data-theme="light"]) body.et-home:not(.x) .et-cta .btn:hover { transform: none !important; translate: none !important; }

/* ================= Шрифт заголовков главной =================
   Было: Unbounded 900 (очень широкий и тяжёлый). Стало: Manrope 800 — он уже лежит в проекте (/fonts/Manrope.ttf),
   поддерживает кириллицу. Чтобы взять другой шрифт — поменяй одну переменную --hb-display. */
html body.et-home { --hb-display: 'Manrope', Inter, system-ui, sans-serif; }
html body.et-home .et-hero h1.et-title { font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.06 !important; }
html body.et-home .et-sec-head h2, html body.et-home .et-tier-intro h2, html body.et-home .et-cta h2 { font-weight: 800 !important; letter-spacing: -.03em !important; }

/* ================= Плавный скролл главной =================
   Тяжёлые эффекты, из-за которых страница подлагивала при прокрутке, заменены лёгкими аналогами:
   • размытие фона (backdrop-filter) у шапки и плашек в герое → сплошной фон;
   • «свет за курсором» без mix-blend-mode;
   • большие filter: blur у карточек → радиальный градиент;
   • зерно-оверлей на всю страницу убран;
   • бесконечные анимации героя ставятся на паузу, когда герой не на экране (класс body.et-off). */
html:not([data-theme="light"]) body.et-home:not(.x) #header { background: rgba(9,10,11,.97) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body.et-home .et-fc { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: linear-gradient(160deg, rgba(32,30,18,.96), rgba(14,14,10,.96)) !important; }
html:not([data-theme="light"]) body.et-home:not(.x)::after { display: none !important; }
body.et-home .et-mode::before, body.et-home .staff-card::before { filter: none !important; background: radial-gradient(circle, rgba(245,197,24,.10), rgba(245,197,24,0) 70%) !important; }
body.et-home.et-off .et-orbit, body.et-home.et-off .et-orbit i, body.et-home.et-off .et-sunglow, body.et-home.et-off .et-player,
body.et-home.et-off .et-sparkle, body.et-home.et-off .et-ticker-track, body.et-home.et-off .et-hero::after { animation-play-state: paused !important; }
