/* ===== Einstellungen — секция настроек ===== */

.einst-section,
.einst-section * {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.einst-section {
  margin-top: 20px;
  margin-bottom: 32px;
}

.einst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.einst-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}

.einst-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #22c55e, #0ea5e9);
}

.einst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.einst-card--hero {
  grid-column: 1 / -1;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.einst-card--hero:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.einst-card--hero .einst-hero-inner {
  max-width: 540px;
}

.einst-eyebrow-hero {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 4px;
}

.einst-hero-inner h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0f172a;
}

.einst-hero-inner p {
  margin: 0;
  font-size: .9rem;
  color: #6b7280;
}

.einst-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.einst-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #f5f3ff, #dde4ff);
  box-shadow: 0 10px 20px rgba(79, 70, 229, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.einst-icon i {
  font-size: 1.1rem;
  color: #4338ca;
}

.einst-eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 2px;
}

.einst-card-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: #0f172a;
}

.einst-text {
  margin: 4px 0 10px;
  font-size: .9rem;
  color: #4b5563;
}

.einst-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, .2);
}

.einst-current {
  font-size: .82rem;
  color: #6b7280;
}

.einst-current strong {
  color: #111827;
  font-weight: 600;
}

.einst-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .24rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}

.einst-status--on {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .35), 0 0 10px rgba(34, 197, 94, .30);
  animation: sec-aktiv-pulse 4.5s ease-in-out infinite;
}

.einst-status--off {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, .25), 0 0 6px rgba(220, 38, 38, .15);
}

.einst-stub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: rgba(148, 163, 184, .15);
  color: #9ca3af;
}

@media (max-width: 900px) {
  .einst-grid { grid-template-columns: 1fr; }
  .einst-card--hero { grid-column: 1; }
}

/* Konto-карточка */
.einst-konto-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  flex: 1;
}

.einst-konto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
  gap: 12px;
}

.einst-konto-row:last-child {
  border-bottom: none;
}

.einst-konto-label {
  font-size: .82rem;
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
}

.einst-konto-value {
  font-size: .88rem;
  color: #111827;
  font-weight: 500;
  text-align: right;
}
