/* Лендинг партнёров. Отдельный файл, а не app.css: у лендинга нет ни .page, ни
   компонентов Tabler — тянуть ради него всю тему кабинета незачем.

   Правила ниже пришли из дизайн-выгрузки (были инлайновым <style> в <helmet>),
   к ним добавлены состояния, которые в выгрузке считал React: ховеры (атрибут
   style-hover), активная вкладка формата, знак +/− у вопроса, обесцвечивание
   логотипов партнёров. */

/* Golos UI — корпоративный шрифт Flip, тот же файл, что и в app.css: один URL,
   значит браузер скачает его один раз на оба листа стилей. Дизайн просил Golos
   Text и Inter с fonts.googleapis.com — заменены на корпоративный, чтобы
   лендинг не ходил за шрифтами наружу. */
@font-face {
    font-family: 'GolosUI';
    src: url('/css/fonts/GolosUI-VF.woff2') format('woff2-variations'),
         url('/css/fonts/GolosUI-VF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'GolosUI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Кнопки наследуют шрифт страницы: у них свой дефолт от браузера */
button {
    font-family: inherit;
}

html, body { margin: 0; padding: 0; background: rgb(246,247,249); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: rgb(10,121,214); text-decoration: none; }
a:hover { color: rgb(8,98,173); }
.hs::-webkit-scrollbar { height: 0; display: none; }
.hs { scrollbar-width: none; }
@media (max-width: 1120px) { .hs { scroll-snap-type: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding-left: 18px !important; padding-right: 0 !important; }
  .hs > *:last-child { margin-right: 18px !important; } }
@media (max-width: 700px) { .hide-sm { display: none !important; } }
@media (max-width: 700px) {
  .cta { align-self: center !important; }
  .hero-t { text-align: center; }
  .ill-c { margin: 0 auto !important; }
  .fmt { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
  .earn, .earn > div, .hero-c, .hero-c > div, .fmt-txt { align-items: center !important; text-align: center !important; }
  .earn button, .cta { align-self: center !important; }
  .fmt { grid-template-columns: 1fr !important; }
  .fmt-txt li { text-align: left !important; }
}
.cards-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1120px) {
  .cards-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); overflow-x: auto; scroll-snap-type: x proximity; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding-left: 18px !important; margin: 0; padding: 0; }
  .cards-row > div { flex-direction: column !important; height: auto !important; min-height: 300px !important; align-items: stretch !important; justify-content: space-between !important; }
  .cards-row > div > div:first-child { width: auto !important; flex: 0 0 auto !important; }
  .cards-row > div > div:last-child { align-self: flex-end !important; max-width: 100%; }
  .cards-row > div { scroll-snap-align: start; }
  .cards-row > *:last-child { margin-right: 18px !important; }
}

/* ===== Состояния, которые в дизайн-выгрузке отрисовывал React ===== */
/* Дизайн-выгрузка раздаёт display инлайном (flex у панелей формата и модалки,
   grid у списка в FAQ), а инлайновый стиль сильнее атрибута hidden — без !important
   скрытые блоки остаются на экране. React такой беды не знал: он просто не
   рисовал ветку, а не прятал её. */
[hidden] { display: none !important; }


/* CTA — настоящие ссылки, а не кнопки: работают средняя кнопка мыши, «открыть
   в новой вкладке» и обход краулером. Глобальные a/a:hover перекрасили бы текст,
   поэтому цвет закрепляем явно */
a.cta, a.cta:hover { color: rgb(255,255,255); }
a.btn-login, a.btn-login:hover { color: rgb(10,121,214); }

/* Было style-hover="…" — атрибут понимал только dc-рантайм */
.cta:hover { background: rgb(8,98,173); }
.btn-login:hover { background: rgb(212,232,250); }
.nav-a:hover { background: rgb(255,255,255); }

/* Вкладки формата сотрудничества и переключатель языка: в выгрузке на каждое
   состояние была своя ветка разметки, теперь состояние держит aria-pressed */
.fmt-tab { background: transparent; color: rgb(14,40,69); }
.fmt-tab[aria-pressed="true"] { background: rgb(14,40,69); color: rgb(255,255,255); }

.lang-btn { flex: 1 1 0; min-width: 0; font-weight: 500; font-size: 10px; line-height: 100%;
    color: rgb(10,121,214); background: transparent; border: 0; border-radius: 6px;
    padding: 10px 0; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: rgb(255,255,255); border: 1px solid rgb(212,232,250); padding: 9px 0; }

/* Знак раскрытия вопроса — из aria-expanded, а не из двух веток разметки */
.faq-q .faq-sign::after { content: '+'; }
.faq-q[aria-expanded="true"] .faq-sign::after { content: '−'; }

/* Логотипы партнёров: обесцвечены, при наведении на карточку — в цвет.
   Раньше filter стоял инлайном и переключался обработчиками onMouseEnter/Leave;
   инлайновый стиль не перебить из таблицы, поэтому он переехал сюда целиком */
.review-card img { filter: grayscale(1); transition: filter .25s ease; }
.review-card:hover img { filter: none; }

