* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: #0D0D0D;
  min-height: 100vh;
  color: #F5F1EE;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Градиентный фон с анимацией */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 78, 39, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 78, 39, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(255, 78, 39, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 78, 39, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(255, 78, 39, 0.1);
  overflow: hidden;
  animation: slideUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header {
  background: linear-gradient(135deg, rgba(255, 78, 39, 0.08) 0%, rgba(13, 13, 13, 0.4) 100%);
  padding: 40px;
  border-bottom: 1px solid rgba(255, 78, 39, 0.15);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 78, 39, 0.5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

h1 {
  color: #FF4E27;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(255, 78, 39, 0.5)); }
  to   { filter: drop-shadow(0 0 30px rgba(255, 78, 39, 0.8)); }
}

.subtitle {
  text-align: center; color: #F5F1EE; opacity: 0.6; font-size: 14px; font-weight: 400;
  margin-bottom: 30px; letter-spacing: 1px;
}

.tabs {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; padding: 6px;
  background: rgba(255, 78, 39, 0.05); border-radius: 16px; width: fit-content; margin-left: auto; margin-right: auto;
}

.tab { padding: 12px 24px; background: transparent; border: none; color: #F5F1EE; cursor: pointer; font-size: 14px; font-weight: 500; border-radius: 12px; position: relative; overflow: hidden; opacity: 0.7; }
.tab::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 78, 39, 0.1); border-radius: 12px; opacity: 0; transition: opacity 0.3s ease; }
.tab:hover::before { opacity: 1; }
.tab:hover { opacity: 1; }
.tab.active { background: #FF4E27; color: white; font-weight: 600; opacity: 1; box-shadow: 0 4px 12px rgba(255, 78, 39, 0.3); }

.inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.inputs input, .inputs select { padding: 14px 18px; background: rgba(245, 241, 238, 0.03); border: 1px solid rgba(255, 78, 39, 0.15); color: #F5F1EE; font-size: 15px; border-radius: 12px; font-weight: 400; transition: all 0.2s ease; }
.inputs input:hover, .inputs select:hover { background: rgba(245, 241, 238, 0.05); border-color: rgba(255, 78, 39, 0.3); }
.inputs input:focus, .inputs select:focus { outline: none; border-color: #FF4E27; background: rgba(255, 78, 39, 0.05); box-shadow: 0 0 0 3px rgba(255, 78, 39, 0.1); }
.inputs input::placeholder { color: rgba(245, 241, 238, 0.4); }
.inputs select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF4E27' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.inputs select option { background: #1a1a1a; color: #F5F1EE; }

.content { padding: 40px; }
.panel { display: none; animation: fadeIn 0.6s ease; }
.panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

.category { margin-bottom: 24px; border-radius: 16px; background: rgba(13, 13, 13, 0.4); border: 1px solid rgba(255, 78, 39, 0.1); overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.category:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 78, 39, 0.15); border-color: rgba(255, 78, 39, 0.2); }
.category-header { background: rgba(255, 78, 39, 0.03); padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease; }
.category-header:hover { background: rgba(255, 78, 39, 0.06); }
.category-header strong { color: #FF4E27; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.category-score { color: #F5F1EE; font-size: 18px; font-weight: 600; }
.category-body { padding: 24px; display: none; background: rgba(0, 0, 0, 0.2); }
.category.open .category-body { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }

.criterion { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(245, 241, 238, 0.02); margin-bottom: 12px; border-radius: 12px; border: 1px solid rgba(255, 78, 39, 0.08); transition: all 0.2s ease; }
.criterion:hover { background: rgba(255, 78, 39, 0.03); transform: translateX(4px); border-color: rgba(255, 78, 39, 0.15); }
.criterion:last-child { margin-bottom: 0; }
.criterion span { color: #F5F1EE; font-size: 15px; font-weight: 400; }
.criterion input { width: 72px; padding: 10px; background: rgba(13, 13, 13, 0.6); border: 1px solid rgba(255, 78, 39, 0.15); color: #FF4E27; text-align: center; font-size: 17px; font-weight: 600; border-radius: 10px; transition: all 0.2s ease; }
.criterion input:focus { outline: none; border-color: #FF4E27; background: rgba(255, 78, 39, 0.08); box-shadow: 0 0 0 3px rgba(255, 78, 39, 0.15); transform: scale(1.05); }

.summary { background: linear-gradient(135deg, rgba(255, 78, 39, 0.06) 0%, rgba(13, 13, 13, 0.4) 100%); padding: 40px; margin-top: 32px; text-align: center; border-radius: 20px; border: 1px solid rgba(255, 78, 39, 0.15); position: relative; overflow: hidden; }
.summary::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 78, 39, 0.1) 0%, transparent 70%); animation: rotate 30s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.score { font-size: 64px; font-weight: 700; color: #FF4E27; margin: 24px 0; position: relative; z-index: 1; text-shadow: 0 0 40px rgba(255, 78, 39, 0.5); letter-spacing: -2px; }
.status { display: inline-block; padding: 14px 32px; font-weight: 600; color: white; margin: 16px 0; border-radius: 50px; font-size: 14px; letter-spacing: 1px; position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.rec { color: #F5F1EE; margin-top: 20px; font-size: 16px; opacity: 0.8; position: relative; z-index: 1; }

.buttons { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn { padding: 14px 32px; background: rgba(255, 78, 39, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 78, 39, 0.2); color: #F5F1EE; cursor: pointer; font-size: 14px; font-weight: 500; border-radius: 12px; transition: all 0.2s ease; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 78, 39, 0.2), rgba(255, 78, 39, 0.1)); transform: translate(-50%, -50%) scale(0); border-radius: 12px; transition: transform 0.3s ease; }
.btn:hover::before { transform: translate(-50%, -50%) scale(1.2); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 78, 39, 0.25); border-color: #FF4E27; color: white; }
.btn:active { transform: translateY(0); }

.badge { padding: 6px 14px; font-size: 12px; font-weight: 600; color: white; border-radius: 20px; display: inline-block; }

/* Table */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 24px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
th { background: rgba(255, 78, 39, 0.08); color: #FF4E27; padding: 16px; text-align: left; font-weight: 600; font-size: 13px; letter-spacing: 0.5px; border-bottom: 1px solid rgba(255, 78, 39, 0.15); }
td { padding: 16px; color: #F5F1EE; background: rgba(13, 13, 13, 0.3); border-bottom: 1px solid rgba(255, 78, 39, 0.05); transition: all 0.2s ease; }
tr:hover td { background: rgba(255, 78, 39, 0.03); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: rgba(255, 78, 39, 0.04); padding: 28px; text-align: center; border-radius: 16px; border: 1px solid rgba(255, 78, 39, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, transparent, rgba(255, 78, 39, 0.1)); opacity: 0; transition: opacity 0.3s ease; }
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255, 78, 39, 0.2); border-color: rgba(255, 78, 39, 0.2); }
.stat-value { font-size: 36px; font-weight: 700; color: #FF4E27; margin-bottom: 8px; }
.stat-label { color: #F5F1EE; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; }

.search-section { margin-bottom: 24px; display: flex; gap: 16px; }
.search-input { flex: 1; max-width: 400px; padding: 14px 20px; background: rgba(245, 241, 238, 0.03); border: 1px solid rgba(255, 78, 39, 0.15); color: #F5F1EE; font-size: 15px; border-radius: 12px; transition: all 0.2s ease; }
.search-input:focus { outline: none; border-color: #FF4E27; background: rgba(255, 78, 39, 0.05); box-shadow: 0 0 0 3px rgba(255, 78, 39, 0.1); }

.notification { position: fixed; top: 20px; right: 20px; padding: 16px 24px; background: rgba(255, 78, 39, 0.95); backdrop-filter: blur(10px); color: white; font-weight: 600; font-size: 14px; border-radius: 12px; z-index: 9999; animation: notifSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 10px 30px rgba(255, 78, 39, 0.4); }
@keyframes notifSlide { from { transform: translateX(400px) scale(0.8); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
.empty-msg { text-align: center; padding: 60px; color: #F5F1EE; opacity: 0.3; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(13, 13, 13, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(255, 78, 39, 0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 78, 39, 0.5); }

/* ====== СИСТЕМА АУТЕНТИФИКАЦИИ ====== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.login-container {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 78, 39, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 100px rgba(255, 78, 39, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h2 {
  color: #FF4E27;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  color: #F5F1EE;
  opacity: 0.7;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 16px 50px 16px 18px;
  background: rgba(245, 241, 238, 0.03);
  border: 1px solid rgba(255, 78, 39, 0.2);
  color: #F5F1EE;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-group input:focus {
  outline: none;
  border-color: #FF4E27;
  background: rgba(255, 78, 39, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 78, 39, 0.1);
}

.input-group input::placeholder {
  color: rgba(245, 241, 238, 0.4);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #F5F1EE;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.toggle-password:hover {
  background: rgba(255, 78, 39, 0.1);
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 78, 39, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 78, 39, 0.1);
}

.login-footer p {
  color: #F5F1EE;
  opacity: 0.5;
  font-size: 12px;
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* ====== ВОРОНКИ ====== */
.funnel-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 78, 39, 0.06) 0%, rgba(13, 13, 13, 0.4) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 78, 39, 0.15);
}

.funnel-header h2 {
  color: #FF4E27;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.funnel-description {
  color: #F5F1EE;
  opacity: 0.7;
  font-size: 14px;
  margin: 0;
}

.funnel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.funnel-content {
  background: rgba(13, 13, 13, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 78, 39, 0.1);
  padding: 24px;
  min-height: 400px;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.candidate-card {
  background: rgba(245, 241, 238, 0.02);
  border: 1px solid rgba(255, 78, 39, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.candidate-card:hover {
  background: rgba(255, 78, 39, 0.03);
  border-color: rgba(255, 78, 39, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 78, 39, 0.1);
}

.candidate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.candidate-card:hover::before {
  opacity: 1;
}

.candidate-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.candidate-details h3 {
  color: #F5F1EE;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.candidate-details p {
  color: #F5F1EE;
  opacity: 0.7;
  font-size: 14px;
  margin: 0;
}

.candidate-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.candidate-progress {
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(245, 241, 238, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF4E27 0%, #ff7c5c 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  color: #F5F1EE;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.candidate-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.funnel-action-btn {
  padding: 8px 16px;
  background: rgba(255, 78, 39, 0.1);
  border: 1px solid rgba(255, 78, 39, 0.2);
  color: #F5F1EE;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.funnel-action-btn:hover {
  background: rgba(255, 78, 39, 0.2);
  border-color: rgba(255, 78, 39, 0.4);
  transform: translateY(-1px);
}

.funnel-action-btn.primary {
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  border-color: #FF4E27;
  color: white;
}

.funnel-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 78, 39, 0.3);
}

.funnel-action-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.funnel-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.funnel-empty {
  text-align: center;
  padding: 60px 20px;
  color: #F5F1EE;
  opacity: 0.5;
}

.funnel-empty h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #FF4E27;
}

.funnel-empty p {
  font-size: 16px;
  margin: 0;
}

/* ====== ЗАДАНИЯ ====== */
.assignments-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.assignment-card {
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid rgba(255, 78, 39, 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.assignment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.assignment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 78, 39, 0.15);
  border-color: rgba(255, 78, 39, 0.3);
}

.assignment-card:hover::before {
  opacity: 1;
}

.assignment-card.assignment-complex {
  background: linear-gradient(135deg, rgba(255, 78, 39, 0.05) 0%, rgba(13, 13, 13, 0.6) 100%);
  border-color: rgba(255, 78, 39, 0.25);
}

.assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 78, 39, 0.1);
}

.assignment-header h3 {
  color: #FF4E27;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #FF4E27 0%, #ff7c5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.assignment-type {
  background: rgba(255, 78, 39, 0.1);
  color: #FF4E27;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 78, 39, 0.2);
}

.assignment-content {
  color: #F5F1EE;
  line-height: 1.6;
}

.assignment-content p {
  margin-bottom: 16px;
  font-size: 15px;
}

.assignment-content strong {
  color: #FF4E27;
  font-weight: 600;
}

.assignment-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.assignment-content li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #F5F1EE;
  opacity: 0.9;
}

.assignment-content ul ul {
  margin: 8px 0;
  padding-left: 16px;
}

.assignment-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.assignment-content ol li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #F5F1EE;
  opacity: 0.9;
}

.assignment-content a {
  color: #FF4E27;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 78, 39, 0.3);
  transition: all 0.2s ease;
}

.assignment-content a:hover {
  color: #ff7c5c;
  border-bottom-color: rgba(255, 78, 39, 0.6);
}

.assignment-deadline {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 78, 39, 0.05);
  border: 1px solid rgba(255, 78, 39, 0.15);
  border-radius: 12px;
  text-align: center;
}

.assignment-deadline strong {
  color: #FF4E27;
  font-size: 14px;
  font-weight: 600;
}

.deadline-text {
  color: #F5F1EE;
  font-weight: 500;
  margin-left: 8px;
}

/* Кнопки копирования */
.assignment-card {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 78, 39, 0.1);
  border: 1px solid rgba(255, 78, 39, 0.2);
  color: #FF4E27;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-5px);
}

.assignment-card:hover .copy-btn {
  opacity: 1;
  transform: translateY(0);
}

.copy-btn:hover {
  background: rgba(255, 78, 39, 0.2);
  border-color: rgba(255, 78, 39, 0.4);
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.telegram-btn {
  background: rgba(0, 136, 204, 0.1) !important;
  border-color: rgba(0, 136, 204, 0.2) !important;
  color: #0088cc !important;
}

.telegram-btn:hover {
  background: rgba(0, 136, 204, 0.2) !important;
  border-color: rgba(0, 136, 204, 0.4) !important;
}

.simple-btn {
  background: rgba(107, 114, 128, 0.1) !important;
  border-color: rgba(107, 114, 128, 0.2) !important;
  color: #6b7280 !important;
}

.simple-btn:hover {
  background: rgba(107, 114, 128, 0.2) !important;
  border-color: rgba(107, 114, 128, 0.4) !important;
}

.copy-buttons {
  display: flex;
  gap: 8px;
}

.copy-buttons .copy-btn {
  font-size: 11px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
  .assignment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .assignment-header h3 {
    font-size: 18px;
  }
  
  .assignment-content {
    font-size: 14px;
  }
  
  .assignment-content p {
    font-size: 14px;
  }
  
  .assignment-content li {
    font-size: 13px;
  }
}
