/* ============================================================
   «Атлас трёх систем» — homepage concept + sitewide engravings
   ============================================================ */

/* engravings are whitened → multiply onto parchment */
.nf-atlas img, .nf-method__art img, .nf-art,
.nf-pagehead__art img, .nf-geo__art img, .nf-links__medal img { mix-blend-mode: multiply; }

/* ---------- HERO ---------- */
.nf-atlas { padding: clamp(28px,4vw,52px) clamp(16px,3vw,40px) clamp(36px,5vw,60px); }
.nf-atlas__frame {
  max-width: 1180px; margin: 0 auto; border: 1px solid var(--nf-hair); border-radius: var(--nf-r-card);
  padding: clamp(28px,4.5vw,60px) clamp(20px,4.5vw,60px);
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(24px,4vw,56px); align-items: center;
}
.nf-atlas__title { margin-top: 18px; font-weight: 400; max-width: 13ch; }
.nf-atlas__fleuron { margin-top: 20px; justify-content: flex-start; }
.nf-atlas__fleuron .r { max-width: 60px; }
.nf-atlas__sub { margin-top: 18px; max-width: 52ch; }

.nf-atlas__legend { list-style: none; margin: 26px 0 0; border-top: 1px solid var(--nf-hair-2); }
.nf-atlas__leg { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--nf-hair-2); color: var(--nf-ink); text-decoration: none; transition: background .2s, padding .2s; }
.nf-atlas__leg:hover, .nf-atlas__leg.is-hot { background: var(--nf-paper-card); padding-left: 12px; }
.nf-atlas__legnum { font-family: var(--nf-serif); font-style: italic; font-size: 26px; color: var(--nf-clay); width: 38px; flex: none; text-align: center; }
.nf-atlas__legbody { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nf-atlas__legname { font-family: var(--nf-serif); font-size: 21px; color: var(--nf-green); line-height: 1.2; }
.nf-atlas__legsys { font-family: var(--nf-sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-meta); }
.nf-atlas__legsys em { font-family: var(--nf-serif); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--nf-meta-2); }
.nf-atlas__legarr { color: var(--nf-clay); font-size: 18px; transition: transform .2s; }
.nf-atlas__leg:hover .nf-atlas__legarr { transform: translateX(4px); }
.nf-atlas__ctas { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }

.nf-atlas__plate { margin: 0; }
.nf-atlas__imgwrap { position: relative; max-width: 460px; margin: 0 auto; }
.nf-atlas__imgwrap img { display: block; width: 100%; height: auto; }
.nf-atlas__pin { position: absolute; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 8px; text-decoration: none; z-index: 2; }
.nf-atlas__pindot {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--nf-paper-card); border: 1px solid var(--nf-green); color: var(--nf-green);
  font-family: var(--nf-serif); font-style: italic; font-size: 16px;
  box-shadow: 0 0 0 5px rgba(239,231,211,.65); transition: background .2s, color .2s, transform .2s;
}
.nf-atlas__pin::before { content: ""; position: absolute; left: 19px; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid var(--nf-clay); opacity: 0; animation: nf-pulse 2.8s ease-out infinite; }
.nf-atlas__pin:nth-of-type(2)::before { animation-delay: .9s; }
.nf-atlas__pin:nth-of-type(3)::before { animation-delay: 1.8s; }
@keyframes nf-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.nf-atlas__pinlbl {
  position: absolute; left: 48px; white-space: nowrap; background: var(--nf-green); color: var(--nf-paper-lt);
  font-family: var(--nf-sans); font-size: 12px; letter-spacing: .04em; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.nf-atlas__pin:hover .nf-atlas__pindot, .nf-atlas__pin.is-hot .nf-atlas__pindot, .nf-atlas__pin:focus-visible .nf-atlas__pindot { background: var(--nf-green); color: var(--nf-paper-lt); transform: scale(1.08); }
.nf-atlas__pin:hover .nf-atlas__pinlbl, .nf-atlas__pin.is-hot .nf-atlas__pinlbl, .nf-atlas__pin:focus-visible .nf-atlas__pinlbl { opacity: 1; transform: none; }
.nf-atlas__cap { text-align: center; font-family: var(--nf-serif); font-style: italic; font-size: 14px; color: var(--nf-meta); margin-top: 10px; }
.nf-atlas__stats { max-width: 1180px; margin-left: auto; margin-right: auto; border-top: 0; }

@media (prefers-reduced-motion: reduce) { .nf-atlas__pin::before { animation: none; } }

@media (max-width: 900px) {
  .nf-atlas__frame { grid-template-columns: 1fr; }
  .nf-atlas__plate { order: -1; }
  .nf-atlas__imgwrap { max-width: 320px; }
  .nf-atlas__title { max-width: none; }
}
@media (max-width: 480px) {
  .nf-atlas__pinlbl { display: none; }
  .nf-atlas__pindot { width: 32px; height: 32px; font-size: 14px; }
}

/* ---------- INDEX OF SIGNS ---------- */
.nf-index__lead { max-width: 60ch; margin: 16px auto 0; }
.nf-index__search { max-width: 560px; margin: 30px auto 0; }
.nf-index__input {
  width: 100%; border: 0; border-bottom: 1px solid var(--nf-hair); background: transparent; outline: none;
  font-family: var(--nf-serif); font-size: 20px; color: var(--nf-ink); padding: 12px 4px; text-align: center;
}
.nf-index__input:focus { border-bottom-color: var(--nf-clay); }
.nf-index__cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px,3vw,40px); margin-top: 36px; }
.nf-index__col { border-top: 2px solid var(--nf-green); padding-top: 14px; }
.nf-index__col.is-empty { opacity: .35; }
.nf-index__colhead { display: flex; align-items: baseline; gap: 10px; font-family: var(--nf-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--nf-meta); }
.nf-index__colnum { font-family: var(--nf-serif); font-style: italic; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--nf-clay); }
.nf-index__list { list-style: none; margin: 12px 0 0; }
.nf-index__list li[hidden] { display: none; }
.nf-index__list a { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; color: var(--nf-ink); text-decoration: none; font-family: var(--nf-serif); font-size: 18px; }
.nf-index__list a:hover .nf-index__sign { color: var(--nf-clay); }
.nf-index__dots { flex: 1; border-bottom: 1px dotted var(--nf-hair-4); transform: translateY(-4px); min-width: 16px; }
.nf-index__ref { font-style: italic; color: var(--nf-meta); font-size: 15px; }
.nf-index__go { display: inline-block; margin-top: 14px; font-family: var(--nf-sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--nf-green); text-decoration: none; border-bottom: 1px solid currentColor; }
.nf-index__go:hover { color: var(--nf-clay); }
.nf-index__empty { text-align: center; margin-top: 26px; font-family: var(--nf-serif); font-size: 18px; color: var(--nf-body); }
.nf-index__empty a { color: var(--nf-clay); }
.nf-index__note { text-align: center; margin-top: 30px; font-family: var(--nf-sans); font-size: 12px; color: var(--nf-meta-2); }
@media (max-width: 820px) { .nf-index__cols { grid-template-columns: 1fr; } }

/* ---------- CONNECTIONS (dark band) ---------- */
.nf-links { background: var(--nf-green); color: var(--nf-paper-lt); }
.nf-links .nf-h2 { color: var(--nf-paper-lt); }
.nf-links__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(28px,5vw,72px); align-items: center; margin-top: 40px; }
.nf-links__diagram { position: relative; width: 100%; max-width: 400px; aspect-ratio: 400/360; margin: 0 auto; color: var(--nf-gold); }
.nf-links__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-links__medal {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: translate(-50%,-50%);
  background: var(--nf-paper-card); border: 1px solid var(--nf-gold); box-shadow: 0 0 0 6px var(--nf-green), 0 0 0 7px rgba(199,154,94,.5);
}
.nf-links__medal img { width: 100%; height: 100%; object-fit: contain; padding: 3%; transform: scale(1.12); }
.nf-links__medal--top { left: 50%; top: 19.5%; }
.nf-links__medal--right { left: 82.5%; top: 80.5%; }
.nf-links__medal--left { left: 17.5%; top: 80.5%; }
.nf-links__medalnum { position: absolute; right: 12%; bottom: 8%; font-family: var(--nf-serif); font-style: italic; font-size: 18px; color: var(--nf-clay); }
.nf-links__list { list-style: none; margin: 0; }
.nf-links__item { padding: 20px 0; border-top: 1px solid var(--nf-hair-dark); }
.nf-links__item:last-child { border-bottom: 1px solid var(--nf-hair-dark); }
.nf-links__pair { font-family: var(--nf-mono); font-size: 12px; letter-spacing: .1em; color: var(--nf-gold); }
.nf-links__title { font-family: var(--nf-serif); font-weight: 400; font-size: 24px; margin-top: 6px; color: var(--nf-paper-lt); }
.nf-links__text { margin-top: 8px; color: var(--nf-muted-green); font-size: 16px; line-height: 1.6; max-width: 56ch; }
@media (max-width: 860px) { .nf-links__grid { grid-template-columns: 1fr; } }

/* ---------- METHOD ---------- */
.nf-method__grid { list-style: none; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(18px,2.5vw,32px); }
.nf-method__step { text-align: center; }
.nf-method__art { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--nf-hair-2); padding: 0 8% 14px; }
.nf-method__art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.nf-method__num { margin-top: 16px; font-family: var(--nf-mono); font-size: 12px; letter-spacing: .1em; color: var(--nf-clay); text-transform: uppercase; }
.nf-method__title { font-family: var(--nf-serif); font-weight: 400; font-size: 22px; color: var(--nf-green); margin-top: 6px; }
.nf-method__text { margin-top: 8px; color: var(--nf-body); font-size: 15px; line-height: 1.6; }
@media (max-width: 960px) { .nf-method__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .nf-method__grid { grid-template-columns: 1fr; } .nf-method__art { max-width: 240px; margin: 0 auto; } }

/* ---------- final CTA sprig ---------- */
.nf-finalcta__art { max-width: 280px; margin: 0 auto 10px; }
.nf-finalcta__art img { width: 100%; height: auto; display: block; mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) sepia(.35) brightness(1.05); }

/* ---------- page-head engravings (catalog / journal / founder / 404) ---------- */
.nf-pagehead__art { max-width: 520px; margin: 0 auto; }
.nf-pagehead__art img { display: block; width: 100%; height: auto; }
.nf-catalog__art { max-width: 420px; }
.nf-journal__art { max-width: 380px; margin: 0 auto 8px; }
.nf-lost__art { max-width: 300px; margin: 0 auto 16px; }
.nf-herbs__art { max-width: 200px; }

/* ---------- region gate (reuses .nf-consent modal shell) ---------- */
.nf-geo__dialog { text-align: center; }
.nf-geo__art { width: 92px; margin: 0 auto 6px; }
.nf-geo__art img { width: 100%; height: auto; display: block; }
.nf-geo__detected strong { color: var(--nf-green); font-weight: 600; }
.nf-geo__field { display: block; text-align: left; margin-top: 18px; }
.nf-geo__label { display: block; font-family: var(--nf-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--nf-meta); margin-bottom: 6px; }
.nf-geo__dialog { position: relative; overflow: visible; max-height: none; }
.nf-geo__list.is-up { top: auto; bottom: calc(100% + 6px); }
@media (max-height: 640px) { .nf-geo__art { display: none; } }
.nf-geo__lang { position: absolute; top: 14px; right: 14px; background: transparent; border: 1px solid var(--nf-hair-4); border-radius: 999px; padding: 5px 11px; font-family: var(--nf-sans); font-size: 11px; letter-spacing: .08em; color: var(--nf-meta); cursor: pointer; }
.nf-geo__lang b { color: var(--nf-green); font-weight: 700; }
.nf-geo__lang:hover { border-color: var(--nf-green); }
.nf-geo__combo { position: relative; }
.nf-geo__input {
  width: 100%; background: var(--nf-paper-input); border: 1px solid var(--nf-hair-4); border-radius: var(--nf-r-input);
  padding: 13px 48px 13px 16px; font-family: var(--nf-serif); font-size: 18px; color: var(--nf-ink);
}
.nf-geo__input:focus { outline: 2px solid var(--nf-clay); outline-offset: 1px; }
.nf-geo__toggle {
  position: absolute; top: 0; right: 0; width: 46px; height: 100%; border: 0; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E4A3C' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}
.nf-geo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; margin: 0; padding: 6px;
  max-height: 232px; overflow-y: auto; text-align: left; background: var(--nf-paper-input); border: 1px solid var(--nf-hair-4);
  border-radius: var(--nf-r-input); box-shadow: 0 14px 30px rgba(30,42,36,.16);
}
.nf-geo__list[hidden] { display: none; }
.nf-geo__opt { padding: 9px 12px; border-radius: 10px; cursor: pointer; font-family: var(--nf-serif); font-size: 17px; color: var(--nf-ink); }
.nf-geo__opt:hover, .nf-geo__opt.is-active { background: var(--nf-paper-card); color: var(--nf-green); }
.nf-geo__opt.is-chosen { font-weight: 600; color: var(--nf-green); }
.nf-geo__nomatch { margin-top: 8px; font-size: 13px; color: var(--nf-meta); font-family: var(--nf-sans); }
.nf-geo .nf-consent__accept { margin-top: 20px; }

/* engravings on dark-green bands: invert to light line-work */
.nf-finalcta__art img, .nf-fp-cta .nf-pagehead__art img { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) sepia(.35) brightness(1.05); }
.nf-fp-cta .nf-herbs__art { margin: 0 auto 8px; }
