/* Портал ЭЛИТ-ТВ — стиль v3 «глянец-стекло», две темы через data-theme.
   Палитра: бирюза #0098A0 (elit-tv.ru) + синий #0068FF + тёмный #0a0f14 (subki). */

:root, [data-theme="dark"] {
  --bg: #0a0f14;
  --txt: #eef3f8;
  --mut: #93a4b5;
  --glass-bg: rgba(20, 30, 42, .55);
  --glass-line: rgba(255, 255, 255, .09);
  --inp-bg: rgba(10, 16, 22, .6);
  --inp-line: rgba(255, 255, 255, .12);
  --teal: #0098A0; --teal-l: #3ec9d0;
  --blue: #0068FF; --blue-l: #5f9bff;
  --glow-op: .5;
}
[data-theme="light"] {
  --bg: #f2f6f9;
  --txt: #16222e;
  --mut: #5d6f81;
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-line: rgba(20, 40, 60, .1);
  --inp-bg: rgba(255, 255, 255, .85);
  --inp-line: rgba(20, 40, 60, .18);
  --teal-l: #0098A0;
  --blue-l: #0068FF;
  --glow-op: .25;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 16px/1.55 -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}

/* Живые градиентные пятна фона */
.glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: var(--glow-op); z-index: 0; animation: float 14s ease-in-out infinite alternate; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: var(--teal); top: -160px; left: -120px; }
.g2 { width: 560px; height: 560px; background: var(--blue); bottom: -200px; right: -140px; animation-delay: -7s; }
@keyframes float { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

.page { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.logo { display: flex; align-items: center; font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--txt); text-decoration: none; }
.logo-img { width: 28px; height: 28px; border-radius: 7px; margin-right: 9px; }
.logo b { background: linear-gradient(90deg, var(--teal-l), var(--blue-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.muted { color: var(--mut); }
.btn-ghost { background: transparent; border: 1px solid var(--glass-line); border-radius: 9px; color: var(--mut); padding: 7px 10px; cursor: pointer; text-decoration: none; font-size: 16px; line-height: 1; }
.btn-ghost:hover { color: var(--teal-l); border-color: var(--teal-l); }

.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.14; margin: 0; }
.hero h1 span { background: linear-gradient(90deg, var(--teal-l), var(--blue-l)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--mut); margin-top: 12px; font-size: 18px; }

.grid { display: grid; grid-template-columns: 1fr 390px; gap: 28px; padding: 26px 0 70px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.glass { background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-line); border-radius: 20px; }

.projects { display: grid; gap: 16px; }
.pcard { padding: 22px; display: flex; gap: 16px; align-items: center; transition: .25s; text-decoration: none; color: var(--txt); }
a.pcard:hover { transform: translateY(-4px); border-color: rgba(94,163,255,.45); box-shadow: 0 18px 50px -18px rgba(0,104,255,.45); }
.picon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; box-shadow: 0 8px 22px -8px rgba(0,152,160,.7); }
.picon-img { object-fit: cover; background: #fff; padding: 4px; }
.pcard h3 { font-size: 18px; margin: 0; }
.pcard small { color: var(--mut); }
.badge-on { margin-left: auto; font-size: 12px; padding: 4px 11px; border-radius: 20px; background: rgba(62,201,208,.15); color: var(--teal-l); border: 1px solid rgba(62,201,208,.3); white-space: nowrap; }
.badge-soon { margin-left: auto; font-size: 12px; padding: 4px 11px; border-radius: 20px; background: rgba(147,164,181,.12); color: var(--mut); border: 1px solid rgba(147,164,181,.2); white-space: nowrap; }

.auth { padding: 30px; }
.auth h2 { font-size: 20px; margin: 0 0 6px; }
.auth .sub { color: var(--mut); font-size: 13px; margin-bottom: 16px; }
.inp { width: 100%; background: var(--inp-bg); border: 1px solid var(--inp-line); border-radius: 11px; color: var(--txt); padding: 12px 14px; margin-bottom: 11px; font-size: 15px; }
.inp:focus { outline: none; border-color: var(--teal-l); box-shadow: 0 0 0 3px rgba(62,201,208,.15); }
.btn-main { width: 100%; border: 0; border-radius: 11px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; background: linear-gradient(90deg, var(--teal), var(--blue)); color: #fff; box-shadow: 0 10px 30px -10px rgba(0,104,255,.6); transition: .2s; }
.btn-main:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-sec { width: 100%; border: 1px solid rgba(94,163,255,.4); border-radius: 11px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--blue-l); margin-top: 10px; transition: .2s; }
.btn-sec:hover { background: rgba(94,163,255,.1); }
.or { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 12px; margin: 13px 0 3px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--glass-line); }
.links { display: flex; justify-content: space-between; margin-top: 13px; font-size: 13px; }
.links a { color: var(--mut); text-decoration: none; }
.links a:hover { color: var(--teal-l); }
.alert-box { border-radius: 10px; padding: 10px 13px; font-size: 14px; margin-bottom: 12px; }
.alert-info { background: rgba(62,201,208,.12); color: var(--teal-l); border: 1px solid rgba(62,201,208,.3); }
.alert-warn { background: rgba(255,170,60,.12); color: #e8a33d; border: 1px solid rgba(255,170,60,.3); }
/* контраст в светлой теме (аудит 2026-07-17): бирюза/оранж на светлом фоне
   давали ~2-3:1 — текст ошибок/успеха нечитаем. Затемняем до AA (≥4.5:1). */
[data-theme="light"] .alert-info { color: #05666d; }
[data-theme="light"] .alert-warn { color: #955300; background: rgba(255,150,30,.14); border-color: rgba(190,120,0,.35); }
[data-theme="light"] .badge-on { color: #05666d; }
[data-theme="light"] code { color: #05666d; }
[data-theme="light"] .tbl a:hover, [data-theme="light"] .links a:hover,
[data-theme="light"] .btn-ghost:hover { color: #05666d; }
/* статус-текст (карточка сотрудника) — тема-зависимый оранж */
.status-warn { color: #e8a33d; }
[data-theme="light"] .status-warn { color: #955300; }
/* видимый фокус для клавиатуры (a11y): у кнопок/ссылок не было контура */
.btn-main:focus-visible, .btn-sec:focus-visible, .btn-ghost:focus-visible,
.links a:focus-visible, .pcard:focus-visible {
  outline: 2px solid var(--teal-l); outline-offset: 2px;
}

.section { padding: 10px 0 60px; }
.table-wrap { padding: 20px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--mut); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--glass-line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--glass-line); }
.tbl tr:last-child td { border-bottom: none; }   /* без «борозды» в конце таблиц */
.tbl a { color: inherit; text-decoration: none; }
.tbl a:hover { color: var(--teal-l); }
code { color: var(--teal-l); background: transparent; }  /* bootstrap красил розовым */
input[type="checkbox"] { accent-color: var(--teal); width: 16px; height: 16px; }
.icon-chip { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; padding: 2px; }
@media (max-width: 900px) {
  .hide-narrow { display: none; }         /* второстепенные колонки таблиц */
  .topbar .user-name { display: none; }   /* имя в шапке — только иконки */
}
@media (max-width: 480px) {
  /* телефон: компактная шапка и таблицы, всё влезает без скролла */
  .logo { font-size: 18px; }
  .logo-img { width: 24px; height: 24px; margin-right: 7px; }
  .btn-ghost { padding: 6px 8px; font-size: 15px; }
  .top-actions { gap: 4px; }
  .tbl th, .tbl td { padding: 8px 6px; font-size: 13px; }
  .page { padding: 0 14px; }
}

.foot { color: var(--mut); font-size: 13px; padding: 22px 0; text-align: center; border-top: 1px solid var(--glass-line); }
.text-break { word-break: break-all; }
.d-none { display: none; }
/* визуально скрыто, но доступно скринридеру (метки полей форм) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
