/* ===== SOFTSKILLГРАД — ПАСТЕЛЬНАЯ ТЕМА (зелёно-персиковая) ===== */

/* Palette */
:root {
  --bg:        #fdf6ec;
  --bg2:       #f5ede0;
  --card:      #ffffff;
  --card2:     #fdf0e6;
  --sage:      #7ab893;
  --sage-light:#e8f5ee;
  --sage-mid:  #c2dfc9;
  --peach:     #f4956a;
  --peach-light:#fde9dc;
  --peach-mid: #f8c4a8;
  --sky:       #7ec8e3;
  --sky-light: #dff2fa;
  --lavender:  #b8a9d9;
  --lav-light: #ece8f8;
  --yellow:    #f7c873;
  --yellow-light:#fef3d8;
  --text:      #2c3e35;
  --text2:     #5a7265;
  --text3:     #8fa898;
  --border:    #e8dfd4;
  --shadow:    rgba(44,62,53,.08);
  --shadow2:   rgba(44,62,53,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  color: var(--text);
}

/* ===== DECORATIVE BG ===== */
.bg-deco {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.blob1 { width: 500px; height: 500px; background: var(--sage-mid);  top: -100px; left: -100px; }
.blob2 { width: 400px; height: 400px; background: var(--peach-mid); bottom: -80px; right: -80px; }
.blob3 { width: 300px; height: 300px; background: var(--sky);       top: 40%; left: 55%; }

/* ===== HEADER ===== */
header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(253,246,236,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.8rem; }
.logo-text { font-size: 1.2rem; font-weight: 900; color: var(--sage); }

.back-btn {
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text2); border-radius: 12px; padding: 8px 16px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: .2s; box-shadow: 0 2px 8px var(--shadow);
}
.back-btn:hover { background: var(--sage-light); border-color: var(--sage); color: var(--sage); }

.header-title { font-size: 1rem; font-weight: 800; color: var(--text2); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--sage), #5da07a);
  color: #fff; border: none; border-radius: 16px;
  padding: 12px 26px; font-size: .95rem; font-weight: 800;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: .2s; text-decoration: none; display: inline-block;
  box-shadow: 0 4px 16px rgba(122,184,147,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(122,184,147,.45); }

.btn-peach {
  background: linear-gradient(135deg, var(--peach), #e07850);
  color: #fff; border: none; border-radius: 16px;
  padding: 12px 26px; font-size: .95rem; font-weight: 800;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: .2s; text-decoration: none; display: inline-block;
  box-shadow: 0 4px 16px rgba(244,149,106,.35);
}
.btn-peach:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,149,106,.45); }

.btn-ghost {
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text2); border-radius: 16px; padding: 12px 24px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: .2s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}

/* ===== PROGRESS BAR ===== */
.pbar-wrap { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.pbar-fill  { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.34,1.2,.64,1); }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text3); margin-bottom: 14px;
}

/* ===== CHARACTER BUBBLE ===== */
.char-bubble {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px;
}
.char-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; border: 2px solid var(--border);
  background: var(--bg2); box-shadow: 0 2px 8px var(--shadow);
}
.bubble-text {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 4px 18px 18px 18px; padding: 12px 16px;
  font-size: .9rem; line-height: 1.5; color: var(--text);
  max-width: calc(100% - 56px);
  box-shadow: 0 2px 10px var(--shadow);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes popIn  { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.fade-up { animation: fadeUp .4s ease both; }

/* ===== OPT BUTTONS ===== */
.opt-btn {
  background: var(--bg); border: 2px solid var(--border);
  color: var(--text); border-radius: 14px; padding: 12px 16px;
  font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left;
  font-family: 'Nunito', sans-serif; transition: .2s; line-height: 1.4;
  width: 100%;
}
.opt-btn:hover:not(:disabled) { border-color: var(--sage); background: var(--sage-light); }
.opt-btn.correct  { background: var(--sage-light);  border-color: var(--sage);  color: #3a7a55; }
.opt-btn.partial  { background: var(--yellow-light); border-color: var(--yellow); color: #8a6a10; }
.opt-btn.wrong    { background: var(--peach-light);  border-color: var(--peach);  color: #a04030; }
.opt-btn:disabled { cursor: default; }

/* ===== FEEDBACK ===== */
.feedback {
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  font-size: .88rem; line-height: 1.5;
  background: var(--bg2); border-left: 3px solid var(--sage);
  color: var(--text2);
}

/* ===== EXERCISE ITEM ===== */
.ex-item {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 2px 12px var(--shadow);
}
.ex-num  { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: 6px; }
.ex-text { font-size: .95rem; line-height: 1.6; color: var(--text); margin-bottom: 12px; }
.ex-type {
  display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 8px;
  margin-bottom: 10px; font-weight: 700; background: var(--bg2); color: var(--text3);
}
.done-badge { font-size: .85rem; color: var(--sage); font-weight: 800; }

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed; top: -20px; border-radius: 3px;
  animation: confettiFall linear forwards; pointer-events: none; z-index: 999;
}
@keyframes confettiFall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ===== BADGE POPUP ===== */
.badge-popup {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: white; border-radius: 16px; padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 12px;
  z-index: 9999; transition: transform 0.4s ease;
}
.badge-popup.show { transform: translateX(-50%) translateY(0); }
.badge-popup .badge-icon { font-size: 32px; }
.badge-popup .badge-title { font-weight: 700; font-size: 15px; }
.badge-popup .badge-desc { font-size: 13px; color: #666; }

/* ===== EXTRA FEATURES SECTION ===== */
.extra-features { margin-top: 40px; padding: 0 0 20px; }
.extra-features h2 { margin-bottom: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: white; border-radius: 12px; padding: 18px 14px;
  text-align: center; text-decoration: none; color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(122,184,147,0.3); }
.feature-icon { font-size: 36px; margin-bottom: 8px; }
.feature-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; color: var(--sage); }
.feature-desc { font-size: 12px; color: #888; }

/* Faculty system */
.faculty-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 0 20px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}
.faculty-card { border: 2px solid var(--border); border-radius: 18px; padding: 20px; cursor: pointer; transition: .2s; background: var(--card); text-align: center; }
.faculty-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); }
.faculty-card.selected { border-width: 3px; }
.faculty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(min-width:600px){ .faculty-grid { grid-template-columns: repeat(3,1fr); } }
.dean-bubble { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 16px; border: 1.5px solid var(--border); }
.dean-avatar { font-size: 2.5rem; flex-shrink: 0; }
.dean-quote { font-style: italic; font-size: .9rem; color: var(--text3); margin-top: 4px; }
.faculty-task-card { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 8px; border: 1.5px solid var(--border); cursor: pointer; transition: .15s; }
.faculty-task-card.done { opacity: .55; text-decoration: line-through; }
.task-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.task-check.checked { background: var(--sage); border-color: var(--sage); color: white; }
