:root {
  --bg-1: #ecfeff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --shadow: 0 22px 60px rgba(15, 23, 42, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(59,130,246,.14), transparent 34rem),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

a { color: inherit; }
.container { width: min(1180px, 100%); margin: 0 auto; padding: 28px 16px 56px; }
.card, .panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card { overflow: hidden; }
.hero {
  padding: clamp(22px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15,118,110,.98), rgba(14,116,144,.94)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='.12'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='70' cy='70' r='2'/%3E%3Ccircle cx='130' cy='130' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
h1 { margin: 0; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.03em; }
h2 { margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
h3 { margin: 0; font-size: 18px; }
p.lead { max-width: 860px; color: rgba(255,255,255,.88); margin: 14px 0 0; font-size: 16px; line-height: 1.65; }
.content { padding: clamp(18px, 3vw, 34px); }
.panel { padding: clamp(16px, 2.5vw, 24px); margin-bottom: 20px; box-shadow: 0 12px 36px rgba(15, 23, 42, .07); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group label { font-weight: 800; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #1e293b; }
.required { color: #dc2626; }
input[type=text], input[type=tel] {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 14px 15px; font-size: 16px;
  background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input[type=text]:focus, input[type=tel]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.scale-note {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin-top: 16px;
}
.scale-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.scale-item strong { display: block; color: var(--primary-dark); font-size: 18px; }
.scale-item span { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
.progress-wrap {
  position: sticky; top: 0; z-index: 5; margin: -1px -1px 20px; padding: 12px clamp(16px, 2.5vw, 24px);
  background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px);
}
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.progress-bar { width: 100%; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #0f766e, #0891b2); border-radius: inherit; transition: width .2s ease; }
.question-list { display: grid; gap: 14px; }
.question-card {
  border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}
.question-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.number {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900;
}
.indicator { color: var(--primary-dark); font-weight: 900; margin-bottom: 4px; }
.statement { color: #334155; line-height: 1.55; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert label {
  cursor: pointer; user-select: none; display: grid; place-items: center; gap: 3px; min-height: 54px;
  border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #334155;
  font-weight: 900; transition: .16s ease; margin: 0;
}
.likert label small { display: none; color: var(--muted); font-weight: 700; font-size: 11px; }
.likert input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(15,118,110,.23); transform: translateY(-1px); }
.likert input:focus + label { box-shadow: 0 0 0 4px rgba(15,118,110,.15); }
.actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; border: 0; background: linear-gradient(135deg, var(--primary), #0891b2); color: white;
  padding: 13px 18px; border-radius: 14px; font-weight: 900; cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 26px rgba(15,118,110,.22);
}
button:hover, .btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn.secondary { background: #0f172a; box-shadow: 0 12px 26px rgba(15,23,42,.14); }
.alert { padding: 14px 16px; border-radius: 14px; margin: 0 0 18px; font-weight: 700; }
.alert-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
.small, .hint { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { border-bottom: 1px solid var(--border); padding: 12px; vertical-align: top; text-align: left; }
th { background: #f1f5f9; color: #334155; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.stat { border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: #fff; }
.stat strong { display: block; font-size: 26px; color: var(--primary-dark); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.footer-note { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.5; }

@media (min-width: 900px) {
  .likert label small { display: block; }
}
@media (max-width: 760px) {
  .container { padding: 12px 10px 34px; }
  .hero { border-radius: 0 0 22px 22px; }
  .content { padding: 16px; }
  .grid, .scale-note, .stat-grid { grid-template-columns: 1fr; }
  .question-card { padding: 14px; border-radius: 16px; }
  .question-head { gap: 10px; }
  .number { width: 36px; height: 36px; border-radius: 12px; }
  .likert { gap: 6px; }
  .likert label { min-height: 48px; border-radius: 12px; font-size: 15px; }
  button, .btn { width: 100%; }
  .progress-wrap { top: 0; }
}
@media (max-width: 380px) {
  .likert label { min-height: 44px; font-size: 14px; }
}
