/* ═══════════════════════════════════════════════════════════════════════════
   NEK — COMPONENTS  (nav · footer · buttons · cards · lanes · forms · badges …)
   Depends on css/tokens.css + css/base.css. ZERO !important.
   Every value is a var(--*). This is the shared component layer every page links.
═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────── NAV ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 1.8vw, 30px) var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: clamp(12px,1.2vw,18px); padding-bottom: clamp(12px,1.2vw,18px);
  background: rgba(12,10,22,.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: clamp(26px,1.7vw,32px); height: clamp(26px,1.7vw,32px); color: var(--accent); filter: drop-shadow(0 0 12px var(--glow)); }
.brand__name { font-family: var(--display); font-weight: 600; font-size: clamp(18px,1.3vw,22px); letter-spacing: .16em; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 36px); }
.nav__link { font-size: clamp(13px,.95vw,15px); color: var(--ink-dim); transition: color .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: clamp(13px,.95vw,15px); letter-spacing: .01em;
  color: #0C0A16; background: var(--accent);
  padding: clamp(10px,.8vw,13px) clamp(16px,1.4vw,22px); border-radius: 11px;
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 0 var(--glow);
}
.nav__cta svg { width: 15px; height: 15px; }
.nav__cta:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 10px 34px var(--glow); }
@media (max-width: 860px) { .nav__link.hide-sm { display: none; } }
/* The top-bar Download CTA is duplicated in the mobile drawer (nek-menu.js),
   so hide it here to stop it overflowing the nav at ≤860px in every language. */
@media (max-width: 860px) { .nav__cta { display: none; } }

/* ── auth user-pill (injected by js/nek-nav.js when a session is active) ──
   Restyled to the dark-violet tokens so it matches the nav and needs no v5 vars. */
.nav__user-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); cursor: pointer; font-family: var(--sans); font-size: 14px;
  font-weight: 500; color: var(--ink); transition: all .2s var(--ease); user-select: none; text-decoration: none;
}
.nav__user-pill:hover { border-color: rgba(139,127,255,.5); }
.nav__user-pill.open { border-color: var(--accent); background: var(--surface-2); }
.nav__user-avatar {
  width: 24px; height: 24px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  color: #0C0A16; flex-shrink: 0;
}
.nav__user-name { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__user-chevron { width: 10px; height: 10px; color: var(--ink-dim); transition: transform .2s; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav__user-pill.open .nav__user-chevron { transform: rotate(180deg); }
.nav__user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  min-width: 180px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .2s var(--ease); z-index: 200;
}
.nav__user-pill.open .nav__user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__user-dd-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; background: transparent; border: none; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; font-weight: 500;
  transition: background .15s;
}
.nav__user-dd-item:hover { background: var(--surface-2); }
.nav__user-dd-sep { height: 1px; background: var(--line); margin: 4px 0; }
.nav__user-dd-item--danger { color: var(--ink-dim); font-weight: 400; }
.nav__user-dd-item--danger:hover { color: var(--ink); background: var(--surface-2); }

/* ───────────────────────── LANGUAGE SWITCHER ─────────────────────────
   EN · RU · HY pill group injected by js/nek-i18n.js. role="radiogroup".
   Two skins: --nav (inside the marketing nav) and --bar (auth/funnel bars). */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.lang-switch__opt {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .04em;
  line-height: 1; color: var(--ink-dim);
  padding: 6px 9px; border: none; background: transparent; border-radius: var(--r-pill);
  cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt.is-active { background: var(--accent); color: #0C0A16; }
.lang-switch__opt:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
/* nav skin sits between links and the Login CTA; hide RU/HY-pill crowding on
   the smallest marketing nav (the switcher still works, just tightened). */
.lang-switch--nav { margin-right: 2px; }
@media (max-width: 520px) { .lang-switch__opt { padding: 6px 7px; } }

/* ───────────────────── MOBILE MENU (hamburger + drawer) ─────────────────────
   Injected by js/nek-menu.js. The burger lives in .nav__right and is hidden on
   desktop; ≤860px it replaces the hidden .hide-sm links. The drawer + backdrop
   are appended to <body>. Style consumes only tokens; honours reduced-motion
   via the global rule in base.css (transition-duration collapses to ~0ms). */
.nav__burger {
  display: none;                 /* shown only ≤860px (below) */
  align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-left: 4px;
  padding: 0; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__burger svg { width: 22px; height: 22px; }
.nav__burger:hover { border-color: rgba(139,127,255,.5); }
.nav__burger:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.nav-drawer__backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(6,5,12,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .28s var(--ease);
}
.nav-drawer__backdrop.is-open { opacity: 1; }

.nav-drawer {
  position: fixed; top: 0; right: 0; z-index: 401;
  width: min(86vw, 360px); height: 100%; max-height: 100%;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px clamp(20px, 6vw, 30px) calc(28px + env(safe-area-inset-bottom));
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -20px rgba(0,0,0,.6);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer:focus { outline: none; }

.nav-drawer__head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.nav-drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 11px;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-drawer__close svg { width: 22px; height: 22px; }
.nav-drawer__close:hover { border-color: rgba(139,127,255,.5); }
.nav-drawer__close:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.nav-drawer__links { display: flex; flex-direction: column; }
.nav-drawer__link {
  display: block; padding: 15px 4px;
  font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
  transition: color .2s var(--ease);
}
.nav-drawer__link:hover,
.nav-drawer__link[aria-current="page"] { color: var(--accent-hi); }

.nav-drawer__actions { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.nav-drawer__lang { align-self: flex-start; }
.nav-drawer__login {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px; border-radius: 11px; border: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-drawer__login:hover { border-color: var(--accent); color: var(--accent-hi); }
.nav-drawer__cta { justify-content: center; width: 100%; }

/* show the burger / hide the inline links ≤860px (the .hide-sm rule already
   hides the primary links; the burger now opens them in the drawer) */
@media (max-width: 860px) {
  .nav__burger { display: inline-flex; }
}
/* desktop guard: never let an (erroneously) open drawer cover the page */
@media (min-width: 861px) {
  .nav-drawer, .nav-drawer__backdrop { display: none !important; }
}
/* lock background scroll while the drawer is open */
html.nav-drawer-lock, html.nav-drawer-lock body { overflow: hidden; }

/* FOUC cloak — applied to <html> by the inline boot snippet ONLY when the
   stored language is non-EN. Hides translatable text until the catalog is
   applied; js strips it on apply (or after a 1.5s safety timeout). */
html.nek-i18n-cloak [data-i18n],
html.nek-i18n-cloak [data-i18n-html] { visibility: hidden; }

/* ───────────────────────── BUTTONS ───────────────────────── */
.btn {
  font-family: var(--display); font-weight: 600; font-size: clamp(15px,1.1vw,18px);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(14px,1.2vw,18px) clamp(24px,2.2vw,38px); border-radius: 14px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .25s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: clamp(18px,1.4vw,22px); height: clamp(18px,1.4vw,22px); }
.btn--primary {
  color: #0C0A16; background: var(--accent);
  box-shadow: 0 16px 50px -12px var(--glow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-2px); box-shadow: 0 26px 70px -14px var(--glow-hi); }
.btn--primary:active { background: var(--accent-lo); transform: translateY(0); }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(139,127,255,.5); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: clamp(13px,.95vw,15px); border-radius: var(--r-md); }

/* ───────────────────────── CARDS ───────────────────────── */
.card {
  position: relative; padding: clamp(28px,2.4vw,44px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,127,255,.4); box-shadow: 0 36px 90px -40px var(--glow-hi); }
.card--flat { background: var(--surface); }
.card--flat:hover { transform: none; }

/* section heading helper */
.sec-head { max-width: 1100px; margin-bottom: clamp(48px,5vw,90px); }
.sec-head h2 { font-size: var(--fs-h2); line-height: 1.02; }
.sec-head h2 em { font-style: italic; font-family: var(--serif); font-weight: 600; color: var(--accent-hi); }
.sec-head p { margin-top: clamp(16px,1.4vw,24px); max-width: 58ch; color: var(--ink-dim); font-size: var(--fs-lead); }

/* ───────────────────────── HONESTY LANES / FEATURE TILES ───────────────────────── */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px,1.8vw,32px); }
.lane {
  position: relative; padding: clamp(32px,2.6vw,52px) clamp(30px,2.4vw,48px) clamp(38px,3vw,58px);
  border-radius: var(--r-xl); min-height: clamp(360px,32vw,520px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.lane::before {
  content:""; position:absolute; left:0; right:0; top:0; height: 50%;
  background: radial-gradient(80% 100% at 30% 0%, rgba(123,111,255,.10), transparent 70%);
  pointer-events:none; opacity:.7; transition: opacity .45s var(--ease);
}
.lane:hover { transform: translateY(-8px); border-color: rgba(139,127,255,.4); box-shadow: 0 36px 90px -40px var(--glow-hi); }
.lane:hover::before { opacity: 1; }
.lane--moat { border-color: rgba(139,127,255,.34); box-shadow: 0 0 0 1px rgba(139,127,255,.12) inset, 0 40px 100px -60px var(--glow-hi); }
.lane__art { position: relative; height: clamp(120px,11vw,200px); margin: 0 -8px clamp(24px,2vw,36px); z-index:1; }
.lane__art svg { width: 100%; height: 100%; }
.lane__tag {
  display: inline-flex; align-items: center; gap: 9px; position:relative; z-index:1;
  font-family: var(--display); font-size: clamp(11px,.9vw,14px); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: clamp(12px,1vw,18px);
}
.lane__tag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.lane h3 { position:relative; z-index:1; margin-bottom: clamp(8px,.8vw,14px); }
.lane p { position:relative; z-index:1; font-size: clamp(.95rem,1.05vw,1.15rem); color: var(--ink-dim); }
.lane__meter { position:relative; z-index:1; margin-top: auto; padding-top: clamp(22px,2vw,34px); }
.lane__meter .track-line { height: 4px; border-radius: 4px; background: rgba(155,155,192,.16); overflow: hidden; }
.lane__meter .track-line i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); transform: scaleX(var(--fill,0)); transform-origin: left; transition: transform 1.1s var(--ease); box-shadow: 0 0 14px var(--glow); }
.lane__note { margin-top: 14px; font-family: var(--display); font-size: clamp(.8rem,.85vw,.95rem); letter-spacing: .04em; color: var(--ink-dim); }
@media (max-width: 980px) { .lanes { grid-template-columns: 1fr; } .lane { min-height: 0; } }

/* ───────────────────────── CHIPS / BADGES ───────────────────────── */
.chip {
  font-family: var(--display); font-size: clamp(.85rem,.95vw,1.05rem); letter-spacing: .015em;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: rgba(139,127,255,.4); }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-dim);
}
.badge--accent { color: var(--accent-hi); border-color: rgba(139,127,255,.4); background: rgba(123,111,255,.08); }
.badge--success { color: var(--success); border-color: rgba(143,227,176,.35); }

/* ───────────────────────── FORMS ───────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field__label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.field__label-link { font-size: 12.5px; color: var(--ink-dim); text-decoration: none; font-weight: 500; transition: color .2s; }
.field__label-link:hover { color: var(--accent-hi); }
.field__input, .input {
  width: 100%; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  transition: all .2s var(--ease); outline: none;
}
.field__input::placeholder, .input::placeholder { color: var(--ink-faint); }
.field__input:hover, .input:hover { border-color: rgba(155,155,192,.3); }
.field__input:focus, .input:focus { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 4px var(--glow); }

/* status notes for forms (errors / success) */
.form-note { font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: var(--r-md); margin-top: var(--sp-3); display: none; }
.form-note.show { display: block; }
.form-note--error   { color: var(--error);   background: rgba(255,138,138,.08); border: 1px solid rgba(255,138,138,.3); }
.form-note--success { color: var(--success); background: rgba(143,227,176,.08); border: 1px solid rgba(143,227,176,.3); }

/* divider with centred label */
.divider {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-faint);
  letter-spacing: .04em; text-transform: uppercase; margin: var(--sp-4) 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ───────────────────────── FULL-BLEED PHOTO BAND ───────────────────────── */
.band {
  position: relative; z-index: 2; overflow: hidden;
  min-height: clamp(420px, 64vh, 760px);
  display: flex; align-items: center; isolation: isolate;
}
.band__media { position: absolute; inset: 0; z-index: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band--moody .media__grade { opacity: .6; }
.band--moody .media__grade::before { opacity: .42; }
.band--moody .band__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,6,16,.86) 0%, rgba(8,6,16,.5) 42%, transparent 72%),
    linear-gradient(180deg, rgba(12,10,22,.55) 0%, transparent 30%, rgba(8,6,16,.55) 100%);
}
.band__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,8vh,120px) var(--gutter); width: 100%; }
.band__copy { max-width: min(46ch, 60vw); }
.band__copy h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.02; text-shadow: 0 2px 40px rgba(8,6,16,.7); }
.band__copy h2 em { font-style: italic; font-family: var(--serif); font-weight: 600; color: var(--accent-hi); }
.band__copy p { margin-top: clamp(16px,1.4vw,24px); max-width: 50ch; color: #D7D4F0; font-size: var(--fs-lead); text-shadow: 0 1px 22px rgba(8,6,16,.8); }
@media (max-width: 760px) { .band__copy { max-width: none; } }

/* ───────────────────────── FOOTER ───────────────────────── */
.footer {
  position: relative; z-index: 2; border-top: 1px solid var(--line);
  padding: clamp(36px,3vw,56px) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--ink-dim); font-size: clamp(13px,.95vw,15px);
}
.footer .brand__name { font-size: clamp(15px,1vw,17px); }
.footer__links { display: flex; gap: clamp(20px,2vw,30px); flex-wrap: wrap; }
.footer__links a { color: var(--ink-dim); transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--ink); }

/* ───────────────────────── PAGE HERO (interior marketing pages) ───────────────────────── */
.page-hero {
  position: relative; z-index: 2; padding: clamp(140px,18vh,220px) var(--gutter) clamp(40px,6vh,80px);
  max-width: var(--maxw-tight); margin-inline: auto;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; }
.page-hero h1 em { font-style: italic; font-family: var(--serif); font-weight: 600; color: var(--accent-hi); }
.page-hero p { margin-top: clamp(18px,1.6vw,26px); max-width: 60ch; color: var(--ink-dim); font-size: var(--fs-lead); }

/* prose blocks (privacy/terms) */
.prose { color: var(--ink-dim); font-size: var(--fs-body); line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem,2.4vw,2rem); color: var(--ink); margin: clamp(36px,4vw,56px) 0 clamp(12px,1.4vw,18px); }
.prose h3 { font-size: clamp(1.15rem,1.6vw,1.4rem); color: var(--ink); margin: clamp(24px,2.6vw,34px) 0 10px; }
.prose p, .prose li { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
