/*
 * Витрина журнала AUTERO: общая основа (токены, шапка, подвал, кнопки, блок юриста, карточки списка).
 * Дизайн-система: живой litro.kz (docs/litro-design-system.md, снимок 05.10.2026).
 * Подключается на всех страницах витрины вместе с файлом страницы; статьи используют journal-home.css и legal-article.css.
 */

@font-face { font-family: "Uber Move Text"; src: url("/wp-content/mu-plugins/litro-assets/uber-move-text-regular.woff") format("woff"); font-weight: 400; font-display: swap; }

@font-face { font-family: "Uber Move Text"; src: url("/wp-content/mu-plugins/litro-assets/uber-move-text-medium.woff") format("woff"); font-weight: 500; font-display: swap; }

@font-face { font-family: "Uber Move Text"; src: url("/wp-content/mu-plugins/litro-assets/uber-move-text-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --jf-ink: #00140A;
  --jf-ink-2: #3d4a43;
  --jf-muted: #5b6b62;
  --jf-green: #008341;
  --jf-green-1: #1BA14C;
  --jf-green-2: #0E7A2F;
  --jf-soft: #EEF6F2;
  --jf-soft-line: #CCEDDC;
  --jf-gray: #F2F2F3;
  --jf-line: #D3D3D7;
  --jf-field: #E3E6E5;
  --jf-dark: #00140A;
  --jf-on-dark: #EEF6F2;
  --jf-wrap: 1240px;
  --jf-ease: cubic-bezier(.22, 1, .36, 1);
}

body.autero-journal-page { margin: 0; background: #fff; }

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

.jf-main *, .jf-header *, .jf-footer * { box-sizing: border-box; }

.jf-main a, .jf-header a, .jf-footer a { color: inherit; text-decoration: none; }

.jf-main h1, .jf-main h2, .jf-main h3 { text-wrap: balance; margin: 0; font-weight: 700; }

.jf-main p { text-wrap: pretty; margin: 0; }

.jf-main img { display: block; max-width: 100%; }

.jf-wrap { max-width: var(--jf-wrap); margin: 0 auto; padding: 0 32px; }

.jf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.jf-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--jf-ink); padding: 10px 14px; border-radius: 8px; }

.jf-skip:focus { top: 12px; }

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

/* Кнопки и ссылки */

.jf-btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 26px; border: 0; border-radius: 16px; font: 700 18px/1 "Uber Move Text", Arial, sans-serif; color: #fff !important; background: linear-gradient(180deg, var(--jf-green-1), var(--jf-green-2)); box-shadow: 0 8px 16px -4px rgba(0,112,55,.5), inset 4px 4px 8px -2px rgba(255,255,255,.25), inset -4px -4px 8px -2px #007037; cursor: pointer; white-space: nowrap; transition: transform .2s var(--jf-ease), filter .2s var(--jf-ease); }

.jf-btn:hover { filter: brightness(1.06); }

.jf-btn:active { transform: scale(.98); }

.jf-btn--soft { background: var(--jf-soft); color: var(--jf-ink) !important; border: 1px solid var(--jf-soft-line); box-shadow: 0 1px 0 rgba(0,0,0,.15); font-weight: 500; }

.jf-link { color: var(--jf-green) !important; font-weight: 500; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 5px; text-decoration-color: rgba(0,131,65,.35) !important; transition: text-decoration-color .25s var(--jf-ease); }

.jf-link:hover { text-decoration-color: var(--jf-green) !important; }

/* Шапка (как jh-header у статей v2) */

.jf-header { position: sticky; top: 0; z-index: 30; background: var(--jf-dark); border-bottom: 1px solid rgba(238,246,242,.08); }

.jf-header__inner { height: 69px; display: flex; align-items: center; gap: 40px; }

.jf-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.jf-brand__autero { height: 30px; width: auto; background: #fff; padding: 4px 7px; border-radius: 4px; box-sizing: content-box; }

.jf-brand__x { color: #8A8F8C; font-size: 14px; }

.jf-brand__litro { height: 22px; width: auto; }

.jf-nav { display: flex; gap: 28px; flex: 1; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 500; }

.jf-nav > a, .jf-nav summary { color: #fff; cursor: pointer; }

.jf-nav > a:hover, .jf-nav summary:hover { color: var(--jf-soft-line); }

.jf-nav__more { position: relative; }

.jf-nav__more summary { list-style: none; }

.jf-nav__more summary::-webkit-details-marker { display: none; }

.jf-nav__more > div { position: absolute; right: 0; top: calc(100% + 18px); min-width: 260px; display: flex; flex-direction: column; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(0,20,10,.35); }

.jf-nav__more > div a { padding: 10px 12px; border-radius: 10px; color: var(--jf-ink); }

.jf-nav__more > div a:hover { background: var(--jf-gray); }

.jf-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }

.jf-menu__icon, .jf-menu__icon::before, .jf-menu__icon::after { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: ""; }

.jf-menu__icon::before { position: absolute; top: -7px; }

.jf-menu__icon::after { position: absolute; top: 7px; }

.jf-mobile-nav { background: var(--jf-dark); border-top: 1px solid rgba(238,246,242,.08); }

.jf-mobile-nav .jf-wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }

.jf-mobile-nav a { color: #fff; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(238,246,242,.08); }

/* Свечение за курсором на тёмных блоках */

.jf-glow { position: relative; overflow: hidden; isolation: isolate; }

.jf-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 78%) var(--my, 22%), rgba(27,161,76,.30), rgba(27,161,76,0) 62%); opacity: .7; transition: opacity .5s var(--jf-ease); }

.jf-glow:hover::before { opacity: 1; }

/* Первый экран */

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

.jf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 80px; }

.jf-hero__copy { display: flex; flex-direction: column; gap: 22px; }

.jf-badge { align-self: flex-start; background: var(--jf-green-1); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }

.jf-hero h1 { font-size: 52px; line-height: 1.07; letter-spacing: -1.5px; }

.jf-hero__lead { font-size: 18px; line-height: 1.55; color: var(--jf-on-dark); opacity: .85; max-width: 580px; }

.jf-search { display: flex; gap: 10px; max-width: 600px; margin-top: 6px; }

.jf-search input { flex: 1; min-width: 0; height: 56px; padding: 0 20px; font: 400 17px "Uber Move Text", Arial, sans-serif; color: var(--jf-ink); background: #fff; border: 1px solid var(--jf-field); border-radius: 16px; }

.jf-search input::placeholder { color: #6b7770; }

.jf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.jf-chips > span { font-size: 14px; color: var(--jf-on-dark); opacity: .7; margin-right: 4px; }

.jf-chip { font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid rgba(238,246,242,.32); border-radius: 999px; color: var(--jf-on-dark) !important; transition: background-color .2s var(--jf-ease), border-color .2s var(--jf-ease); }

.jf-chip:hover { background: rgba(238,246,242,.12); border-color: var(--jf-on-dark); }

.jf-chip span { opacity: .65; font-variant-numeric: tabular-nums; }

.jf-float { animation: jfFloat 9s var(--jf-ease) infinite alternate; }

.jf-float--2 { animation-duration: 11s; animation-delay: -4s; }

.jf-float--3 { animation-duration: 7s; animation-delay: -2s; }

@keyframes jfFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* Секции */

.jf-section { padding-top: 72px; padding-bottom: 24px; }

.jf-section h2 { font-size: 40px; line-height: 48px; letter-spacing: -1px; }

.jf-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }

.jf-section__head .jf-link { font-size: 18px; }

.jf-section__lead { margin: 6px 0 28px !important; font-size: 18px; color: var(--jf-muted); max-width: 680px; }

/* Блок юриста */

.jf-consult-wrap { padding-top: 64px; padding-bottom: 64px; }

.jf-consult-wrap--compact { padding-top: 16px; padding-bottom: 24px; }

.jf-consult { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-right: 44px; background: var(--jf-dark); color: #fff; border-radius: 24px; }

.jf-consult__img { width: 280px; height: 260px; object-fit: cover; object-position: center 40%; border-radius: 24px 0 0 24px; }

.jf-consult__text { display: flex; flex-direction: column; gap: 10px; padding: 36px 0; }

.jf-consult__text h2 { font-size: 32px; line-height: 38px; letter-spacing: -1px; }

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

.jf-consult__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.jf-consult__phone { color: var(--jf-on-dark) !important; text-align: center; font-size: 16px; }

.jf-consult__phone b { color: #fff; }

.jf-consult--compact { grid-template-columns: 88px minmax(0, 1fr) auto; padding: 24px 32px; gap: 24px; }

.jf-consult--compact .jf-consult__img { width: 88px; height: 88px; border-radius: 16px; }

.jf-consult--compact .jf-consult__text { padding: 0; }

.jf-consult--compact .jf-consult__text h2 { font-size: 22px; line-height: 28px; letter-spacing: -.3px; }

.jf-consult--compact .jf-consult__text p { font-size: 16px; }

.jf-logo { height: 44px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .65; transition: filter .3s var(--jf-ease), opacity .3s var(--jf-ease); }

.jf-logo:hover { filter: none; opacity: 1; }

.jf-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--jf-on-dark); opacity: .7; }

.jf-crumbs a { color: var(--jf-on-dark) !important; }

/* Подвал (как litro.kz) */

.jf-footer { background: var(--jf-dark); color: var(--jf-on-dark); }

.jf-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }

.jf-footer__logo img { height: 32px; width: auto; }

.jf-footer__links { display: flex; flex-direction: column; gap: 14px; font-size: 16px; font-weight: 500; }

.jf-footer__links a:hover, .jf-footer__mail:hover { color: #fff; }

.jf-footer__contacts { display: flex; flex-direction: column; gap: 14px; }

.jf-footer__mail { font-weight: 500; }

.jf-footer__phone { color: #fff !important; font-size: 28px; font-weight: 700; }

.jf-footer__social { display: flex; gap: 12px; }

.jf-footer__social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(238,246,242,.25); border-radius: 50%; }

.jf-footer__bottom { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(238,246,242,.12); font-size: 13px; }

.jf-footer__bottom a { text-decoration: underline !important; }

@supports (animation-timeline: view()) {
  .jf-reveal { animation: jfUp linear both; animation-timeline: view(); animation-range: entry 5% entry 40%; }
}

@keyframes jfUp { from { opacity: 0; transform: translateY(20px); } }

/* Круглый курсор: только мышь */

.jf-cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  body.jf-has-cursor .jf-main, body.jf-has-cursor .jf-main a, body.jf-has-cursor .jf-main button, body.jf-has-cursor .jf-header a, body.jf-has-cursor .jf-header summary, body.jf-has-cursor .jf-footer a { cursor: none; }
  body.jf-has-cursor .jf-main input { cursor: text; }
  body.jf-has-cursor .jf-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1.5px solid #fff; border-radius: 50%; mix-blend-mode: difference; pointer-events: none; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0); transition: width .25s var(--jf-ease), height .25s var(--jf-ease), margin .25s var(--jf-ease), background-color .25s var(--jf-ease), opacity .2s; }
  body.jf-has-cursor .jf-cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255,255,255,.9); }
  body.jf-has-cursor .jf-cursor.is-hidden { opacity: 0; }
}

@media (max-width: 1180px) {
  .jf-nav { display: none; }
  .jf-menu { display: block; }
  .jf-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .jf-consult { grid-template-columns: 200px minmax(0, 1fr); }
  .jf-consult__img { width: 200px; }
  .jf-consult__actions { grid-column: 1 / -1; flex-direction: row; padding: 0 0 28px 28px; align-items: center; }
  .jf-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .jf-wrap { padding: 0 16px; }
  .jf-header__inner { height: 60px; gap: 12px; }
  .jf-brand__autero { height: 24px; padding: 3px 6px; }
  .jf-brand__litro { height: 18px; }
  .jf-hero__grid { padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .jf-hero h1 { font-size: 32px; line-height: 1.12; letter-spacing: -1px; }
  .jf-hero__lead { font-size: 16px; }
  .jf-search .jf-btn { padding: 0 18px; font-size: 16px; }
  .jf-section { padding-top: 40px; }
  .jf-section h2 { font-size: 26px; line-height: 32px; }
  .jf-section__head { flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .jf-consult-wrap { padding-top: 32px; padding-bottom: 32px; }
  .jf-consult, .jf-consult--compact { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .jf-consult__img, .jf-consult--compact .jf-consult__img { width: 64px; height: 64px; border-radius: 14px; }
  .jf-consult__text { padding: 0; }
  .jf-consult__text h2 { font-size: 20px; line-height: 1.25; }
  .jf-consult__text p { font-size: 15px; }
  .jf-consult__actions { padding: 0; flex-direction: column; }
  .jf-footer__grid { grid-template-columns: 1fr; padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .jf-main *, .jf-header *, .jf-footer *, .jf-float, .jf-reveal { animation: none !important; transition: none !important; }
  .jf-cursor { display: none !important; }
}
