/* Витрина AUTERO: только главная. Подключается после journal-front-base.css. */

.jf-sticky { font-family: "Uber Move Text", Arial, sans-serif; color: var(--jf-ink); }

.jf-sticky * { box-sizing: border-box; }

.jf-sticky a { color: inherit; text-decoration: none; }

.jf-sticky :focus-visible { outline: 2px solid var(--jf-green-1); outline-offset: 3px; }

.jf-hero__media { position: relative; height: 520px; }

.jf-hero__media > div { position: absolute; overflow: hidden; }

.jf-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.jf-hero__main { left: 0; right: 0; top: 0; height: 300px; border-radius: 24px; }

.jf-hero__main img { object-position: 45% 30%; }

.jf-hero__side { left: 0; top: 316px; width: calc(50% - 8px); height: 204px; border-radius: 16px; }

.jf-hero__side img { object-position: center 28%; }

.jf-hero__side--r { left: auto; right: 0; }

.jf-hero__answer { position: absolute; left: -28px; top: 196px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: #fff; color: var(--jf-ink) !important; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(0,20,10,.55); }

.jf-hero__answer span { font-size: 12px; color: var(--jf-muted); }

.jf-hero__answer b { font-size: 24px; color: var(--jf-green); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }

/* Темы */

.jf-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.jf-topic { display: flex; flex-direction: column; gap: 8px; min-height: 140px; padding: 20px; background: #fff; border: 1px solid var(--jf-line); border-radius: 20px; transition: transform .35s var(--jf-ease), border-color .25s var(--jf-ease); }

a.jf-topic:hover, .jf-lead:hover { transform: translateY(-3px); border-color: var(--jf-soft-line); }

.jf-topic b { font-size: 18px; line-height: 24px; }

.jf-topic span { font-size: 14px; color: var(--jf-muted); }

.jf-topic small { margin-top: auto; font-size: 13px; color: var(--jf-muted); }

.jf-topic--lead { grid-column: span 2; grid-row: span 2; padding: 28px; gap: 14px; }

.jf-topic--lead p { font-size: 16px; color: var(--jf-muted); }

.jf-topic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.jf-topic__head a { font-size: 28px; line-height: 34px; letter-spacing: -.5px; font-weight: 700; }

.jf-topic__head span { font-size: 14px; color: var(--jf-muted); white-space: nowrap; }

.jf-topic__list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }

.jf-topic--all { background: var(--jf-soft); border-color: var(--jf-soft-line); justify-content: space-between; }

.jf-topic--all span { color: var(--jf-ink); }

.jf-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px; margin: 0 -12px; border-radius: 12px; font-size: 17px; font-weight: 500; transition: background-color .2s var(--jf-ease); }

.jf-row:hover { background: var(--jf-gray); }

.jf-row b { color: var(--jf-green); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Популярное */

.jf-popular__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }

.jf-lead { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: #fff; border: 1px solid var(--jf-line); border-radius: 20px; transition: transform .35s var(--jf-ease), border-color .25s var(--jf-ease); }

.jf-lead__kicker, .jf-lead__foot { font-size: 14px; color: var(--jf-muted); }

.jf-lead__fig { font-size: 64px; line-height: 1; letter-spacing: -2px; font-weight: 700; color: var(--jf-green); font-variant-numeric: tabular-nums; }

.jf-lead__title { font-size: 26px; line-height: 32px; letter-spacing: -.5px; font-weight: 700; }

.jf-lead__answer { font-size: 17px; line-height: 1.55; color: var(--jf-ink-2); }

.jf-lead__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.jf-lead__facts span { background: var(--jf-gray); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--jf-muted); }

.jf-lead__facts b { display: block; font-size: 18px; color: var(--jf-ink); }

.jf-popular__list { display: flex; flex-direction: column; gap: 6px; }

.jf-popular__list .jf-link { margin-top: 10px; font-size: 17px; align-self: flex-start; }

.jf-row--answer { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: baseline; padding: 18px 14px; margin: 0 -14px; font-weight: 400; }

.jf-row--answer b { font-size: 22px; line-height: 26px; letter-spacing: -.5px; white-space: normal; }

.jf-row--answer span { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--jf-ink-2); }

.jf-row--answer strong { font-size: 18px; line-height: 24px; color: var(--jf-ink); }

/* Недавно обновлено */

.jf-recent { padding-bottom: 72px; }

.jf-recent h2 { margin-bottom: 18px; }

.jf-recent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; }

.jf-row--recent { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 16px 14px; margin: 0 -14px; }

.jf-row--recent small { font-size: 13px; color: var(--jf-muted); font-weight: 400; }

.jf-row--recent span { font-size: 18px; line-height: 1.35; }

.jf-row--recent b { font-size: 16px; }

/* Реклама LiTRO */

.jf-ad-wrap { padding-top: 0; padding-bottom: 72px; }

.jf-ad { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 440px; background: var(--jf-dark); color: #fff !important; border-radius: 24px; }

.jf-ad__text { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px; }

.jf-ad__logo { height: 30px; width: auto; }

.jf-ad h2 { font-size: 42px; line-height: 46px; letter-spacing: -1px; }

.jf-ad p { font-size: 18px; line-height: 1.5; color: var(--jf-on-dark); opacity: .85; }

.jf-ad .jf-ad__services { font-size: 16px; line-height: 1.7; max-width: 460px; }

.jf-ad__actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

.jf-ad__rating { font-size: 14px; color: var(--jf-on-dark); opacity: .75; }

.jf-ad__media { position: relative; overflow: hidden; border-radius: 0 24px 24px 0; }

.jf-ad__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Партнёры */

.jf-partners { background: var(--jf-gray); padding: 40px 0 44px; }

.jf-partners .jf-section__head { margin-bottom: 26px; }

.jf-partners__title { font-size: 24px !important; line-height: 30px !important; letter-spacing: -.5px; }

.jf-marquee { overflow: hidden; }

.jf-marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: jfMarquee 52s linear infinite; }

.jf-marquee:hover .jf-marquee__track { animation-play-state: paused; }

@keyframes jfMarquee { to { transform: translateX(-50%); } }

/* Как проверяем */

.jf-proof { padding-top: 80px; padding-bottom: 88px; }

.jf-proof__chain { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); }

.jf-proof__step { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--jf-gray); border-radius: 20px; }

.jf-proof__step small { font-size: 14px; color: var(--jf-muted); }

.jf-proof__step b { font-size: 24px; line-height: 28px; font-variant-numeric: tabular-nums; }

.jf-proof__step em { font-style: normal; color: var(--jf-green); }

.jf-proof__step span { font-size: 16px; line-height: 1.5; color: var(--jf-ink-2); }

.jf-proof__step--dark { background: var(--jf-dark); color: #fff; }

.jf-proof__step--dark small, .jf-proof__step--dark span { color: var(--jf-on-dark); opacity: .8; }

.jf-proof__line { align-self: center; justify-self: center; width: 24px; height: 2px; background: var(--jf-line); }

.jf-proof > .jf-link { display: inline-block; margin-top: 26px; font-size: 18px; }

/* Закреплённая плашка: только телефон */

.jf-sticky { display: none; }

@media (max-width: 1180px) {
  .jf-hero__media { height: 460px; max-width: 640px; }
  .jf-hero__answer { left: 16px; }
  .jf-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jf-popular__grid, .jf-ad { grid-template-columns: 1fr; }
  .jf-ad__media { min-height: 320px; border-radius: 0 0 24px 24px; }
  .jf-recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .jf-hero__media { height: 330px; }
  .jf-hero__main { height: 190px; }
  .jf-hero__side { top: 202px; height: 128px; }
  .jf-hero__answer { top: 120px; left: 12px; padding: 10px 14px; }
  .jf-hero__answer b { font-size: 20px; }
  .jf-topics__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .jf-topic { min-height: 0; padding: 14px; border-radius: 16px; }
  .jf-topic span { display: none; }
  .jf-topic--lead { grid-column: 1 / -1; grid-row: auto; padding: 18px; }
  .jf-topic--lead p { display: none; }
  .jf-topic__head a { font-size: 22px; line-height: 28px; }
  .jf-row { font-size: 15px; }
  .jf-lead { padding: 20px; }
  .jf-lead__fig { font-size: 44px; }
  .jf-lead__title { font-size: 21px; line-height: 27px; }
  .jf-row--answer { grid-template-columns: 1fr; gap: 6px; }
  .jf-recent__grid, .jf-proof__chain { grid-template-columns: 1fr; }
  .jf-proof__line { display: none; }
  .jf-proof__chain { gap: 10px; }
  .jf-ad h2 { font-size: 26px; line-height: 1.2; }
  .jf-ad__text { padding: 24px; }
  .jf-ad__media { min-height: 220px; }
  .jf-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--jf-line); box-shadow: 0 -6px 18px rgba(0,20,10,.10); }
  .jf-sticky .jf-btn { flex: 1; height: 52px; font-size: 17px; }
  .jf-sticky__call { flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--jf-ink); background: var(--jf-soft); border: 1px solid var(--jf-soft-line); border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .jf-marquee__track { animation: none !important; transition: none !important; }
}
