/* Генератор нулевой УСН */

.zusn-shell {
  width: 100%;
  max-width: none;
  position: relative;
}

.zusn-shell .hidden {
  display: none !important;
}

.zusn-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .zusn-card {
    padding: 2rem;
  }
}

.zusn-block {
  margin-bottom: 1.25rem;
}

.zusn-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.zusn-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.zusn-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #fff;
}

.zusn-input:focus {
  outline: none;
  border-color: #34d3a8;
  box-shadow: 0 0 0 3px rgba(52, 211, 168, 0.2);
}

.zusn-input--lg {
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
}

.zusn-fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .zusn-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.zusn-party {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.zusn-party__type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 0.25rem;
}

.zusn-party__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.zusn-party__grid {
  display: grid;
  gap: 0.65rem 1rem;
  margin: 0;
}

@media (min-width: 640px) {
  .zusn-party__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.zusn-party__grid dt {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.15rem;
}

.zusn-party__grid dd {
  margin: 0;
  font-size: 0.9rem;
  color: #0f172a;
  word-break: break-word;
}

.zusn-party__full {
  grid-column: 1 / -1;
}

.zusn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zusn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.zusn-chip:has(input:checked) {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}

.zusn-chip input {
  accent-color: #059669;
}

.zusn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.zusn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.zusn-btn--primary {
  background: #059669;
  color: #fff;
}

.zusn-btn--primary:hover:not(:disabled) {
  background: #047857;
}

.zusn-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.zusn-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
}

.zusn-busy {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(2px);
}

.zusn-busy__card {
  background: #0f172a;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.zusn-results {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.zusn-year {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
}

.zusn-year__title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.zusn-files {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.zusn-files a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9rem;
}

.zusn-files a:hover {
  background: #ecfdf5;
}

.zusn-files__meta {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}
