/* НаймДрайв — фирменная тема (29.11.2026).
   Телефон: Flow-вариант №20 «ИИ-ассистент» — тёмный фон, свечение бирюза/фиолет, зелёные кнопки.
   Компьютер (≥1024px): Flow-вариант №05 «Светлый» — светлый фон, тёмно-зелёное меню слева.
   Лайм TIMDRIVE не используется нигде. Подключается последним; селекторы `html body…`
   сильнее `body.px…` старых скинов, поэтому порядок <link> не важен. */

:root{
  --nd-bg:#070A0E; --nd-bg-2:#0B1016; --nd-card:#111820; --nd-card-2:#16202A;
  --nd-line:rgba(255,255,255,.08); --nd-line-2:rgba(255,255,255,.14);
  --nd-ink:#ECF1F5; --nd-ink-2:#A3AFBB; --nd-muted:#6F7C89;
  --nd-green:#2BD46A; --nd-green-2:#1FB257; --nd-teal:#19C3B3; --nd-violet:#8B5CF6;
  --nd-grad-btn:linear-gradient(135deg,#34E07A 0%,#1FB257 100%);
  --nd-grad-aurora:radial-gradient(60% 50% at 80% 0%,rgba(139,92,246,.28),transparent 70%),
                   radial-gradient(55% 45% at 10% 10%,rgba(25,195,179,.22),transparent 70%);
  --nd-font:"Inter","Segoe UI",Roboto,system-ui,-apple-system,sans-serif;
}

/* ======================= ТЕЛЕФОН (по умолчанию): тёмная тема №20 ======================= */
html:has(body.px), html:has(body.cab), html:has(body.vx-body), html:has(body.nd){background:var(--nd-bg);}
html body:is(.px,.cab,.nd){
  color-scheme:dark;
  --px-blue:var(--nd-green); --px-blue-deep:var(--nd-green-2);
  --px-blue-soft:rgba(43,212,106,.12); --px-blue-soft-2:rgba(43,212,106,.08);
  --px-grad-btn:var(--nd-grad-btn); --px-grad-solid-ic:linear-gradient(150deg,#1D2833,#121A22);
  --px-ink:var(--nd-ink); --px-ink-2:var(--nd-ink-2); --px-muted:var(--nd-muted);
  --px-card-1:var(--nd-card); --px-card-2:var(--nd-card-2);
  --px-mint-badge:rgba(43,212,106,.14); --px-green-text:#4BE38A; --px-green-check:var(--nd-green);
  --px-shadow-card:0 10px 30px rgba(0,0,0,.45);
  --px-font:var(--nd-font);
  --ground:var(--nd-bg); --surface:var(--nd-card); --surface-2:var(--nd-card-2);
  --ink:var(--nd-ink); --ink-2:var(--nd-ink-2); --line:var(--nd-line);
  --primary:var(--nd-green); --primary-2:var(--nd-green-2); --on-primary:#04130A;
  --primary-soft:rgba(43,212,106,.12); --primary-ink:#4BE38A;
  --canvas:var(--nd-bg); --canvas-2:var(--nd-bg-2);
  --shadow-s:0 2px 8px rgba(0,0,0,.35); --shadow-m:0 10px 30px rgba(0,0,0,.45);
  --shadow-btn:0 10px 26px -8px rgba(43,212,106,.55);
  --warn:#F5B547; --warn-bg:rgba(245,181,71,.12); --bad:#FF6B6B; --bad-bg:rgba(255,107,107,.12);
  --ok:#4BE38A; --ok-bg:rgba(43,212,106,.14); --trust:#4BE38A; --trust-bg:rgba(43,212,106,.14);
  background:var(--nd-grad-aurora),var(--nd-bg) !important;
  background-attachment:fixed !important;
  color:var(--nd-ink);
  font-family:var(--nd-font);
}
html body:is(.px,.cab,.nd) a{color:#4BE38A;}
html body:is(.px,.cab,.nd) h1, html body:is(.px,.cab,.nd) h2, html body:is(.px,.cab,.nd) h3, html body:is(.px,.cab,.nd) .px-h1{color:var(--nd-ink);}

/* поверхности: карточки, листы, строки списков, поля */
html body:is(.px,.cab,.nd) .card, html body:is(.px,.cab,.nd) .px-card, html body:is(.px,.cab,.nd) .listrow, html body:is(.px,.cab,.nd) .mcard,
html body:is(.px,.cab,.nd) .sheet, html body:is(.px,.cab,.nd) .notice, html body:is(.px,.cab,.nd) .field, html body:is(.px,.cab,.nd) .px-field,
html body:is(.px,.cab,.nd) .vac-card, html body:is(.px,.cab,.nd) .seg, html body:is(.px,.cab,.nd) .scope-bar a, html body:is(.px,.cab,.nd) .chip,
html body:is(.px,.cab,.nd) .px-tile, html body:is(.px,.cab,.nd) .px-row, html body:is(.px,.cab,.nd) .px-sec{
  background:var(--nd-card) !important; color:var(--nd-ink) !important;
  border-color:var(--nd-line) !important; box-shadow:0 10px 28px rgba(0,0,0,.35) !important;
}
html body:is(.px,.cab,.nd) .sheet{background:linear-gradient(180deg,#121A22,#0C1218) !important;}
html body:is(.px,.cab,.nd) input, html body:is(.px,.cab,.nd) select, html body:is(.px,.cab,.nd) textarea{
  background:var(--nd-card-2) !important; color:var(--nd-ink) !important; border-color:var(--nd-line-2) !important;
}
html body:is(.px,.cab,.nd) input::placeholder, html body:is(.px,.cab,.nd) textarea::placeholder{color:var(--nd-muted) !important;}
html body:is(.px,.cab,.nd) small, html body:is(.px,.cab,.nd) .muted, html body:is(.px,.cab,.nd) .hint, html body:is(.px,.cab,.nd) .sub{color:var(--nd-ink-2) !important;}

/* шапка и нижнее меню — стекло на тёмном */
html body:is(.px,.cab,.nd) .appbar, html body:is(.px,.cab,.nd) .px-top{background:rgba(7,10,14,.72) !important; backdrop-filter:blur(16px);}
html body:is(.px,.cab,.nd) .px-wordmark, html body:is(.px,.cab,.nd) .appbar-title, html body:is(.px,.cab,.nd) .appbar .title{color:var(--nd-ink) !important;}
html body:is(.px,.cab,.nd) .px-wordmark span{color:var(--nd-green) !important;}
html body:is(.px,.cab,.nd) .iconbtn, html body:is(.px,.cab,.nd) .px-iconbtn{
  background:linear-gradient(160deg,#18222C,#0F161D) !important; color:var(--nd-ink) !important;
  border:1px solid var(--nd-line-2) !important; box-shadow:0 6px 16px rgba(0,0,0,.4) !important;
}
html body:is(.px,.cab,.nd) .bottomnav, html body:is(.px,.cab,.nd) .px-nav, html body:is(.px,.cab,.nd) .tabnav{
  background:rgba(9,13,18,.86) !important; border-top:1px solid var(--nd-line) !important;
  backdrop-filter:blur(16px);
}
html body:is(.px,.cab,.nd) .bottomnav a, html body:is(.px,.cab,.nd) .px-nav a, html body:is(.px,.cab,.nd) .tabnav a{color:var(--nd-muted) !important;}
html body:is(.px,.cab,.nd) .bottomnav a.on, html body:is(.px,.cab,.nd) .px-nav a.on, html body:is(.px,.cab,.nd) .tabnav a.on{color:var(--nd-green) !important;}

/* кнопки: зелёная заливка, тёмный текст; второстепенные — стекло */
html body:is(.px,.cab,.nd) .btn, html body:is(.px,.cab,.nd) button.submit, html body:is(.px,.cab,.nd) a.submit, html body:is(.px,.cab,.nd) .btn-sm.primary,
html body:is(.px,.cab,.nd) .mactions .like, html body:is(.px,.cab,.nd) .composer .send, html body:is(.px,.cab,.nd) .msg-send, html body:is(.px,.cab,.nd) .px-btn{
  background:var(--nd-grad-btn) !important; color:#04130A !important; border:none !important;
  box-shadow:0 10px 26px -8px rgba(43,212,106,.55) !important;
}
html body:is(.px,.cab,.nd) .btn.ghost, html body:is(.px,.cab,.nd) .btn.sec, html body:is(.px,.cab,.nd) .mactions .more{
  background:rgba(255,255,255,.04) !important; color:var(--nd-ink) !important;
  border:1px solid var(--nd-line-2) !important; box-shadow:none !important;
}
html body:is(.px,.cab,.nd) .seg .on, html body:is(.px,.cab,.nd) .scope-bar a.on, html body:is(.px,.cab,.nd) .chip.on{
  background:rgba(43,212,106,.16) !important; color:#4BE38A !important; border-color:rgba(43,212,106,.5) !important;
}

/* переписка: свои — зелёное стекло, чужие — карточка */
html body:is(.px,.cab,.nd) .bub, html body:is(.px,.cab,.nd) .bubble{background:var(--nd-card-2) !important; color:var(--nd-ink) !important;}
html body:is(.px,.cab,.nd) .bub.me, html body:is(.px,.cab,.nd) .bubble.out{background:linear-gradient(135deg,rgba(43,212,106,.28),rgba(25,195,179,.22)) !important; color:var(--nd-ink) !important;}
html body:is(.px,.cab,.nd) .composer{background:rgba(9,13,18,.9) !important; border-top:1px solid var(--nd-line) !important;}

/* процент совпадения и бейджи — фирменное свечение */
html body:is(.px,.cab,.nd) .match-pct, html body:is(.px,.cab,.nd) .score, html body:is(.px,.cab,.nd) .pct{color:#4BE38A !important; text-shadow:0 0 18px rgba(43,212,106,.45);}
html body:is(.px,.cab,.nd) .badge, html body:is(.px,.cab,.nd) .tag{background:rgba(25,195,179,.14) !important; color:#6FE7DA !important; border-color:rgba(25,195,179,.35) !important;}

/* баннер cookies */
html body .cc-banner, html body #cookie-consent{background:#111820 !important; color:var(--nd-ink) !important; border:1px solid var(--nd-line-2) !important;}

/* ================== КОМПЬЮТЕР (≥1024px): светлая тема №05 + боковое меню ================== */
@media (min-width:1024px){
  html:has(body.px), html:has(body.cab), html:has(body.nd){background:#F3F5F2;}
  html body:is(.px,.cab,.nd){
    color-scheme:light;
    --nd-ink:#13201A; --nd-ink-2:#55625B; --nd-muted:#86918B;
    --nd-card:#FFFFFF; --nd-card-2:#F6F8F5; --nd-line:#E3E8E2; --nd-line-2:#D5DDD4;
    background:#F3F5F2 !important; color:var(--nd-ink);
  }
  html body:is(.px,.cab,.nd) a{color:#17924A;}
  html body:is(.px,.cab,.nd) .card, html body:is(.px,.cab,.nd) .px-card, html body:is(.px,.cab,.nd) .listrow, html body:is(.px,.cab,.nd) .mcard,
  html body:is(.px,.cab,.nd) .sheet, html body:is(.px,.cab,.nd) .notice, html body:is(.px,.cab,.nd) .field, html body:is(.px,.cab,.nd) .px-field,
  html body:is(.px,.cab,.nd) .vac-card, html body:is(.px,.cab,.nd) .px-tile, html body:is(.px,.cab,.nd) .px-row, html body:is(.px,.cab,.nd) .px-sec{
    box-shadow:0 2px 10px rgba(19,32,26,.06) !important;
  }
  html body:is(.px,.cab,.nd) .bub.me, html body:is(.px,.cab,.nd) .bubble.out{background:#2BD46A !important; color:#04130A !important;}
  html body:is(.px,.cab,.nd) .appbar, html body:is(.px,.cab,.nd) .px-top{background:rgba(243,245,242,.9) !important;}
  html body:is(.px,.cab,.nd) .iconbtn, html body:is(.px,.cab,.nd) .px-iconbtn{background:#FFFFFF !important; box-shadow:0 2px 8px rgba(19,32,26,.08) !important;}

  /* нижнее меню превращается в тёмно-зелёное боковое */
  html body:is(.px,.cab,.nd) .bottomnav, html body:is(.px,.cab,.nd) .px-nav, html body:is(.px,.cab,.nd) .tabnav{
    display:flex !important; grid-template-columns:none !important; position:fixed !important; top:0 !important; left:0 !important; max-width:none !important; margin:0 !important; bottom:0 !important; right:auto !important;
    width:232px !important; height:100vh !important; padding:84px 14px 24px !important;
    flex-direction:column !important; justify-content:flex-start !important; align-items:stretch !important; gap:4px !important;
    background:#0E2A1C !important; border:none !important; border-radius:0 !important; transform:none !important;
  }
  html body:is(.px,.cab,.nd) .bottomnav::before, html body:is(.px,.cab,.nd) .px-nav::before, html body:is(.px,.cab,.nd) .tabnav::before{
    content:"НаймДрайв"; position:absolute; top:26px; left:24px; font:800 20px/1 var(--nd-font); color:#FFFFFF; letter-spacing:-.3px;
  }
  html body:is(.px,.cab,.nd) .bottomnav a, html body:is(.px,.cab,.nd) .px-nav a, html body:is(.px,.cab,.nd) .tabnav a{
    flex-direction:row !important; justify-content:flex-start !important; gap:12px !important;
    font-size:14px !important; padding:11px 14px !important; border-radius:12px !important; color:#B9CBBF !important; width:auto !important;
  }
  html body:is(.px,.cab,.nd) .bottomnav a.on, html body:is(.px,.cab,.nd) .px-nav a.on, html body:is(.px,.cab,.nd) .tabnav a.on{background:rgba(43,212,106,.16) !important; color:#FFFFFF !important;}
  html body:is(.px,.cab,.nd) .page, html body:is(.px,.cab,.nd) .page.feed, html body:is(.px,.cab,.nd) .appbar, html body:is(.px,.cab,.nd) .px-top, html body:is(.px,.cab,.nd) .pubwrap{
    max-width:1080px !important; margin-left:calc(232px + max(24px, (100vw - 232px - 1080px)/2)) !important; margin-right:24px !important;
  }
  html body:is(.px,.cab,.nd) .has-nav{padding-bottom:40px !important;}
}

/* логотип-слово: «Найм» белый, «Драйв» зелёный (телефон) */
html body:is(.px,.cab,.nd) .px-wordmark, html body:is(.px,.cab,.nd) .srch-brand, html body:is(.px,.cab,.nd) .brand{color:var(--nd-ink) !important;}
html body:is(.px,.cab,.nd) .px-wordmark span{color:var(--nd-green) !important;}
/* текст на карточках профиля — светлый */
html body:is(.px,.cab,.nd) .px-name, html body:is(.px,.cab,.nd) .hero-name, html body:is(.px,.cab,.nd) .px-hero *:not(.btn):not(svg){color:var(--nd-ink);}

/* экран поиска (search.css держит свои --sr-*): переводим на тему */
html body.srch{
  --sr-lime:#2BD46A; --sr-lime-deep:#1FB257; --sr-lime-soft:rgba(43,212,106,.14);
  --sr-grad:linear-gradient(135deg,#34E07A,#1FB257);
  --sr-ink:#ECF1F5; --sr-ink-2:#A3AFBB; --sr-bg:#070A0E; --sr-card:#111820;
  --sr-line:rgba(255,255,255,.10); --sr-shadow:0 10px 26px rgba(0,0,0,.45); --sr-link:#6FE7DA;
}
html body.srch .srch-logo{color:#ECF1F5 !important; letter-spacing:-.3px;}
@media (min-width:1024px){
  html body.srch{
    --sr-ink:#13201A; --sr-ink-2:#55625B; --sr-bg:#F3F5F2; --sr-card:#FFFFFF;
    --sr-line:#E3E8E2; --sr-shadow:0 2px 10px rgba(19,32,26,.06); --sr-link:#17924A;
  }
  html body.srch .srch-logo{color:#13201A !important;}
  html body.srch .page.feed{max-width:1080px !important;}
}

/* ЕС-блоки, которых в НаймДрайв нет (Код 95, витрина услуг) — скрыты до чистки шаблонов */
html body:is(.px,.cab,.nd) .hs.c95, html body:is(.px,.cab,.nd) .px-live{display:none !important;}
/* кольцо заполненности профиля */
html body:is(.px,.cab,.nd) .px-ring::before{background:var(--nd-card) !important;}
html body:is(.px,.cab,.nd) .px-ring .rv{color:var(--nd-ink) !important;}
/* активный пункт меню — фирменный зелёный */
html body:is(.px,.cab,.nd) .tabnav a.on .tn-ic{background:var(--nd-grad-btn) !important; color:#04130A !important;}
/* круглые кнопки на фото, переключатели-вкладки */
html body:is(.px,.cab,.nd) .hero-cam, html body:is(.px,.cab,.nd) .ava-cam{background:var(--nd-grad-btn) !important; color:#04130A !important;}

/* --- Анкета: категории с годом (29.11) --- */
html body:is(.px,.cab,.nd) .nd-lic{display:grid;gap:8px}
html body:is(.px,.cab,.nd) .nd-lic-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(43,212,106,.25);border-radius:12px;cursor:pointer}
html body:is(.px,.cab,.nd) .nd-lic-row b{min-width:28px;font-size:16px}
html body:is(.px,.cab,.nd) .nd-lic-row input[type=checkbox]{width:20px;height:20px;accent-color:#2BD46A}
html body:is(.px,.cab,.nd) .nd-lic-y{margin-left:auto;display:flex;align-items:center;gap:6px;opacity:.85;font-size:14px}
html body:is(.px,.cab,.nd) .nd-lic-y input{width:78px;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;font:inherit;text-align:center}
@media (min-width:1024px){html body:is(.px,.cab,.nd) .nd-lic-y input{border-color:#cfd8d3}}
html body:is(.px,.cab,.nd) .nd-lic-row:has(input[type=checkbox]:not(:checked)) .nd-lic-y{opacity:.35}
html body:is(.px,.cab,.nd) .nd-confirm{margin-top:20px}
@media (max-width:1023px){
  html body:is(.px,.cab,.nd) .pe-h,
  html body:is(.px,.cab,.nd) .px-trio .pt-tx b,
  html body:is(.px,.cab,.nd) .px-trio .pt-row,
  html body:is(.px,.cab,.nd) .px-hstats .hs b{color:#E8F0EC}
}

/* 29.11.2026: реферальная программа и партнёры TIMDRIVE (ClaimSpot) в НаймДрайв не показываются */
html body a[href="/invite"], html body a[href^="/help/claimspot"], html body a[href*="claimspot"], html body a[href="/help/legal-business"]{display:none !important;}

/* 29.11.2026: панель менеджера — цвета НаймДрайв вместо лаймового TIMDRIVE */
html body.pn.pn-pro{
  --x-lime:#2BD46A; --x-lime-2:#5BE38E; --x-lime-dim:rgba(43,212,106,.14); --x-lime-ink:#1FA855; --x-on-lime:#04130A;
  --x-bg-img:radial-gradient(120% 60% at 50% -10%, #0E2A1C 0%, rgba(9,11,15,0) 55%);
}
/* 29.11.2026: документы не загружаем (проверка — ЕГРЮЛ + звонок), призыв «Добавьте документы» скрыт */
html body a.px-promo[href="/documents"]{display:none !important;}
