body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f6f7fb;
  color: #1f2430;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px 20px 40px;
}

h1 {
  margin: 0 0 6px;
  color: #151a25;
  font-size: 28px;
}

h2 {
  color: #1e5aa5;
  border-bottom: 1px solid #d7e3f2;
  padding-bottom: 10px;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.subtitle {
  color: #5b6575;
  margin: 6px 0 8px;
  font-size: 14px;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid #edf1f7;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.row-two-cols {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.row-two-cols > .card {
  margin-bottom: 0;
  min-width: 280px;
  flex: 1;
}

.metric h3 {
  margin-top: 0;
}

.score {
  font-size: 36px;
  font-weight: bold;
  color: #1e5aa5;
  margin: 10px 0;
}

.desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.note {
  padding: 14px 16px;
  background: #f0f4ff;
  border-left: 4px solid #1e5aa5;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: #334155;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #1e5aa5;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

tr:hover {
  background: #f6f8fb;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.15);
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.hero-top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-top {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.2s ease;
}

.btn-hero-top:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero h1 {
  color: #ffffff;
}

.hero-text {
  max-width: 820px;
}

.hero .subtitle,
.hero .meta {
  color: #e2e8f0;
  display: block;
}

.hero .meta {
  margin: 6px 0 0;
  font-size: 13px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  gap: 8px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary.active {
  background: #ffffff;
  color: #1e3a8a;
}

.metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.label {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.metric-value {
  color: #1e5aa5;
  font-size: 32px;
  margin: 0;
}

.metric-note {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.position-index-block {
  margin-bottom: 8px;
}

.resistance-subsection-heading {
  margin: 22px 0 14px 0;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  color: #1e5aa5;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.experience-n-muted {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.02em;
}

.experience-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .experience-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.exp-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.exp-card-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.exp-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.exp-bar-label {
  flex: 0 0 auto;
  width: 90px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.25;
}

.exp-bar-track {
  flex: 1 1 0;
  height: 20px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.exp-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.35s ease;
}

.exp-bar-value {
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.resistance-by-experience-note {
  margin: 14px 0 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}

.resistance-breakdown {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  font-size: 13px;
  color: #5b6575;
}

.resistance-breakdown li {
  margin-bottom: 4px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn-primary {
  background: #1e5aa5;
  color: #fff;
}

/* Print / PDF uchun — Print dialogda "Save as PDF" tanlang */
@media print {
  .hero-top-actions, .lang-toggle, .btn-secondary { display: none !important; }
  .hero-badge { display: none !important; }
  .no-print-pdf, #responsesMetric { display: none !important; }
  #questionsStats { max-height: none !important; overflow: visible !important; }
  body { background: #fff; }
  .hero { background: #1e3a8a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}