/* ==========================================================================
   kazinagg.site — Инженерное портфолио и панель сервера
   Светлая тема (Light Minimalist / Swiss Engineering Style)
   ========================================================================== */

:root {
  /* Базовая палитра светлой темы */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  
  --text-main: #0f172a;      /* slate-900 */
  --text-body: #334155;      /* slate-700 */
  --text-muted: #64748b;     /* slate-500 */
  --text-subtle: #94a3b8;    /* slate-400 */
  
  --primary: #0f172a;        /* темно-угольный акцент */
  --primary-hover: #1e293b;
  --primary-text: #ffffff;
  
  --accent-blue: #2563eb;    /* инженерный синий для ссылок */
  --accent-blue-hover: #1d4ed8;
  
  --success-bg: #f0fdf4;
  --success-text: #166534;
  --success-border: #bbf7d0;

  --info-bg: #eff6ff;
  --info-text: #1e40af;
  --info-border: #bfdbfe;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ================= СБРОС И БАЗОВЫЕ СТИЛИ ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-blue-hover);
}

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-subtle);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

/* ================= КНОПКИ ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-subtle {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-subtle:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* ================= ШАПКА ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-title {
  color: var(--text-main);
}
.brand-sep {
  color: var(--text-subtle);
}
.brand-domain {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--text-main);
}

/* ================= HERO СЕКЦИЯ ================= */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hero-headline {
  font-size: 2.35rem;
  font-weight: 800;
  max-width: 840px;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 780px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.resume-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

.resume-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resume-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.resume-group-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ================= ОБЩИЕ СТИЛИ СЕКЦИЙ ================= */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* ================= СЕКЦИЯ: ПРОЕКТЫ ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.project-header {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-kicker {
  display: flex;
  align-items: center;
  margin-bottom: 0.15rem;
}

.project-title {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text-main);
  word-break: normal;
  overflow-wrap: break-word;
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.25;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.badge-primary {
  background-color: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

.badge-neutral {
  background-color: var(--bg-subtle);
  color: var(--text-body);
  border: 1px solid var(--border-light);
}

.project-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  background-color: var(--bg-subtle);
  color: var(--text-body);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.link-external {
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-external:hover {
  text-decoration: underline;
}

.project-meta-note {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* ================= СЕКЦИЯ: СТЕК ================= */
.stack-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.stack-category {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.stack-cat-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stack-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.stack-detail {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ================= БЛОК О СЕРВЕРЕ ================= */
.server-note-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.server-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.server-note-title {
  font-size: 1.15rem;
}

.server-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--text-body);
}

.server-note-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ================= СЕКЦИЯ: КОНТАКТЫ ================= */
.contacts-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.contacts-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contacts-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contacts-sub {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.resumes-subtle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}

.resumes-subtle-label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.subtle-doc-link {
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px dotted var(--border-strong);
  transition: all 0.15s ease;
}
.subtle-doc-link:hover {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.subtle-sep {
  color: var(--border-strong);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: all 0.15s ease;
}

.contact-card:hover {
  border-color: var(--border-medium);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  color: var(--accent-blue);
}

.contact-type {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

/* ================= ПОДВАЛ ================= */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  background-color: var(--bg-page);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-main);
}

.footer-sep {
  color: var(--border-strong);
}

.footer-login-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.footer-login-btn:hover {
  color: var(--text-main);
}


/* ==========================================================================
   МОДАЛКА АВТОРИЗАЦИИ И СЕРВЕРНАЯ ПАНЕЛЬ (СОХРАНЕНА СОВМЕСТИМОСТЬ)
   ========================================================================== */

/* Оверлей */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
}

/* Модальное окно входа */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 90%;
  max-width: 380px;
  z-index: 101;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-head h3 {
  font-size: 1.15rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.login-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.login-form input[type="password"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-error {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: #dc2626;
  text-align: center;
}

/* ==========================================================================
   СЕРВЕРНАЯ ПАНЕЛЬ (.admin)
   Оформлена в чистом стиле консоли для идеальной видимости графиков
   ========================================================================== */

.admin {
  --admin-bg: #0f172a;
  --admin-card: #1e293b;
  --admin-border: rgba(255, 255, 255, 0.1);
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  
  background-color: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  padding: 1rem 1.5rem 4rem;
}

.admin .topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.admin .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin .brand-mark {
  background: #3b82f6;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin .brand-name {
  font-weight: 700;
  color: #ffffff;
}

.admin .brand-dot {
  color: #60a5fa;
}

.admin .topbar-tag {
  font-size: 0.72rem;
  color: var(--admin-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
}

.admin .topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin .tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin .tab {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--admin-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin .tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin .tab.active {
  color: #ffffff;
  background: #3b82f6;
}

.admin .content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.admin .tab-panel {
  display: none;
}
.admin .tab-panel.active {
  display: block;
}

/* Статистика и карточки в админке */
.admin .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin .stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  position: relative;
}

.admin .stat-card .stat-label {
  font-size: 0.74rem;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin .stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.admin .stat-card .stat-sub {
  font-size: 0.78rem;
  color: var(--admin-muted);
  margin-top: 0.15rem;
}

.admin .stat-card .stat-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.1rem;
  opacity: 0.5;
}

.admin .chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.admin .chart-box {
  position: relative;
  height: 210px;
}

.admin .card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin .card h3 {
  color: #ffffff;
  font-size: 1rem;
}

.admin .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin .card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
  font-variant-numeric: tabular-nums;
}

.admin .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.2rem;
}

.admin .kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin .kv-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin .kv-key {
  color: var(--admin-muted);
}

.admin .kv-val {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.admin .disk-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin .disk-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin .disk-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.admin .disk-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
}

/* Таблицы админки */
.admin .table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.admin .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin .table th {
  color: var(--admin-muted);
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin .table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

.admin .table td.num, .admin .table th.num {
  text-align: right;
  font-family: var(--font-mono);
}

.admin .toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin .input-search {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  outline: none;
}
.admin .input-search:focus {
  border-color: #3b82f6;
}

.admin .muted {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin .btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: none;
}
.admin .btn-danger:hover {
  background: #dc2626;
}

.admin .badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.admin .badge-running, .admin .badge-up, .admin .badge-active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin .badge-exited, .admin .badge-down {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin .btn-action {
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin-right: 0.25rem;
}

.admin .btn-action.start { background: #22c55e; color: #fff; }
.admin .btn-action.stop { background: #ef4444; color: #fff; }
.admin .btn-action.restart { background: #eab308; color: #000; }

.admin .stack-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin .nginx-file {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin .nginx-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.admin .nginx-code {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.admin .topology {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.admin .topology-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 1.85rem;
  }
  
  .hero-lead {
    font-size: 1rem;
  }

  .nav-links a:not(#showLoginBtn) {
    display: none;
  }
  
  .contacts-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .edu-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
