/* heedy.ru — сдержанная швейцарская подача: белый, серые карточки, гротеск, тёмный блок опыта.
   Оранжевый Heedy — только в лисе и мелких акцентах. */
:root {
  --bg: #FFFFFF;
  --card: #F4F5F7;
  --card-hover: #EEF0F3;
  --text: #0B0B0C;
  --muted: #84858A;
  --line: #ECEDF0;
  --pill: #EDEEF2;
  --dark: #141415;
  --dark-card: #212123;
  --dark-muted: #8E8E93;
  --accent: #F36A06;
  --radius: 32px;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
svg { width: 1em; height: 1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1400px, 100% - 80px); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }
section { margin-block: clamp(80px, 11vw, 160px); }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ── Прелоадер ─────────────────────────────────── */
.pre {
  position: fixed; inset: 0; z-index: 100; background: var(--dark); color: #fff;
  display: grid; place-items: center; transition: opacity .5s ease, visibility .5s;
}
.pre__name { font-size: 22px; font-weight: 500; letter-spacing: -.02em; padding-bottom: 6px; position: relative; }
.pre__name::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: var(--p, 0%); background: #fff; transition: width .1s linear; }
.pre__num { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.pre--done { opacity: 0; visibility: hidden; }
.pre { animation: pre-out .4s 2.5s forwards; } /* страховка, если JS не загрузился */
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }
html.no-pre .pre { display: none; }

/* ── Шапка ─────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.top__nav { display: flex; gap: 32px; font-size: 17px; }
.top__nav a, .top__name { text-decoration: none; }
.top__nav a { color: #55565B; transition: color .2s; }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--text); }
.top__name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.top__name img { width: 22px; }
.top__right { display: flex; align-items: center; justify-content: end; gap: 20px; font-size: 16px; color: var(--muted); }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--pill); }
.seg a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: #3A3B3F; font-size: 15px; transition: background .2s, box-shadow .2s; }
.seg a:last-child { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); color: var(--text); }
.seg a:hover { background: #fff; }
@media (max-width: 900px) {
  .top__in { grid-template-columns: 1fr auto; }
  .top__nav, .top__tz { display: none; }
  .top__name { font-size: 17px; }
}

/* ── Hero ──────────────────────────────────────── */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(56px, 7vw, 96px); }
.hero__ava { width: clamp(160px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--card); }
.hero__ava img, .hero__ava video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); max-width: 15em; margin: 48px 0 18px; }
.hero__sub { font-size: clamp(19px, 1.8vw, 24px); color: var(--muted); max-width: 34em; letter-spacing: -.015em; }
.hero__sub i { font-style: normal; margin: 0 .25em; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.link {
  display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 999px;
  background: var(--pill); text-decoration: none; font-size: 19px; letter-spacing: -.015em;
  transition: background .2s, transform .2s;
}
.link:hover { background: #E2E4E9; }
.link:active { transform: scale(.97); }
.link--lg { padding: 15px 30px; }
.link--dark { background: var(--text); color: #fff; }
.link--dark:hover { background: #2a2a2c; }

/* ── Форматы: большие серые карточки ───────────── */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--card); border-radius: var(--radius); min-height: 640px;
  transition: background .3s;
}
.case:hover { background: var(--card-hover); }
.case__text { padding: clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px) 0; }
.case h3 { font-size: clamp(28px, 2.8vw, 42px); color: var(--text); max-width: 14em; transition: color .3s; }
.case p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 30em; }
.case__img { margin: 40px 0 0 clamp(28px, 3.5vw, 48px); flex: 1; min-height: 300px; position: relative; overflow: hidden; border-radius: 22px 0 0 0; }
.case__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.case:hover .case__img img { transform: scale(1.035); }
.case__img--contain { margin-right: clamp(28px, 3.5vw, 48px); border-radius: 22px 22px 0 0; background: #fff; }
.case__img--contain img, .case__img--top img { object-fit: cover; object-position: 50% 0; }
/* скриншот телефона — «устройство» по центру, как в портфолио */
.case__phone { flex: 1; display: flex; justify-content: center; align-items: end; margin-top: 40px; min-height: 300px; overflow: hidden; }
.case__phone img {
  width: min(320px, 62%); border: 10px solid #111; border-bottom: 0; border-radius: 44px 44px 0 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); transition: transform .7s cubic-bezier(.2, .7, .2, 1);
  max-height: 520px; object-fit: cover; object-position: 50% 0;
}
.case:hover .case__phone img { transform: translateY(-10px); }
@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .case__img { min-height: 260px; }
}

/* ── Форматы: сетка на один экран ─────────────── */
.fmts { margin-top: clamp(56px, 7vw, 96px); }
.fmts__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.fmts__head h2 { font-size: clamp(36px, 3.6vw, 52px); }
.fmts__head p { color: var(--muted); font-size: 18px; }
.fmts__head a { color: var(--text); }
.fmts__grid {
  display: grid; gap: 12px;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: min(calc(100svh - 68px - 120px), 760px); min-height: 600px;
}
.fmt {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; min-height: 0;
  background: var(--card); border-radius: 26px; transition: background .3s;
}
.fmt:hover { background: var(--card-hover); }
.fmt__img { flex: 1 1 auto; min-height: 0; margin: 8px 8px 0; border-radius: 20px; overflow: hidden; background: #E7E9ED; }
.fmt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.fmt:hover .fmt__img img { transform: scale(1.05); }
.fmt__img--svg { background: #fff; display: grid; place-items: center; padding: 10px 12px; }
.fmt__img--svg svg { width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.fmt:hover .fmt__img--svg svg { transform: scale(1.04); }
.fmt__body { flex: none; padding: 14px 18px 18px; }
.fmt__tag { font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.fmt h3 { font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.025em; margin-top: 4px; line-height: 1.12; }
.fmt p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmt:not(.fmt--big) .fmt__body { height: 148px; }
.fmt--big { grid-row: span 2; }
.fmt--big .fmt__body { padding: 22px 26px 26px; }
.fmt--big h3 { font-size: clamp(24px, 2.2vw, 34px); }
.fmt--big p { font-size: 16.5px; -webkit-line-clamp: 4; }
@media (max-width: 1000px) {
  .fmts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; min-height: 0; }
  .fmt--big { grid-column: span 2; grid-row: auto; }
  .fmt__img { flex: none; aspect-ratio: 4 / 3; }
  .fmt:not(.fmt--big) .fmt__body { height: auto; }
  .fmt--big .fmt__img { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .fmts__head { flex-direction: column; gap: 8px; }
  .fmts__grid { gap: 8px; }
  .fmt__body { padding: 10px 12px 14px; }
  .fmt h3 { font-size: 16px; }
  .fmt p { display: none; }
  .fmt--big p { display: -webkit-box; font-size: 15px; }
  .fmt__tag { font-size: 12px; }
}

/* ── Тёмный блок опыта ─────────────────────────── */
.dark { background: var(--dark); color: #fff; padding-block: clamp(72px, 9vw, 128px); margin-block: 0; }
.shead { text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.shead h2 { font-size: clamp(40px, 4.6vw, 64px); }
.shead p { margin-top: 14px; font-size: clamp(19px, 1.8vw, 24px); color: var(--muted); }
.dark .shead p { color: var(--dark-muted); }
.exp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.exp__card { background: var(--dark-card); border-radius: var(--radius); padding: 32px; min-height: 330px; display: flex; flex-direction: column; }
.exp__card h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.mono {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #fff; color: var(--dark); font-size: 14px; font-weight: 700; letter-spacing: -.02em;
}
.exp__card:first-child .mono { background: var(--accent); color: #fff; }
.exp__role { margin-top: 22px; color: var(--dark-muted); font-size: 18px; }
.exp__years { margin-top: 14px; color: var(--dark-muted); font-size: 18px; font-variant-numeric: tabular-nums; }
.exp__desc { margin-top: auto; padding-top: 40px; font-size: 18px; color: #EDEDEF; }
@media (max-width: 1000px) { .exp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .exp { grid-template-columns: 1fr; } .exp__card { min-height: 0; padding: 26px; } .exp__desc { padding-top: 22px; } .seg a { padding: 7px 11px; } }

/* ── Блог на главной: квадраты с подписью ──────── */
.play { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.play__item { text-decoration: none; text-align: center; }
.play__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.play__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.play__item:hover img { transform: scale(1.04); }
.play__item h3 { margin-top: 22px; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; }
.play__item p { margin-top: 6px; font-size: 16px; color: var(--muted); }
@media (max-width: 800px) { .play { grid-template-columns: 1fr; gap: 40px; } }

/* ── Рубрики блога на главной ─────────────────── */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic { background: var(--card); border-radius: 26px; padding: 26px 26px 24px; display: flex; flex-direction: column; min-height: 340px; }
.topic__head { text-decoration: none; display: block; padding-bottom: 18px; border-bottom: 1px solid #E2E4E9; }
.topic__head h3 { font-size: clamp(20px, 1.55vw, 25px); white-space: nowrap; letter-spacing: -.03em; }
.topic__head span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.topic__head:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.topic__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.topic__list a { display: block; padding: 8px 0; text-decoration: none; font-size: 16px; line-height: 1.35; color: #3A3B3F; transition: color .2s; }
.topic__list a:hover { color: var(--text); }
.topic__all { margin-top: auto; padding-top: 16px; font-size: 15px; color: var(--muted); text-decoration: none; }
.topic__all:hover { color: var(--text); }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .topics { grid-template-columns: 1fr; } .topic { min-height: 0; } }

/* ── Подписка ──────────────────────────────────── */
.sub { text-align: center; }
.sub__box { background: var(--card); border-radius: var(--radius); padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 48px); }
.sub h2 { font-size: clamp(34px, 4vw, 56px); }
.sub__lead { margin: 16px auto 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 30em; }
.sub__form { max-width: 520px; margin: 36px auto 0; }
.sub__row { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.sub__row:focus-within { border-color: var(--text); }
.sub__row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 18px var(--font); padding: 0 18px; color: var(--text); }
.sub__row input:focus { outline: none; }
.sub__row button {
  border: 0; border-radius: 999px; padding: 14px 24px; background: var(--text); color: #fff;
  font: 500 17px var(--font); cursor: pointer; transition: background .2s;
}
.sub__row button:hover { background: #2a2a2c; }
.sub__agree { display: flex; gap: 10px; justify-content: center; align-items: start; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; }
.sub__agree input { accent-color: var(--text); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.sub__msg { min-height: 1.4em; margin-top: 10px; font-size: 15px; font-weight: 500; }
.sub--compact .sub__box { padding: 40px 28px; }
.sub--compact h2 { font-size: 32px; }
@media (max-width: 480px) {
  .sub__row { flex-direction: column; border-radius: 22px; padding: 6px; }
  .sub__row input { padding: 14px 12px; }
}

/* ── Финал ─────────────────────────────────────── */
.final { text-align: center; max-width: 820px; }
.final h2 { font-size: clamp(40px, 5vw, 72px); }
.final > p { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.final__local { margin-top: 56px !important; font-size: 16px !important; }

/* ── Блог: лента ───────────────────────────────── */
.bloghero { text-align: center; margin: clamp(56px, 7vw, 96px) 0 48px; }
.bloghero h1 { font-size: clamp(44px, 6vw, 88px); }
.bloghero .lead { margin: 18px auto 0; font-size: clamp(19px, 1.8vw, 24px); color: var(--muted); max-width: 32em; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 0; background: var(--pill);
  font: 400 17px var(--font); color: #3A3B3F; cursor: pointer; transition: background .2s, color .2s;
}
.chip:hover { background: #E2E4E9; }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; }
@media (max-width: 720px) { .chips { justify-content: start; overflow-x: auto; flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .chip { white-space: nowrap; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--card); border-radius: 28px; transition: background .3s;
}
.card:hover { background: var(--card-hover); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; margin: 10px 10px 0; border-radius: 20px; background: #E7E9ED; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img--ph { display: grid; place-items: center; padding: 28px; background: #fff; }
.card__img--ph span { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; text-align: center; color: #C9CACF; line-height: 1.1; }
.card__body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--muted); }
.card h3 { font-size: 23px; letter-spacing: -.03em; line-height: 1.15; }
.card p { font-size: 16px; color: var(--muted); line-height: 1.5; }
.card[hidden] { display: none; }
.tag-pin { color: var(--accent); }

/* ── Пост ──────────────────────────────────────── */
.post { max-width: 760px; margin-top: 48px; }
.back { color: var(--muted); text-decoration: none; font-size: 16px; }
.back:hover { color: var(--text); }
.post__head { margin: 32px 0 36px; }
.post__head .card__meta { font-size: 16px; }
.post__head h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 18px; }
.post__gallery { margin: 0 0 40px; display: grid; gap: 8px; }
.post__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; max-height: 680px; background: var(--card); }
.post__gallery--2 { grid-template-columns: 1fr 1fr; }
.post__gallery--3 { grid-template-columns: repeat(3, 1fr); }
.post__gallery--2 img, .post__gallery--3 img { aspect-ratio: 3 / 4; }
.prose { font-size: 20px; line-height: 1.65; letter-spacing: -.01em; }
.prose p { margin: 0 0 1.05em; }
.prose h1 { font-size: clamp(34px, 4.5vw, 52px); margin: 24px 0; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #B9BAC0; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.4em 0; padding: 22px 26px; border-radius: 20px; background: var(--card); }
.prose strong { font-weight: 650; }
.post__orig { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 36px; color: var(--muted); font-size: 16px; }
.post__orig a { display: inline-flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--pill); }
.post__orig a:hover { background: #E2E4E9; }
.draft { background: #FFF1D6; padding: 12px 18px; border-radius: 14px; font-size: 16px; }

.cta { margin-top: 64px; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius); background: var(--dark); color: #fff; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cta p { margin-top: 12px; color: var(--dark-muted); font-size: 18px; }
.cta .links { justify-content: start; margin-top: 28px; }
.cta .link { background: var(--dark-card); color: #fff; font-size: 17px; }
.cta .link:hover { background: #2e2e31; }
.cta .link--light { background: #fff; color: var(--text); }
.cta .link--light:hover { background: #E2E4E9; }
.related { margin-top: 80px; }
.related h2 { font-size: 30px; margin-bottom: 24px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related .card__img { display: none; }

/* ── Подвал ────────────────────────────────────── */
.foot { margin-top: clamp(80px, 10vw, 140px); padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

/* ── Появление при скролле ─────────────────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .prose { font-size: 18px; }
  .link { font-size: 17px; padding: 11px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 1300px) { .topic__head h3 { white-space: normal; min-height: 2.12em; } }
@media (max-width: 640px) { .topic__head h3 { min-height: 0; } }

/* Подсказка после клика «написать» */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(520px, calc(100% - 32px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff; padding: 14px 20px; border-radius: 16px; font-size: 15px; line-height: 1.4;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35); transition: opacity .3s, transform .3s;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

/* ── 404 ───────────────────────────────────────── */
.nf { padding-bottom: 40px; }
.nf__hero { margin-block: clamp(48px, 8vw, 96px) 40px; text-align: center; }
.nf__code { display: flex; justify-content: center; align-items: center; gap: .04em; font-size: clamp(120px, 24vw, 300px); line-height: .9; letter-spacing: -.06em; font-weight: 700; }
.nf__fox { display: grid; place-items: center; width: .82em; height: .82em; border-radius: 50%; background: var(--card); transition: transform .25s ease-out; }
.nf__fox img { width: 62%; animation: nf-peek 3.2s ease-in-out infinite; }
@keyframes nf-peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
.nf__hero h2 { margin-top: 32px; font-size: clamp(30px, 4.4vw, 56px); }
.nf__hero .lead { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }
.nf__routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nf__route { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 24px 24px 56px; border-radius: 24px; background: var(--card); text-decoration: none; transition: background .2s, transform .2s; }
.nf__route:hover { background: var(--card-hover); transform: translateY(-3px); }
.nf__route small { font-size: 14px; color: var(--muted); }
.nf__route b { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.nf__route span { position: absolute; left: 24px; bottom: 20px; font-size: 22px; transition: transform .2s; }
.nf__route:hover span { transform: translateX(6px); }
.nf__route--accent { background: var(--dark); color: #fff; }
.nf__route--accent:hover { background: var(--dark-card); }
.nf__route--accent small { color: var(--accent); }
.nf__read { margin-block: 56px 0; }
.nf__readhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.nf__readhead h3 { font-size: 22px; letter-spacing: -.02em; }
.nf__more { flex: none; white-space: nowrap; border: 0; background: var(--pill); border-radius: 999px; padding: 8px 16px; font: 500 15px var(--font); cursor: pointer; }
.nf__more:hover { background: var(--line); }
.nf__post { display: block; padding: 28px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; transition: border-color .2s; }
.nf__post:hover { border-color: var(--text); }
.nf__post small { color: var(--muted); font-size: 14px; }
.nf__post b { display: block; margin: 8px 0 8px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.025em; }
.nf__post p { color: var(--muted); font-size: 17px; }
@media (max-width: 960px) { .nf__routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nf__routes { grid-template-columns: 1fr; } .nf__route { min-height: 0; padding-bottom: 24px; } .nf__route span { left: auto; right: 22px; bottom: auto; top: 50%; transform: translateY(-50%); } .nf__route:hover span { transform: translate(6px, -50%); } }
