/* ui-kit.css — компоненты по DESIGN-QUICK v1.0. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background 150ms var(--ease-standard), border-color 150ms var(--ease-standard), transform 100ms ease, box-shadow 150ms var(--ease-standard);
  background: var(--primary);
  color: var(--text-on-primary);
}
.btn:hover { background: var(--primary-hover); color: var(--text-on-primary); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary,
.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover,
.btn-ghost:hover { background: var(--bg-alt); color: var(--text-primary); }

.btn-text {
  background: transparent;
  color: var(--secondary);
  border: 0;
}
.btn-text:hover { background: var(--bg-alt); color: var(--secondary-hover); }

.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 1rem; }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.field input[disabled],
.field select[disabled],
.field textarea[disabled] {
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: not-allowed;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.card.is-clickable { transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard); }
.card.is-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  transition: background 150ms var(--ease-standard), border-color 150ms var(--ease-standard), color 150ms var(--ease-standard);
}
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--text-primary); }
.chip.is-disabled { opacity: 0.5; cursor: not-allowed; }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.stepper { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
.stepper .step { flex: 1; height: 4px; background: var(--border); border-radius: var(--r-pill); }
.stepper .step.is-active { background: var(--primary); }

.radio-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.radio-group input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}
.radio-group input[type="radio"]:checked + label { background: var(--primary-soft); border-color: var(--primary); }
.radio-group input[type="radio"]:focus-visible + label { box-shadow: var(--shadow-glow); }

.form-narrow { max-width: 420px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.22; font-weight: 600; }
h3 { font-size: 1.75rem; line-height: 1.28; font-weight: 600; }

.counter { font-size: 0.85rem; color: var(--text-secondary); margin-left: 0.5rem; }
