/* ==========================================================================
   Визитки Эсфин — оформление
   Основа: макет fatima.kimi.page (тёмный «терминальный» минимализм).
   Шрифт Onest (SIL OFL 1.1) лежит локально в assets/onest/ — без Google Fonts.
   ========================================================================== */

/* ---------- Onest, variable 300–700, self-hosted ---------- */
@font-face{
  font-family:'Onest';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('onest/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face{
  font-family:'Onest';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('onest/onest-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:'Onest';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('onest/onest-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Onest';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('onest/onest-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --bg:#0c0c0c;
  --fg:#ffffff;
  --muted:#95959f;
  --accent:#165f49;
  --led:#b0ffc4;
  --select:#fee420;
  --line:#1d1d1f;
  --ease:cubic-bezier(0.86,0,0.07,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
[hidden]{display:none!important;}
html{-webkit-text-size-adjust:100%;}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:'Onest','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;
  line-height:1.2;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  padding:32px;
  overflow-x:hidden;
}
::selection{background:var(--select);color:#000;}
::-moz-selection{background:var(--select);color:#000;}
:focus-visible{outline:2px solid var(--led);outline-offset:4px;border-radius:2px;}

/* ---------- top bar ---------- */
.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.status{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:14px;
  letter-spacing:.02em;
}
.led{
  width:8px;height:8px;border-radius:50%;
  background:var(--led);
  box-shadow:0 0 8px 1px rgba(176,255,196,.65);
  animation:pulse 2.4s var(--ease) infinite;
  flex:none;
}
@keyframes pulse{
  0%,100%{opacity:1;}
  50%{opacity:.35;}
}
.locale{
  color:var(--muted);
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:right;
}

/* ---------- identity ---------- */
.identity{
  margin-top:auto;
  padding:64px 0 40px;
}
h1.name{
  font-weight:700;
  font-size:clamp(44px,9vw,110px);
  line-height:.92;
  letter-spacing:-.02em;
}
h1.name span{display:block;}
h1.name .last{color:var(--muted);font-weight:300;}

/* ---------- oversized contact links ---------- */
.contacts{
  display:flex;
  flex-direction:column;
}
.biglink{
  position:relative;
  display:flex;
  align-items:baseline;
  gap:18px;
  text-decoration:none;
  color:var(--fg);
  font-weight:500;
  font-size:clamp(38px,7.2vw,88px);
  line-height:.96;
  letter-spacing:-.015em;
  padding:10px 0;
  width:fit-content;
  transition:color .3s var(--ease), padding-left .3s var(--ease);
}
.biglink .arrow{
  font-size:.55em;
  font-weight:300;
  color:var(--muted);
  transition:color .3s var(--ease), transform .3s var(--ease);
  transform:translateY(-.08em);
}
.biglink .sub{
  font-size:15px;
  font-weight:300;
  color:var(--muted);
  letter-spacing:.04em;
  white-space:nowrap;
  transition:color .3s var(--ease);
}
.biglink:hover{
  color:var(--led);
  padding-left:14px;
}
.biglink:hover .arrow{color:var(--led);transform:translate(6px,-.08em);}
.biglink:hover .sub{color:var(--fg);}

/* ---------- bottom bar ---------- */
.bottom{
  margin-top:auto;
  padding-top:56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.copy{
  color:var(--muted);
  font-size:13px;
  letter-spacing:.03em;
  line-height:1.55;
  text-align:right;
}
.vcard-btn{
  appearance:none;
  background:transparent;
  border:1px solid var(--accent);
  color:var(--fg);
  font-family:inherit;
  font-size:14px;
  font-weight:400;
  letter-spacing:.05em;
  padding:13px 26px;
  border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  transition:background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.vcard-btn:hover{
  background:var(--accent);
  border-color:var(--accent);
  transform:translateY(-2px);
}
.vcard-btn:active{transform:translateY(0);}
.vcard-btn svg{width:15px;height:15px;flex:none;}

/* ---------- directory (index) ---------- */
body.index-page .identity{margin-top:0;padding:72px 0 0;}
.lede{
  margin-top:22px;
  color:var(--muted);
  font-size:15px;
  font-weight:300;
  letter-spacing:.04em;
}
.search-wrap{margin-top:44px;}
.search{
  width:100%;
  max-width:560px;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  color:var(--fg);
  font-family:inherit;
  font-weight:300;
  font-size:clamp(18px,2.2vw,24px);
  letter-spacing:-.01em;
  padding:12px 0;
  transition:border-color .3s var(--ease);
  -webkit-appearance:none;
  appearance:none;
}
.search::placeholder{color:#585860;}
.search:focus{outline:none;border-bottom-color:var(--accent);}
.search::-webkit-search-cancel-button{-webkit-appearance:none;}

.team{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  border-top:1px solid var(--line);
}
.person{
  display:flex;
  align-items:baseline;
  gap:24px;
  padding:24px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:var(--fg);
  transition:padding-left .3s var(--ease), border-color .3s var(--ease);
}
.person .who{
  font-size:clamp(26px,4.2vw,44px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.015em;
  transition:color .3s var(--ease);
}
.person .meta{
  margin-left:auto;
  text-align:right;
  color:var(--muted);
  font-size:14px;
  font-weight:300;
  letter-spacing:.03em;
  line-height:1.45;
  transition:color .3s var(--ease);
}
.person .meta .arrow{
  display:inline-block;
  margin-left:10px;
  color:var(--muted);
  transition:color .3s var(--ease), transform .3s var(--ease);
}
.person:hover{padding-left:14px;border-color:#2a2a2d;}
.person:hover .who{color:var(--led);}
.person:hover .meta{color:var(--fg);}
.person:hover .meta .arrow{color:var(--led);transform:translate(4px,-2px);}

.empty{
  margin-top:32px;
  color:var(--muted);
  font-size:15px;
  font-weight:300;
  letter-spacing:.04em;
}

/* ---------- 404 ---------- */
body.notfound-page .identity{margin-top:auto;padding-bottom:0;}
.notfound-actions{padding-top:8px;}

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

@media (max-width:640px){
  body{padding:24px;}
  .identity{padding:48px 0;}
  .biglink{flex-wrap:wrap;gap:8px 14px;}
  .biglink .sub{width:100%;padding-left:2px;}
  .bottom{justify-content:center;}
  .copy{width:100%;text-align:center;order:2;}
  body.index-page .identity{padding-top:56px;}
  .person{flex-wrap:wrap;gap:8px 16px;padding:20px 0;}
  .person .meta{margin-left:0;text-align:left;width:100%;}
  .person .meta .arrow{display:none;}
}

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

@media print{
  body{background:#fff;color:#000;padding:0;}
  .led{box-shadow:none;background:#0a0;}
  h1.name .last,.locale,.status,.copy,.biglink .sub{color:#444;}
  .vcard-btn{display:none;}
  .biglink{color:#000;font-size:32px;}
}
