* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

.header { background: linear-gradient(135deg, #1a237e, #283593); color: #fff; padding: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 22px; }
.header .nav a { color: #fff; margin-left: 20px; font-size: 14px; opacity: 0.9; }
.header .nav a:hover { opacity: 1; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.card { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card h2 { font-size: 18px; margin-bottom: 16px; color: #1a237e; border-bottom: 2px solid #e8eaf6; padding-bottom: 10px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #444; }
.form-group .label-ru { font-weight: 400; font-size: 12px; color: #888; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.btn { display: inline-block; padding: 9px 22px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #4caf50; color: #fff; }
.btn-success:hover { background: #3d8b40; }
.btn-danger { background: #f44336; color: #fff; }
.btn-danger:hover { background: #c63828; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

.table { width: 100%; border-collapse: collapse; }
.table th { background: #f5f5f5; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 13px; color: #555; border-bottom: 2px solid #e0e0e0; }
.table td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.table tr:hover td { background: #f9f9f9; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-active { background: #e3f2fd; color: #1565c0; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }
.badge-archived { background: #f5f5f5; color: #888; }

.search-box { background: #fff; border-radius: 10px; padding: 40px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; }
.search-box h2 { font-size: 24px; color: #1a237e; margin-bottom: 8px; border: none; padding: 0; }
.search-box .subtitle { font-size: 14px; color: #888; margin-bottom: 24px; }
.search-box .input-group { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.search-box input { flex: 1; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 16px; }
.search-box input:focus { outline: none; border-color: #1a73e8; }

.tracking-info { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.tracking-info .wb-header { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid #e8eaf6; }
.tracking-info .wb-header .item { flex: 1; min-width: 200px; }
.tracking-info .wb-header .item .label { font-size: 12px; color: #888; margin-bottom: 4px; }
.tracking-info .wb-header .item .value { font-size: 16px; font-weight: 600; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 5px; bottom: 5px; width: 2px; background: #e0e0e0; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #1a73e8; border: 2px solid #fff; box-shadow: 0 0 0 2px #1a73e8; }
.timeline-item:first-child::before { background: #4caf50; box-shadow: 0 0 0 2px #4caf50; }
.timeline-item .time { font-size: 13px; color: #888; }
.timeline-item .status { font-size: 15px; font-weight: 600; color: #1a237e; margin: 2px 0; }
.timeline-item .status-ru { font-size: 13px; color: #666; }
.timeline-item .desc { font-size: 13px; color: #555; margin-top: 2px; }
.timeline-item .desc-ru { font-size: 12px; color: #999; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.stat-card .number { font-size: 32px; font-weight: 700; color: #1a237e; }
.stat-card .label { font-size: 13px; color: #888; margin-top: 4px; }

.footer { text-align: center; padding: 30px 0; color: #aaa; font-size: 12px; }

@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 0; }
  .search-box .input-group { flex-direction: column; }
  .table { font-size: 12px; }
  .tracking-info .wb-header { flex-direction: column; gap: 10px; }
  .header-inner { flex-direction: column; gap: 8px; }
  .header .nav a { margin-left: 10px; margin-right: 10px; }
}
